No Description

sideway_stair_hooks.s 645B

1234567891011121314151617181920212223242526272829303132333435363738
  1. .align 2
  2. .thumb
  3. .text
  4. .global npc_run_hook
  5. npc_run_hook:
  6. //we just got our result from npc_get_walkable_status in r0
  7. lsl r0, #0x18
  8. lsr r0, #0x18
  9. mov r6, r0
  10. bl npc_sideway_try_walking
  11. cmp r0, #1
  12. bne continue
  13. walkable:
  14. ldr r6, =0x0805BA18|1
  15. bx r6
  16. continue:
  17. mov r0, r6
  18. mov r1, r0
  19. cmp r0, #0
  20. beq walkable
  21. ldr r6, =0x0805B9EE|1
  22. bx r6
  23. .global npc_bike_hook
  24. npc_bike_hook:
  25. lsr r5, r0, #0x18
  26. bl npc_sideway_try_walking
  27. cmp r0, #0
  28. beq continue_bike
  29. pop {r4-r6}
  30. pop {r0}
  31. bx r0
  32. continue_bike:
  33. mov r1, r5
  34. sub r0, r1, #1
  35. ldr r2, =0x080BD312|1
  36. bx r2