Advertisement
Zeldara109

objfixD4D5.asm

Apr 27th, 2023
2,080
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ARM 0.64 KB | None | 0 0
  1. ; Fixes sewer room left/right walls (objects D4-D5)
  2.  
  3. .gba
  4. .open "sma3.gba", "sma3patched.gba", 0x08000000
  5.  
  6. ; object D4
  7. .org 0x0801E9CA
  8.     sub r0,2            ; check for second-to-last Y, not last Y
  9.     nop
  10.     nop
  11. .org 0x0801E9F4
  12.     nop
  13.     strh r2,[r4,0x3A]   ; store random offset to scratch RAM
  14. .org 0x0801E872
  15.     mov r0,r1
  16.     sub r0,0xC          ; subtract correct offset when loading the 2x2 tile's second row
  17.     nop
  18.  
  19. ; object D5
  20. .org 0x0801E7C2
  21.     sub r0,2            ; check for second-to-last Y, not last Y
  22.     nop
  23.     nop
  24. .org 0x0801E7EC
  25.     nop
  26.     strh r2,[r4,0x3A]   ; store random offset to scratch RAM
  27.  
  28. .close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement