/*
 * main.c - where it all begins
 */

#include <std.h>
#include <io.h>
#include <vt100.h>
#include <clock.h>

void function( ) {
    kprintf_string( "Interrupt!\n" );
    vt_flush();
    __asm__ ( "movs pc, lr" );
}

int main(int argc, char* argv[]) {

    UNUSED(argc);
    UNUSED(argv);

    uart_init();
    vt_blank();
    vt_hide();

    debug_message("Welcome to ferOS v%u", __BUILD__);
    debug_message("Built %s %s", __DATE__, __TIME__);

    // tell the CPU where to handle software interrupts
    //    void** irq_handler = (void**)0x28;
    //    *irq_handler = (void*)function;

    /*
      int i;
      for( i = 8; i < 255; i += 4 ) {
      irq_handler[i/4] = (void*)function;
      }
    */

    //    __asm__ ("swi 1");
    //    kprintf_string( "RETURNED" );
    //    vt_flush();

    bool done = false;
    while (1) {
    	vt_read();
    	vt_write();

	if (!done) {
	    kprintf_cpsr();
	    done = true;
	}
    }

    vt_blank();
    vt_flush();

    return 0;
}

/*
 * main.c - where it all begins
 */

#include <std.h>
#include <io.h>
#include <vt100.h>
#include <clock.h>

void function( ) {
    kprintf_string( "Interrupt!\n" );
    vt_flush();
    __asm__ ( "movs pc, lr" );
}

int main(int argc, char* argv[]) {

    UNUSED(argc);
    UNUSED(argv);

    uart_init();
    vt_blank();
    vt_hide();

    debug_message("Welcome to ferOS build %u", __BUILD__);
    debug_message("Built %s %s", __DATE__, __TIME__);

    // tell the CPU where to handle software interrupts
    //    void** irq_handler = (void**)0x28;
    //    *irq_handler = (void*)function;

    /*
      int i;
      for( i = 8; i < 255; i += 4 ) {
      irq_handler[i/4] = (void*)function;
      }
    */

    //    __asm__ ("swi 1");
    //    kprintf_string( "RETURNED" );
    //    vt_flush();

    bool done = false;
    while (1) {
    	vt_read();
    	vt_write();

	if (!done) {
	    kprintf_cpsr();
	    done = true;
	}
    }

    vt_blank();
    vt_flush();

    return 0;
}

Use build number instead of version number in startup message
Use build number instead of version number in startup message