Advertisement
Reisyukaku

GBA - Pretty xmas colors

Dec 23rd, 2014
822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 0.51 KB | None | 0 0
  1. .arm
  2. .text
  3. .global main  
  4. main:  
  5.     ldr r1, =0x04000000
  6.     ldr r2, =0x03
  7.     str r2,[r1]
  8.     ldr r1,=((255)+(0<<5)+(0<<10))
  9.     ldr r2,=((0)+(255<<5)+(0<<10))
  10.     ldr r4, =0x06000000
  11.     add r4, r4, #0x20
  12.     mov r6, #0x0
  13.     mov r7, #0x0
  14. firstPass:
  15.     mov r5, r1
  16.     mov r1, r2
  17.     mov r2, r5
  18.     mov r5, #0x0
  19.     add r4, r4, #0x08
  20.     str r1,[r4]
  21.     str r2, [r5]
  22.     add r6, r6, #0x01
  23.     cmp r6, #0x3B
  24.     bne firstPass
  25.     mov r6, #0x0
  26.     add r4, r4, #0x02
  27.     add r7, r7, #0x01
  28.     cmp r7, #0xFF
  29.     beq endLoop
  30.     bne firstPass
  31.  
  32. endLoop:
  33.     b endLoop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement