#include <ios.h>
#include <hw.h>
#include <iostypes.h>
#include <ioslibc.h>

#define STACK_SIZE 1024
const u8 _initStack[STACK_SIZE];
const u32 _initStackSize = sizeof(_initStack);
const u32 _initPriority = 10;

#define NEW_VERSION 0xcafebabe
void 
setver_test(void)
{
   printf("Current IOS version in lomem: %u\n", IOS_GetLoMemOSVersion());
   printf("Setting new version to: 0x%x\n", NEW_VERSION);
   IOS_SetLoMemOSVersion(NEW_VERSION);
   printf("IOS version in lomem: 0x%x\n", IOS_GetLoMemOSVersion());
}

void
main(u32 arg)
{ 
    setver_test(); 
}
