Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .org 0x801064B0
- .set noreorder
- .set noat
- #include <mips.h>
- j fire_hack
- .org 0x80600000
- .set noreorder
- .set noat
- #include <mips.h>
- .global fire_hack
- fire_hack:
- lui t0,0x8021
- ori t0,t0,0x3C50
- lw t1,0x0028(t0)
- lw t2,0x002C(t0)
- beq t1,$zero,exit
- nop
- beq t2,$zero,exit
- damagetableloop:
- lw t3,0x0098(t2)
- lb t0,0x0011(t3)
- andi t0,t0,0x00F0
- lb t4,0x000A(t3)
- andi t4,t4,0x000F
- or t4,t4,t0
- sb t4,0x000A(t3)
- addiu t1,t1,-1
- beq t1,$zero,exit
- nop
- lw t2,0x0124(t2)
- beq t2,$zero,exit
- nop
- b damagetableloop
- nop
- exit:
- jr $ra
- nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement