gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Just discovered an annoying error I can't quite understand

#177226 - blessingta@hotmail.co.uk - Thu Jan 26, 2012 3:04 pm

I've got a glitch were my gba project crashes after holding the same button. for 3 or 4 seconds. I'm sure that this is a glitch you guys have experience and its really doing my head in right now.

Additional notes:
My button input method was working perfect fine before I tried to implement my fancy finite state machine. My finite state machine works apart from this error that seems to occur on it.

link below:
http://dl.dropbox.com/u/42518274/SNAKE2.gba

#177227 - Kasumi - Thu Jan 26, 2012 7:20 pm

Do you have source code? Not everyone is willing to mess with a debugger when source code would do.

#177228 - Dwedit - Thu Jan 26, 2012 8:34 pm

NO$GBA ends up on an invalid opcode eventually.

But NO$GBA is simply incompatible with the current version of DevKitARM, because it's implementation of ldmia sp!, {sp} is broken and doesn't restore the correct value for the stack pointer. All bets are off.
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#177229 - blessingta@hotmail.co.uk - Mon Jan 30, 2012 11:43 am

I just *fixed*(well not really) the problem by simply removing the implementation I had put since I was beginning to spaghettify my code.

But with the debugger question:
Does programmer's notepad have a debugger similar to visual studio where you can check data as the program runs? Or is the only debugger available the dreaded visualboyemulator's version?