hirom header ; look for "FF6j" throughout for Japanese version patch differences. org $C2329E ; FF6j = org $C23299 LDA $B8 ; load targets JSR reloc ; do relocated Square code (while preserving A) STA $B8 ; restore pre- True Knight and Love Token targets, as we ; want those backed up for next strike (and Mimic) JSR $3865 ; depending on $3415, copy targets into backup targets ; and add to "already hit targets" list, or copy backup ; targets into targets. ; FF6j = JSR $3860 lda $3414 bpl SkipRestore ; now i want to undo MY changes to $B8, but NOT any Square ; changes done by C2/3865. lda $a2 ; conveniently holds our post- True Knight targets (from C2/57C2) sta $b8 ; restore them to be safe, as i don't want patch-altered targets ; for anything but the C2/3865 call ... even though i don't think ; $B8 or $B9 ever gets read again without being overwritten first. SkipRestore: ; ----------------------- org $C2???? reloc: ; Relocated Square code (sans "LDA $B8", and plus PHA/PLA) PHA PHX JSR $520E ; X = Number of bits set in A ; FF6j = JSR $51F6 STX $3EC9 ; # of targets PLX JSR $123B ; True Knight and Love Token ; FF6j = JSR $1236 JSR $57C2 ; Copies targets in $B8-$B9 to $A2-$A3 and $A4-$A5, and ; set up a couple attack properties and animation flags. ; FF6j = JSR $57AA PLA RTS