#134738 - alwbsok - Mon Jul 16, 2007 8:14 am
I'm an inexperienced ARM ASM programmer trying to develop a chess program. Right now, I'm trying to display the interface I've designed. It's done in tile mode, and the tile maps, tile data, and the tile palette are copied verbatim from the ROM. The former two are copied by CPUFastSet (SWI 0x0C0000).
I've tried the assembled program on VBA, and it works perfectly, but on actual hardware (and the NO$GBA emulator) I get a black screen. When I replaced the software interrupts with a series of LDM and STM instructions, the problem was solved instantly.
Is there any tricks with SWIs in ARM mode that I'm not aware of (apart from the 16 bit shift)? Why is it working on hardware, but not VBA?
Thanks in advance.
I've tried the assembled program on VBA, and it works perfectly, but on actual hardware (and the NO$GBA emulator) I get a black screen. When I replaced the software interrupts with a series of LDM and STM instructions, the problem was solved instantly.
Is there any tricks with SWIs in ARM mode that I'm not aware of (apart from the 16 bit shift)? Why is it working on hardware, but not VBA?
Thanks in advance.