Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Final Fantasy 7 Spirit Fix written by Gemini
- ; This file serves as a simple example for how to
- ; use the assembler for changing code
- .psx ; Set the architecture to PSX
- .open "EBOOT.BIN",0x8804054 ; Open SLPS_010.57 for output.
- ; 0x8000F800 will be used as the
- ; header size
- .org 0x894be60 ; here, a branch to the new code is
- ; added
- vwf_start:
- lhu a3, 0x0(s4)
- li s6,0x894c060
- ; swc1 f21,0x0(s6)
- move v1, s6
- addi v1, v1, 0x10
- vwf_loop:
- lhu v0, 0x0(v1)
- beq v0, zero, vwf_stop
- nop
- bnel v0, a3, vwf_loop
- addiu v1, v1, 0x4
- vwf_hit:
- lbu v0, v1(0x3)
- lwc1 f21, v0
- cvt.s.w f21, f21
- vwf_stop:
- add.s f25, f25, f21
- addiu s4, s4, 0x2
- li v0, 0x0
- li v1, 0x0
- li a3, 0x0
- li s6, 0x0
- j injection_return
- .org 0x8833A80 ; Some new code
- injection_code:
- j vwf_start
- nop
- injection_return:
- ; the rest of the file will remain
- ; unchanged
- .close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement