Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Fixes sewer room left/right walls (objects D4-D5)
- .gba
- .open "sma3.gba", "sma3patched.gba", 0x08000000
- ; object D4
- .org 0x0801E9CA
- sub r0,2 ; check for second-to-last Y, not last Y
- nop
- nop
- .org 0x0801E9F4
- nop
- strh r2,[r4,0x3A] ; store random offset to scratch RAM
- .org 0x0801E872
- mov r0,r1
- sub r0,0xC ; subtract correct offset when loading the 2x2 tile's second row
- nop
- ; object D5
- .org 0x0801E7C2
- sub r0,2 ; check for second-to-last Y, not last Y
- nop
- nop
- .org 0x0801E7EC
- nop
- strh r2,[r4,0x3A] ; store random offset to scratch RAM
- .close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement