Dex wrote:
;********************************;
; Rom start. ;
;********************************;
rom_start:
mov r0, 0x4000000
mov r1, 0x400
add r1, r1, 3
str r1, [r0]
If i get it correctly, that's setting DISPCNT (0x0400,0000) register to use 32Kcolors-bitmap-mode, right?
Quote:
mov r0, 0x6000000
mov r1, 0xff
mov r2, 0x9600
loop1:
strh r1, [r0], 2
subs r2, r2, 1
bne loop1
then you fill the screen (VRAM @ 0x0600,0000) with some color i haven't decoded yet ...
Quote:
LetsLoop:
b LetsLoop
and finally you enter an endless loop.
My! as i'm using libnds, i tend to skip most of those magic-number-things and have pre-defined nice names for every hardware bits
either you need an excellent memory of numbers, or you need a bunch of #defines