#120855 - KayH - Tue Mar 06, 2007 8:07 pm
I've tested my chessgame with No$Gba and it reported some strange issues. After hunting these errors (access to invalid memory) I found the suspicious part (stmia/ldmia) inside the startup sequence introduced from the crt...
There was written from dark_fader, that emulators seems to have issues on that.
My questions:
1) can someone please explain or link to a document explaining the startup sequence?
2) Who is right: dark_fader or martin korth? or both? :-)
I could avoid this issue when I compile for "not multiboot". This points me to the next questions ...
"Vars" defined as "const" go into the ROM space. If I have multiboot activated, all is placed in WRAM. How is this handled? The "const" is only a hint to the compiler, right?
Currently I need to places to define multiboot or not. The first is in the main.c where the multiboot statement is on top of the file. The second is in the makefile to define the needed specs. Is it possible to have only one define to activate/deactivate it on both places?
There was written from dark_fader, that emulators seems to have issues on that.
My questions:
1) can someone please explain or link to a document explaining the startup sequence?
2) Who is right: dark_fader or martin korth? or both? :-)
I could avoid this issue when I compile for "not multiboot". This points me to the next questions ...
"Vars" defined as "const" go into the ROM space. If I have multiboot activated, all is placed in WRAM. How is this handled? The "const" is only a hint to the compiler, right?
Currently I need to places to define multiboot or not. The first is in the main.c where the multiboot statement is on top of the file. The second is in the makefile to define the needed specs. Is it possible to have only one define to activate/deactivate it on both places?