Font improved.
I could find out that the strange font display problem (mentioned above) is only present in some programs, while it works correct in others.
Anyways, I've reported that snake crashes and I experienced that with other stuff, too. It crashes in the first call of malloc(), for example.
Now I looked around again and realized that I'm probably missing some initializations. At least the stack pointer, the SGL also sets GBR and SR. Okay, previously I wrote some dummy funcions SGL_Start and slStartSGL (in C file) which I could locate at section SLSTART (0x6004000) by using __attribute__ and which call main().
Setting the stack pointer (r15) could be done in an assembler file or maybe in a C file using asm keyword. My problems are that the first approach is not linked in the binary, although I declared .section SLSTART. The second attempt fails due to invalid opcode
asm("mov.l %[stack_pointer], r15": : [stack_pointer] "2" (0x6004000));
and I don't kow why.
How can I make the asm routines being linked first at SLSTART (0x6004000)? I know I could just specify the object file first for the linker, but the lib should come as a library...
I get a headache from such stuff
Originally posted by Reinhart@Fri, 2006-03-31 @ 06:54 PM
The ability to handle lots of sprite without bothering with memory management ...
[post=145387]Quoted post[/post]
Is that a pro or a con? I would like to know what could have been done better in the SGL, in your oppinion.