(12-29-2021, 11:18 PM)NeoGeoFreak2004 Wrote: Here is the error, so when I try to type in compile.bat into the command prompt, it compiles, but the emulator will not work with the ROM and pops up with an error message. This is the full error: [PC 100003] swi 7 not found. my code is compiling but crashing on the emulator. so that is the error message I am getting
Hey,
you shouldn't execute code below address 0x200000 (and above 0x3FFFFF) as it's the start of ROM address.
That means that your code have either some kind of call or jump or stack overflow that set PC register to a wrong value.
Neopop have a debugger version that can help you to figure out where you come from (you can have the last 10 instructions, or set breatpoint at your crash address and get the last instructions too). Alas, it's great when all your code is assembly, harder when it's C.
This might help to figure out what function send you into oblivion.

