03/04/03 Can't include stdlib.h from ubtypes.h becuase header file socket.h in ipstack redefines ip-stack types in gcc. Include stdef.h instead. ---------------------------------------------------------------------------- 18/02/03 Time to make some demo pages now. Things left: more fonts proper timer tick via irq maybe fix PglBlitScrollBitmap32 15bit colour maybe ---------------------------------------------------------------------------- 17/02/03 Forgot to startup the vparse task from control aswell so it was waiting forever for a message: in control.c // {(fStartup)VarParse_StartUp, (fShutdown)VarParse_Shutdown, VPARSE_MSG_END, 0 PALTEXT("VarParse")}, sstore saves things to SRAM now favorites, preferances etc. ---------------------------------------------------------------------------- 16/02/03 Patched executable mmemc.exe so that is uses tChar instead of tChar16 when it generates C source This means it can generate resource strings for a narrow build so long as the most significant byte of the .mc source isnt set. i.e. select english language only. In vparse put a define at the top that says if MME_UNICODE then define VPARSE_AGGREGATE_OUTPUT_TOKENS it needs this otherwise it won't convert character sets to unicode. I won't fix it because it doesn't seem like agrigate tokens is needed in a narrow build.(doesn't seem it does much in a unicode build either) Changed tChar16 to tChar * FC diff for mmeme.exe Comparing files mmemc.exe and C:\TEMP\MMEMC.EXE 0000D86A: 31 20 0000D86B: 36 20 0000D92A: 31 20 0000D92B: 36 20 0000D9D6: 31 20 0000D9D7: 36 20 ---------------------------------------------------------------------------- 15/02/03 UB_ALLOCZERO, seemed to return zero on allocations after about 30k, which is why I thought the heap was in IWRAM. Not so though, and a closer looked revailed that I wasn't calling ANSI C calloc properly, missing the first perameter. oh and yes I hadn't included stblib either or else I would have spotted it. Should be using -Wall to I think. This: #define PALH_HEAP_ALLOC_ZERO(s) calloc(s) Becomes this: #define PALH_HEAP_ALLOC_ZERO(s) calloc(1, s) ---------------------------------------------------------------------------- 14/02/03 PglBlitScrollBitmap32 bug in this probably. When PGL_PHYSICAL_SCREEN_LONG_ALIGNED is defined only scrolls half the window. It would seem by default that malloc uses iram, why on earth is this? ---------------------------------------------------------------------------- 12/02/03 Keyboard input + proper palette set ---------------------------------------------------------------------------- 09/02/03 Transparency for text doesnt work ----------------------------------------------------------------------------- 07/02/03 I need to draw some fonts with numbers and things in ----------------------------------------------------------------------------- 05/02/03 rombuilder - Can't (or doesn't) align objects memory so for instance, PGLBitmap structes can't be read directly out of rom. - Fix for this with GCC is #ifndef NOT_ROMDISK #define tUint8 tUint8 __attribute__ ((aligned (4))) #endif in hostrom.h Message compiler does not generate ANSI C, produces warnings but compiles where is the MC source so I can fix this. ----------------------------------------------------------------------------- 03/02/03 vparse.c in a narrow build vparse.c,lAggregateOutputToken doesn't appear to work undefine VPARSE_AGGREGATE_OUTPUT_TOKENS in a narrow build. Line 785 of core\vparse.c, call to lOutputTokenToPipe wont compile too many parameters, remove aChrset Vparse seems dodgy. Undefine VPARSE_AGGREGATE_OUTPUT_TOKENS in a MME_UNICODE build and it tramples on a load of memory. - a new version of the emulator seems to have fixed the memory trample. ----------------------------------------------------------------------------- 01/02/03 Displays splash screen ! ----------------------------------------------------------------------------- 26/01/03 The GNU linker (ld) only does a single pass over libraries to resolve things it seems, anyway turns out can build if I use linker groups like this: -Xlinker -( library1.a library2.a -Xlinker -) ----------------------------------------------------------------------------- 24/01/03 Source is in CVS now it compiles various bits, but doesnt link a thing. -----------------------------------------------------------------------------