Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;Set up variables
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- var,dma,0x12F70
- var,code,[{dma}+0x10*28]
- var,codeRAM,0x8001CE60
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;First we set var dma to the offset of the dma table
- ;Then we take that and add 0x10 multiplied by the
- ;code.zasm entry ID in the table, which is 28.
- ;We set var code to the pointer at that address.
- ;We set var codeRAM to the offset of the code.zasm
- ;file when it is loaded into RAM. This is so that
- ;we can convert RAM addresses into addresses
- ;relative to the code.zasm.
- ;Now by doing {code}+RAM ADDRESS-{codeRAM} we will
- ;get the ROM address.
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;Patch
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;A Button Red (0x64)
- {code}+0x80110F3C-{codeRAM}, 240E 0064 A5AE 0AC0
- ;A Button Green (0xC8)
- {code}+0x80110F08-{codeRAM}, 240F 00C8
- ;A Button Blue (0xFF)
- {code}+0x80110F1C-{codeRAM}, 2419 00FF
- ;B Button Red (0x64)
- {code}+0x80110EE8-{codeRAM}, 240E 0064
- ;B Button Green (0xFF)
- {code}+0x80110EF4-{codeRAM}, 2403 00FF
- ;B Button Blue (0x78)
- {code}+0x80110F10-{codeRAM}, 2419 0078 A719 06EE
- ;C Button Red (0xFF)
- {code}+0x801110E8-{codeRAM}, 240D 00FF
- ;C Button Green (0xFF)
- {code}+0x80111494-{codeRAM}, 2418 00FF
- ;C Button Blue (0x00)
- {code}+0x801114B4-{codeRAM}, 240E 0000 A72E 07E6
- ;START Button Red (0xFF), Green (0x82), Blue (0x3C)
- {code}+0x80089180-{codeRAM}, 3C01 FF82 3421 3C00
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement