Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text
- .align 2
- .thumb
- .thumb_func
- DisplayImg:
- ldr r1, setLocation
- ldr r0, set
- swi 0x12
- ldr r1, mapLocation
- ldr r0, map
- swi 0x12
- ldr r1, palLocation
- ldr r0, pal
- swi 0x11
- b WaitForInputLoop
- WaitForInputLoop:
- ldr r0, keyInput
- ldrb r0, [r0, #0x0]
- neg r0, r0
- mov r1, #0x2
- tst r0, r1
- beq WaitForInputLoop
- End:
- bx lr
- .align 2
- pal: .word 0x08825510 @ pointer to palette (.pal)
- palLocation: .word 0x020375F8 + (0x20 * 0xD) @ palette slot 0xD, replace 0xD with the pal slot you want to use
- set: .word 0x08824310 @ pointer to tileset (.bmp)
- setLocation: .word 0x06008000 @ char base for bg0
- map: .word 0x088251A0 @ pointer to tilemap (.raw)
- mapLocation: .word 0x0600F800 @ map base for bg0
- keyInput: .word 0x04000130 @ check key input
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement