Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RAM:
- $FFA800 buff - DMA'd window tilemap
- $FFAA04 byte -
- $FFEBA4 long - LONG(4bytes) copy of $FFFF80
- $FFEBA8 word - WORD copy of $EBA6 (ACTUAL player input)
- $FFEFE8 byte - Screen transition
- $FFEB00 byte - any write increases Player Life
- $FFF800 buff - SMPS sound buffer
- $FFEBA0 byte - (MENU) cursor auto-move timer
- $FFEC13 byte - Current MENU list/layout
- $FFEC27 byte - (MENU: MAGIC) Current selection in MAGIC menu
- $FFEFEC word - OLD value of $FFF022
- $FFF130 list - Magic points (4 bytes, in order: wind,fire,earthquake,heal)
- $FFF022 word - bitselection for the MAGIC powers:
- %00000000 0000hefw (hefw: disable/enable heal|earthquake|fire|wind)
- $FFFF80 - Controller input buffer 1
- $FFFF88 - Controller input buffer 2
- Format:
- $00 | Type:
- | $02 - 3pad
- | $04 - 6pad
- $01 | 6pad input data (4 bits MXYZ) %pppphhhh p=pressed h=holding
- $02 | SACBRLDU hold
- $03 | SACBRLDU press
- ROM:
- $003BD2 - Checks if magicbits changed
- $00DEB8 - (ROUTINE) checks TRIGGER (ABC) input by the player [MXYZ check goes here]
- $00DDD8 - (ROUTINE) casts the magic spells
- $0037A8 - Check if player presses START to open the menu
- $026E72 - Check if player presses C at the MAGIC MENU to bitset magic spells (d0: bit to set using bset)
- $023052 - Refresh MAGIC display
- ; ====================================================================
- ; XYZM patch to enable/disable spells
- ;
- ; US ROM
- ; ====================================================================
- ; at $DEB8:
- ; 4E B9 00 02 7E 00
- ; 4E 75
- ;
- ; at $27E00
- move.b ($FFFFEBA5),d7 ; Get MZYXpress|MZYXhold
- btst #4,d7 ; X hold?
- beq.s .nothold_x
- bchg #2,($FFFFF023).w
- bchg #2,($FFFFEFED).w
- .nothold_x:
- btst #5,d7 ; Y hold?
- beq.s .nothold_y
- bchg #1,($FFFFF023).w
- bchg #1,($FFFFEFED).w
- .nothold_y:
- btst #6,d7 ; Z hold?
- beq.s .nothold_z
- bchg #0,($FFFFF023).w
- bchg #0,($FFFFEFED).w
- .nothold_z:
- btst #7,d7 ; M hold?
- beq.s .nothold_m
- bchg #3,($FFFFF023).w
- bchg #3,($FFFFEFED).w
- .nothold_m:
- jsr ($23052).l ; Update status
- move.b ($FFFFEB38).w,d7 ; Original code
- jsr ($E0A4).l
- jmp ($DEC0).l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement