Advertisement
Guest User

Dynamic Damage Tables

a guest
Jul 14th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. .org 0x801064B0
  3. .set noreorder
  4. .set noat
  5. #include <mips.h>
  6.  
  7. j fire_hack
  8.  
  9. .org 0x80600000
  10. .set noreorder
  11. .set noat
  12. #include <mips.h>
  13.  
  14. .global fire_hack
  15. fire_hack:
  16.  
  17. lui t0,0x8021
  18. ori t0,t0,0x3C50
  19. lw t1,0x0028(t0)
  20. lw t2,0x002C(t0)
  21. beq t1,$zero,exit
  22. nop
  23. beq t2,$zero,exit
  24.  
  25. damagetableloop:
  26. lw t3,0x0098(t2)
  27. lb t0,0x0011(t3)
  28. andi t0,t0,0x00F0
  29. lb t4,0x000A(t3)
  30. andi t4,t4,0x000F
  31. or t4,t4,t0
  32. sb t4,0x000A(t3)
  33. addiu t1,t1,-1
  34. beq t1,$zero,exit
  35. nop
  36. lw t2,0x0124(t2)
  37. beq t2,$zero,exit
  38. nop
  39. b damagetableloop
  40. nop
  41.  
  42. exit:
  43. jr $ra
  44. nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement