hirom header org $C13E94 ;LDX #$8259 ;STX $14 STZ $16 ; start outer loop incrementor at 0 LDA #$C2 STA $12 ; top of $24-bit pointer to current slot in this mold outerLoop: TDC LDA $26 TAX ; "LDX $26" would make more sense, but doing this to ; match Square's idiocy. REP #$20 LDA $C2C4A4,X ; mold slot info pointer STA $10 ; $24-bit $10-$12 = pointer to current slot in this mold LDA $16 ; 8-bit $16 = loop incrementor, 0 to 5 mold slot * 2 AND #$00FF ; isolate bottom TAX LDA $C2C474,X ; get RAM pointer for this mold slot's subsprite info STA $14 ; save it ; (-0 bytes so far) ; [... in between is identical] org $C13EF3 ; INC $10 ; point to grid position of next mold slot INC $26 INC $26 ; point to next mold slot info pointer ; (+2 bytes) ; C1/3EF5: A5 14 LDA $14 ; C1/3EF7: 18 CLC ; C1/3EF8: 69 44 00 ADC #$0044 ; C1/3EFB: 85 14 STA $14 (advance RAM pointer 68 bytes from start of ; last mold slot) ; (-8 bytes) TDC SEP #$20 ; org $C13F02 LDA $16 INC INC STA $16 CMP #$0C BNE outerLoop ; (+6 bytes here)