Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Keeps script active at all times
- .org 0x8001125C
- j 0x80500000
- .org 0x80500000
- lui t0, 0x8012
- lw t0, 0xF1CC(t0) ;Load t0 with current frame
- ori t1, r0, 0x0004 ;Load t1 with a constant (4)
- divu t0, t1
- mfhi t0 ;Places the result of frame%4 into t0
- bne t0, r0, 0x80500028 ;If not a tapping frame skip
- lui t1, 0x8013
- lh t0, 0xE834(t1) ;Loads the current button presses
- ori t0, t0, 0x8000 ;bitwise OR t0 and 0x8000 (a button)
- sh t0, 0xE834(t1) ;Store the controller back into memory
- ;Skip 0x80500028
- jr ra
- sll r0, r0, 0 ;delay slot
- 8101125C 0814
- 8101125E 0000
- 81500000 3C08
- 81500002 8012
- 81500004 8D08
- 81500006 F1CC
- 81500008 3409
- 8150000A 0004
- 8150000C 0109
- 8150000E 001B
- 81500010 0000
- 81500012 4010
- 81500014 1500
- 81500016 0004
- 81500018 3C09
- 8150001A 8013
- 8150001C 8528
- 8150001E E834
- 81500020 3508
- 81500022 8000
- 81500024 A528
- 81500026 E834
- 81500028 03E0
- 8150002A 0008
- 8150002C 0000
- 8150002E 0000
- ;D-Pad up turns on script, D-Pad down turns off script
- .org 0x8001125C
- j 0x80500000
- .org 0x80500000
- lui t0, 0x8013
- lh t1, 0xE834(t0)
- ;D-Pad Up 0x80500008
- ori t2, r0, 0x0800
- and t3, t1, t2
- bne t2, t3, 0x80500020 ;Branch to check for d-pad down
- ori t2, r0, 0x0001
- lui t3, 0x8050
- sb t2, 0x006C(t3)
- ;D-Pad Down 0x80500020
- ori t2, r0, 0x0400
- and t3, t1, t2
- bne t2, t3, 0x80500038 ;Branch to compare if auto-tap is on
- ori t2, r0, 0x0000
- lui t3, 0x8050
- sb t2, 0x006C(t3)
- ;Compare 0x80500038
- lui t2, 0x8050
- lb t2, 0x006C(t2)
- beq t2, r0, 0x80500064 ;Skips if auto-tap is off
- lui t2, 0x8012
- lw t2, 0xF1CC(t2)
- ori t3, r0, 0x0004
- divu t2, t3
- mfhi t2
- bne t2, r0, 0x80500064 ;Skips if not tapping frame
- ori t1, t1, 0x8000
- sh t1, 0xE834(t0)
- ;Skip 0x80500064
- jr ra
- sll r0, r0, 0
- 8101125C 0814
- 8101125E 0000
- 81500000 3C08
- 81500002 8013
- 81500004 8509
- 81500006 E834
- 81500008 340A
- 8150000A 0800
- 8150000C 012A
- 8150000E 5824
- 81500010 154B
- 81500012 0003
- 81500014 340A
- 81500016 0001
- 81500018 3C0B
- 8150001A 8050
- 8150001C A16A
- 8150001E 006C
- 81500020 340A
- 81500022 0400
- 81500024 012A
- 81500026 5824
- 81500028 154B
- 8150002A 0003
- 8150002C 340A
- 8150002E 0000
- 81500030 3C0B
- 81500032 8050
- 81500034 A16A
- 81500036 006C
- 81500038 3C0A
- 8150003A 8050
- 8150003C 814A
- 8150003E 006C
- 81500040 1140
- 81500042 0008
- 81500044 3C0A
- 81500046 8012
- 81500048 8D4A
- 8150004A F1CC
- 8150004C 340B
- 8150004E 0004
- 81500050 014B
- 81500052 001B
- 81500054 0000
- 81500056 5010
- 81500058 1540
- 8150005A 0002
- 8150005C 3529
- 8150005E 8000
- 81500060 A509
- 81500062 E834
- 81500064 03E0
- 81500066 0008
- 81500068 0000
- 8150006A 0000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement