Code:
$B4FC:B1 12 LDA ($12),Y @ $AB08 = #$C8 A:00 X:24 Y:FE P:NvUbdIzc
$B4FE:C9 FF CMP #$FF A:C8 X:24 Y:FE P:NvUbdIzc
$B500:F0 41 BEQ $B543 A:C8 X:24 Y:FE P:NvUbdIzc
$B502:85 50 STA $0050 = #$D0 A:C8 X:24 Y:FE P:NvUbdIzc
$B504:C8 INY A:C8 X:24 Y:FE P:NvUbdIzc
$B505:A9 00 LDA #$00 A:C8 X:24 Y:FF P:NvUbdIzc
$B507:85 51 STA $0051 = #$00 A:00 X:24 Y:FF P:nvUbdIZc
$B509:A9 01 LDA #$01 A:00 X:24 Y:FF P:nvUbdIZc
$B50B:8D 85 03 STA $0385 = #$01 A:01 X:24 Y:FF P:nvUbdIzc
$B50E:8C 25 03 STY $0325 = #$FD A:01 X:24 Y:FF P:nvUbdIzc
$B511:98 TYA A:01 X:24 Y:FF P:nvUbdIzc
$B512:38 SEC A:FF X:24 Y:FF P:NvUbdIzc
$B513:E9 01 SBC #$01 A:FF X:24 Y:FF P:NvUbdIzC
$B515:A8 TAY A:FE X:24 Y:FF P:NvUbdIzC
$B516:B9 F0 B1 LDA $B1F0,Y @ $B2EE = #$BA A:FE X:24 Y:FE P:NvUbdIzC
$B519:85 2C STA $002C = #$B9 A:BA X:24 Y:FE P:NvUbdIzC
$B51B:B9 F1 B1 LDA $B1F1,Y @ $B2EF = #$25 A:BA X:24 Y:FE P:NvUbdIzC
$B51E:85 2D STA $002D = #$25 A:25 X:24 Y:FE P:nvUbdIzC
$B520:20 C0 BF JSR $BFC0 A:25 X:24 Y:FE
$B4FE:C9 FF CMP #$FF A:C8 X:24 Y:FE P:NvUbdIzc
$B500:F0 41 BEQ $B543 A:C8 X:24 Y:FE P:NvUbdIzc
$B502:85 50 STA $0050 = #$D0 A:C8 X:24 Y:FE P:NvUbdIzc
$B504:C8 INY A:C8 X:24 Y:FE P:NvUbdIzc
$B505:A9 00 LDA #$00 A:C8 X:24 Y:FF P:NvUbdIzc
$B507:85 51 STA $0051 = #$00 A:00 X:24 Y:FF P:nvUbdIZc
$B509:A9 01 LDA #$01 A:00 X:24 Y:FF P:nvUbdIZc
$B50B:8D 85 03 STA $0385 = #$01 A:01 X:24 Y:FF P:nvUbdIzc
$B50E:8C 25 03 STY $0325 = #$FD A:01 X:24 Y:FF P:nvUbdIzc
$B511:98 TYA A:01 X:24 Y:FF P:nvUbdIzc
$B512:38 SEC A:FF X:24 Y:FF P:NvUbdIzc
$B513:E9 01 SBC #$01 A:FF X:24 Y:FF P:NvUbdIzC
$B515:A8 TAY A:FE X:24 Y:FF P:NvUbdIzC
$B516:B9 F0 B1 LDA $B1F0,Y @ $B2EE = #$BA A:FE X:24 Y:FE P:NvUbdIzC
$B519:85 2C STA $002C = #$B9 A:BA X:24 Y:FE P:NvUbdIzC
$B51B:B9 F1 B1 LDA $B1F1,Y @ $B2EF = #$25 A:BA X:24 Y:FE P:NvUbdIzC
$B51E:85 2D STA $002D = #$25 A:25 X:24 Y:FE P:nvUbdIzC
$B520:20 C0 BF JSR $BFC0 A:25 X:24 Y:FE
Basically what's happening is that the next thing loaded becomes an $AA09 instead of $AB09. Is this because of the Y? There's not anything that tells the game to DEC the low byte of the address.