#174649 - nathanpc - Mon Jul 05, 2010 12:09 am
Hello,
I want to know how could I check if the A Button was pressed, and if it was. Do a b change_color. If possible, first give the theory(but very well explained), then I will try to do some code and post the result here. By this way I will learn and try to practice my knowledge.
Remember to specify the length of the addresses and values, as I usually have problems if I use str/ldr(for 32-bits values), or strh/ldrh(for 16-bits values). Or try to teach me how to recognize which type to use. :)
Best Regards,
Nathan Paulino Campos
_________________
Reading Tonc and trying to remind my very old C knowledge.
Just bought a GameBoy Advance SP one of those cartridges to put the ROMs for onboard debug.
I want to know how could I check if the A Button was pressed, and if it was. Do a b change_color. If possible, first give the theory(but very well explained), then I will try to do some code and post the result here. By this way I will learn and try to practice my knowledge.
Remember to specify the length of the addresses and values, as I usually have problems if I use str/ldr(for 32-bits values), or strh/ldrh(for 16-bits values). Or try to teach me how to recognize which type to use. :)
Best Regards,
Nathan Paulino Campos
_________________
Reading Tonc and trying to remind my very old C knowledge.
Just bought a GameBoy Advance SP one of those cartridges to put the ROMs for onboard debug.