Debug Function

I already encounter different result, with emulator and real hardware. That's why i wrote a few debugging functions to get a kind of 'built in debugger'. It allow you to watch memory; dump register or variable, using Decimal, Hexadecimal, or Binary format. It occupies around 3.06Ko in VRam for debug fonts, and 4 color entry. Display works in tile mode only, with a 16 Color BG. Use is very easy, and take a syntax near the printf format.

ex: DBGPrintf (Xpos,Ypos,"DISPCNT %b",*(volatile u16*) REG_DISPCNT);


Get debug functions source code: gba_dbg.zip (8ko).