;;; $8000..9378: Overworld Map16 tile number table ;;;
;; Large table of 8x8 tile numbers read by the overworld event engine in bank 04 ($EAF4: LDA.L
;; $8000,X).
;; Indexed by map position; the matching attributes come from the parallel table at $7F:0000. SYSTEM_NOTES
;; calls it
;; 'OW Map16 definitions'. Exact row layout not decoded.
$0C:8000 .db $71,$71,$71,$71,$71,$71,$6E,$11 ; Tile number bytes (one per map position, parallel to the $7F:0000 property table)
$0C:8008 .db $43,$43,$43,$11,$68,$3D,$69,$69
$0C:8010 .db $69,$3D,$6E,$3D,$43,$43,$43,$00
$0C:8018 .db $43,$00,$11,$3F,$11,$50,$20,$50
$0C:8020 .db $11,$3F,$3F,$11,$71,$11,$43,$43
$0C:8028 .db $43,$11,$71,$3D,$69,$69,$69,$3D
$0C:8030 .db $6E,$3D,$43,$43,$43,$3D,$68,$3D
$0C:8038 .db $3F,$3F,$3F,$3D,$6E,$3D,$3F,$3F
$0C:8040 .db $11,$00,$43,$00,$11,$3F,$11,$50
$0C:8048 .db $11,$43,$43,$11,$11,$20,$3D,$69
$0C:8050 .db $69,$00,$11,$50,$3D,$43,$43,$50
$0C:8058 .db $50,$11,$11,$10,$3F,$11,$50,$3D
$0C:8060 .db $71,$3D,$3F,$3F,$11,$3D,$6E,$3D
$0C:8068 .db $3F,$3F,$3F,$3D,$03,$03,$03,$03
$0C:8070 .db $03,$03,$11,$43,$43,$43,$11,$71
$0C:8078 .db $3D,$69,$69,$69,$3D,$11,$3D,$43
$0C:8080 .db $43,$43,$00,$11,$11,$10,$3F,$11
$0C:8088 .db $50,$50,$71,$11,$10,$3F,$11,$50
$0C:8090 .db $03,$60,$75,$60,$03,$03,$11,$00
$0C:8098 .db $43,$00,$11,$71,$3D,$50,$3F,$50
$0C:80A0 .db $3D,$11,$3D,$3F,$3F,$11,$00,$11
$0C:80A8 .db $11,$10,$3F,$11,$50,$50,$71,$11
$0C:80B0 .db $10,$3F,$11,$50,$60,$75,$75,$75
$0C:80B8 .db $60,$03,$3D,$43,$43,$43,$3D,$71
$0C:80C0 .db $3D,$3F,$3F,$3F,$3D,$11,$3D,$3F
$0C:80C8 .db $3F,$11,$00,$11,$71,$10,$3F,$11
$0C:80D0 .db $50,$50,$71,$71,$10,$3F,$11,$50
$0C:80D8 .db $69,$20,$69,$69,$20,$50,$50,$43
$0C:80E0 .db $43,$43,$43,$11,$11,$75,$75,$75
$0C:80E8 .db $75,$75,$75,$11,$10,$10,$11,$75
$0C:80F0 .db $75,$11,$43,$43,$11,$75,$75,$75
$0C:80F8 .db $75,$75,$75,$75,$69,$20,$69,$69
$0C:8100 .db $20,$50,$50,$43,$43,$43,$43,$11
$0C:8108 .db $11,$75,$10,$10,$75,$75,$75,$11
$0C:8110 .db $00,$00,$11,$75,$75,$11,$50,$50
$0C:8118 .db $11,$75,$75,$75,$11,$11,$75,$75
$0C:8120 .db $69,$20,$69,$69,$20,$50,$50,$43
$0C:8128 .db $43,$43,$43,$11,$11,$10,$03,$10
$0C:8130 .db $75,$75,$11,$00,$43,$00,$11,$75
$0C:8138 .db $11,$50,$69,$50,$11,$75,$75,$11
$0C:8140 .db $43,$11,$75,$75,$69,$20,$69,$69
$0C:8148 .db $20,$50,$50,$43,$43,$43,$43,$11
$0C:8150 .db $11,$10,$03,$03,$10,$75,$11,$00
$0C:8158 .db $43,$43,$00,$11,$11,$50,$69,$69
$0C:8160 .db $50,$11,$75,$11,$43,$43,$11,$75
$0C:8168 .db $11,$75,$75,$75,$75,$75,$75,$75
$0C:8170 .db $75,$75,$75,$75,$75,$75,$75,$75
$0C:8178 .db $75,$75,$75,$75,$75,$75,$75,$75
$0C:8180 .db $75,$75,$75,$75,$75,$75,$A6,$A7
$0C:8188 .db $75,$75,$75,$75,$20,$3D,$56,$57
$0C:8190 .db $71,$20,$20,$3D,$64,$65,$71,$50
$0C:8198 .db $20,$3D,$71,$71,$71,$71,$50,$3D
$0C:81A0 .db $71,$71,$71,$71,$11,$3D,$12,$13
$0C:81A8 .db $14,$15,$75,$3D,$49,$4A,$59,$5A
$0C:81B0 .db $20,$3D,$56,$57,$71,$20,$20,$3D
$0C:81B8 .db $64,$65,$71,$50,$20,$3D,$71,$71
$0C:81C0 .db $71,$71,$50,$3D,$12,$13,$14,$15
$0C:81C8 .db $11,$3D,$31,$32,$33,$34,$75,$3D
$0C:81D0 .db $49,$4A,$59,$5A,$20,$3D,$56,$57
$0C:81D8 .db $71,$20,$20,$3D,$64,$65,$71,$50
$0C:81E0 .db $20,$3D,$12,$13,$14,$15,$50,$3D
$0C:81E8 .db $31,$32,$33,$34,$11,$3D,$35,$36
$0C:81F0 .db $37,$38,$75,$3D,$49,$4A,$59,$5A
$0C:81F8 .db $3F,$3F,$3F,$3F,$3F,$3F,$3F,$3F
$0C:8200 .db $3F,$3F,$3F,$3F,$3F,$76,$76,$76
$0C:8208 .db $76,$3F,$76,$76,$F0,$F1,$76,$76
$0C:8210 .db $76,$76,$F1,$F0,$76,$76,$3F,$76
$0C:8218 .db $76,$76,$76,$3F,$3F,$3F,$3F,$3F
$0C:8220 .db $3F,$3F,$3F,$3F,$3F,$3F,$3F,$3F
$0C:8228 .db $3F,$76,$76,$76,$76,$3F,$76,$F1
$0C:8230 .db $F0,$F1,$F1,$76,$76,$F0,$F1,$F0
$0C:8238 .db $F0,$76,$3F,$76,$76,$76,$76,$3F
$0C:8240 .db $3F,$3F,$3F,$3F,$3F,$3F,$3F,$3F
$0C:8248 .db $3F,$3F,$3F,$3F,$3F,$76,$76,$76
$0C:8250 .db $76,$3F,$76,$E3,$11,$11,$E3,$76
$0C:8258 .db $76,$43,$11,$11,$43,$76,$3F,$76
$0C:8260 .db $76,$76,$76,$3F,$3F,$3F,$3F,$3F
$0C:8268 .db $3F,$3F,$3F,$3F,$3F,$3F,$3F,$3F
$0C:8270 .db $3F,$76,$76,$76,$76,$3F,$76,$E3
$0C:8278 .db $E4,$E4,$E3,$76,$76,$F1,$F1,$F1
$0C:8280 .db $F1,$76,$3F,$76,$76,$76,$76,$3F
$0C:8288 .db $3F,$3F,$3F,$3F,$3F,$3F,$3F,$3F
$0C:8290 .db $3F,$3F,$3F,$3F,$76,$E3,$E4,$E4
$0C:8298 .db $E3,$76,$76,$FE,$FF,$FF,$FE,$76
$0C:82A0 .db $76,$11,$F1,$F1,$11,$76,$76,$76
$0C:82A8 .db $76,$76,$76,$76,$3F,$3F,$3F,$3F
$0C:82B0 .db $3F,$3F,$3F,$3F,$3F,$3F,$3F,$3F
$0C:82B8 .db $76,$E3,$E4,$E4,$E3,$76,$F2,$F3
$0C:82C0 .db $F4,$F4,$F3,$F2,$F0,$F1,$F0,$F1
$0C:82C8 .db $F0,$F1,$76,$76,$76,$76,$76,$76
$0C:82D0 .db $3F,$3F,$3F,$3F,$3F,$3F,$3F,$E3
$0C:82D8 .db $E4,$E4,$E3,$3F,$F2,$F3,$F4,$F4
$0C:82E0 .db $F3,$F2,$CE,$CF,$CD,$CD,$CF,$CE
$0C:82E8 .db $11,$DE,$DF,$DF,$DE,$11,$76,$76
$0C:82F0 .db $76,$76,$76,$76,$3F,$E3,$E4,$E4
$0C:82F8 .db $E3,$3F,$F2,$F3,$F4,$F4,$F3,$F2
$0C:8300 .db $CB,$CC,$CD,$CD,$CC,$CB,$DB,$DC
$0C:8308 .db $DD,$DD,$DC,$DB,$ED,$DE,$DF,$DF
$0C:8310 .db $DE,$ED,$76,$76,$76,$76,$76,$76
$0C:8318 .db $3F,$E3,$E4,$E4,$E3,$3F,$F2,$F3
$0C:8320 .db $F4,$F4,$F3,$F2,$CB,$CC,$CD,$CD
$0C:8328 .db $CC,$CB,$DB,$DC,$DD,$DD,$DC,$DB
$0C:8330 .db $FB,$FC,$FD,$FD,$FC,$FB,$ED,$EE
$0C:8338 .db $EF,$EF,$EE,$ED,$3F,$E3,$E4,$E4
$0C:8340 .db $E3,$3F,$F2,$F3,$F4,$F4,$F3,$F2
$0C:8348 .db $CB,$CC,$CD,$CD,$CC,$CB,$DB,$DC
$0C:8350 .db $DD,$DD,$DC,$DB,$EB,$EC,$BB,$BB
$0C:8358 .db $EC,$EB,$FB,$FC,$FD,$FD,$FC,$FB
$0C:8360 .db $3F,$3F,$3F,$3F,$3F,$3F,$3F,$E3
$0C:8368 .db $E4,$E4,$E3,$3F,$F2,$F3,$F4,$F4
$0C:8370 .db $F3,$F2,$CB,$CC,$CD,$CD,$CC,$CB
$0C:8378 .db $DB,$DC,$DD,$DD,$DC,$DB,$FB,$FC
$0C:8380 .db $FD,$FD,$FC,$FB,$3F,$50,$20,$69
$0C:8388 .db $69,$69,$3F,$10,$42,$41,$69,$69
$0C:8390 .db $03,$11,$3C,$4F,$50,$69,$5D,$5D
$0C:8398 .db $6B,$6B,$6E,$43,$5D,$5D,$6B,$6B
$0C:83A0 .db $6D,$6D,$4F,$4F,$3C,$3C,$4F,$6E
$0C:83A8 .db $75,$75,$75,$75,$75,$75,$E2,$E5
$0C:83B0 .db $B2,$B3,$75,$75,$84,$EA,$D4,$D5
$0C:83B8 .db $75,$75,$35,$36,$37,$38,$75,$75
$0C:83C0 .db $35,$36,$37,$38,$01,$75,$49,$4A
$0C:83C8 .db $59,$5A,$11,$10,$69,$69,$69,$69
$0C:83D0 .db $69,$69,$69,$50,$43,$43,$50,$69
$0C:83D8 .db $69,$DA,$8A,$8A,$3D,$69,$43,$DA
$0C:83E0 .db $8A,$8A,$3D,$43,$75,$00,$43,$43
$0C:83E8 .db $00,$75,$75,$20,$20,$20,$20,$75
$0C:83F0 .db $69,$69,$69,$69,$69,$69,$69,$69
$0C:83F8 .db $69,$69,$69,$69,$69,$50,$43,$43
$0C:8400 .db $50,$69,$43,$DA,$8A,$8A,$3D,$43
$0C:8408 .db $75,$DA,$8A,$8A,$3D,$75,$75,$00
$0C:8410 .db $43,$43,$00,$75,$69,$69,$69,$69
$0C:8418 .db $69,$69,$69,$69,$69,$69,$69,$69
$0C:8420 .db $69,$69,$69,$69,$69,$69,$43,$10
$0C:8428 .db $43,$43,$10,$43,$75,$DA,$8A,$8A
$0C:8430 .db $3D,$75,$75,$DA,$8A,$8A,$3D,$75
$0C:8438 .db $43,$43,$43,$43,$43,$43,$75,$75
$0C:8440 .db $75,$75,$75,$75,$75,$75,$75,$75
$0C:8448 .db $75,$75,$75,$75,$75,$75,$75,$75
$0C:8450 .db $75,$75,$75,$75,$75,$75,$75,$75
$0C:8458 .db $75,$75,$75,$75,$10,$43,$9A,$9A
$0C:8460 .db $10,$43,$3D,$71,$6A,$6A,$3D,$75
$0C:8468 .db $00,$43,$43,$43,$00,$75,$20,$20
$0C:8470 .db $69,$20,$20,$11,$50,$20,$69,$20
$0C:8478 .db $50,$11,$11,$43,$43,$43,$11,$75
$0C:8480 .db $50,$43,$9A,$9A,$50,$69,$3D,$71
$0C:8488 .db $6A,$6A,$3D,$43,$DA,$AD,$5D,$5D
$0C:8490 .db $3D,$75,$DA,$AD,$5D,$5D,$3D,$75
$0C:8498 .db $00,$43,$43,$43,$00,$11,$50,$20
$0C:84A0 .db $69,$20,$50,$11,$50,$43,$9A,$9A
$0C:84A8 .db $50,$69,$3D,$71,$6A,$6A,$3D,$69
$0C:84B0 .db $DA,$AD,$5D,$5D,$3D,$43,$DA,$AD
$0C:84B8 .db $5D,$5D,$3D,$75,$00,$43,$43,$43
$0C:84C0 .db $00,$75,$20,$20,$69,$20,$20,$11
$0C:84C8 .db $50,$43,$9A,$9A,$50,$69,$3D,$71
$0C:84D0 .db $6A,$6A,$3D,$69,$DA,$AD,$5D,$5D
$0C:84D8 .db $3D,$69,$DA,$AD,$5D,$5D,$3D,$43
$0C:84E0 .db $00,$43,$43,$43,$00,$75,$20,$20
$0C:84E8 .db $69,$20,$20,$75,$50,$43,$9A,$9A
$0C:84F0 .db $50,$69,$3D,$71,$6A,$6A,$3D,$69
$0C:84F8 .db $DA,$AD,$5D,$5D,$3D,$69,$DA,$AD
$0C:8500 .db $5D,$5D,$3D,$69,$00,$43,$43,$43
$0C:8508 .db $00,$43,$20,$20,$69,$20,$20,$75
$0C:8510 .db $6E,$3D,$A4,$A4,$A4,$3D,$68,$3D
$0C:8518 .db $B4,$B4,$B4,$3D,$6E,$3D,$73,$73
$0C:8520 .db $73,$00,$43,$00,$3F,$3F,$3F,$50
$0C:8528 .db $20,$50,$3F,$3F,$3F,$3F,$43,$3F
$0C:8530 .db $3F,$3F,$3F,$3F,$BA,$BA,$BA,$BA
$0C:8538 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8540 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8548 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8550 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8558 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8560 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8568 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8570 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8578 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8580 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8588 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8590 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8598 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85A0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85A8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85B0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85B8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85C0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85C8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85D0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85D8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85E0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85E8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85F0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:85F8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8600 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8608 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8610 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8618 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8620 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8628 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8630 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8638 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8640 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8648 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8650 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8658 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8660 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8668 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8670 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8678 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8680 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8688 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8690 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8698 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86A0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86A8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86B0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86B8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86C0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86C8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86D0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86D8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86E0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86E8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86F0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:86F8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8700 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8708 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8710 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8718 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8720 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8728 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8730 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8738 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8740 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8748 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8750 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8758 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8760 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8768 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8770 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8778 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8780 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8788 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8790 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8798 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87A0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87A8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87B0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87B8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87C0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87C8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87D0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87D8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87E0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87E8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87F0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:87F8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8800 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8808 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8810 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8818 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8820 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8828 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8830 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8838 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8840 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8848 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8850 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8858 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8860 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8868 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8870 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8878 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8880 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8888 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8890 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8898 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88A0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88A8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88B0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88B8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88C0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88C8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88D0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88D8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88E0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88E8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88F0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:88F8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8900 .db $6A,$6A,$5D,$5D,$6F,$5F,$6A,$6A
$0C:8908 .db $5F,$6F,$5F,$56,$6F,$5F,$5F,$6F
$0C:8910 .db $5F,$6F,$5F,$58,$6A,$6A,$5F,$6F
$0C:8918 .db $5D,$6B,$5D,$6B,$6B,$6D,$6B,$6E
$0C:8920 .db $5F,$6F,$6C,$58,$6A,$6A,$5F,$6F
$0C:8928 .db $5D,$5D,$5D,$5D,$6A,$6A,$5D,$5D
$0C:8930 .db $6C,$71,$5F,$6F,$68,$68,$52,$71
$0C:8938 .db $6A,$6A,$6A,$6A,$6D,$6B,$6E,$6B
$0C:8940 .db $6F,$5F,$30,$6C,$6A,$6A,$6F,$5F
$0C:8948 .db $4E,$4E,$6A,$6A,$4B,$3F,$3F,$4B
$0C:8950 .db $3F,$4B,$4B,$3F,$71,$71,$6C,$68
$0C:8958 .db $A6,$A7,$B6,$B7,$A6,$A7,$A9,$B7
$0C:8960 .db $6B,$6E,$6B,$5D,$5D,$6F,$6F,$5F
$0C:8968 .db $5F,$63,$5F,$6F,$5D,$68,$5D,$68
$0C:8970 .db $74,$68,$68,$74,$71,$68,$68,$68
$0C:8978 .db $43,$68,$71,$68,$3E,$3E,$43,$43
$0C:8980 .db $5D,$5D,$9A,$9A,$3F,$5B,$5B,$3F
$0C:8988 .db $5B,$3F,$3F,$5B,$6A,$6A,$68,$68
$0C:8990 .db $5D,$6B,$5D,$6B,$6B,$6E,$6B,$6E
$0C:8998 .db $6B,$6B,$6B,$6B,$9A,$9A,$3E,$3E
$0C:89A0 .db $71,$71,$71,$71,$6B,$C5,$6B,$C5
$0C:89A8 .db $4B,$3F,$4B,$3F,$6A,$6A,$9A,$9A
$0C:89B0 .db $6D,$6B,$6E,$6B,$6F,$5F,$71,$6C
$0C:89B8 .db $9A,$9A,$6F,$5F,$8C,$8D,$8C,$8D
$0C:89C0 .db $6B,$6E,$6B,$6D,$6D,$6D,$71,$6E
$0C:89C8 .db $6E,$11,$5D,$6F,$5D,$6F,$6A,$6A
$0C:89D0 .db $5D,$5D,$6A,$6A,$68,$68,$5F,$6F
$0C:89D8 .db $6D,$6C,$6E,$71,$71,$71,$71,$71
$0C:89E0 .db $8C,$8D,$43,$43,$9A,$9A,$8C,$8D
$0C:89E8 .db $71,$71,$71,$71,$6E,$68,$68,$68
$0C:89F0 .db $71,$68,$6E,$68,$71,$68,$71,$68
$0C:89F8 .db $6E,$71,$6E,$71,$10,$03,$6F,$6F
$0C:8A00 .db $4B,$5B,$3F,$4B,$5B,$3F,$4B,$3F
$0C:8A08 .db $4B,$10,$03,$71,$A4,$A4,$B4,$B4
$0C:8A10 .db $A4,$A4,$B4,$B4,$6B,$5D,$6B,$68
$0C:8A18 .db $68,$68,$74,$74,$74,$68,$70,$5D
$0C:8A20 .db $3E,$3E,$3E,$3E,$9A,$9A,$6A,$6A
$0C:8A28 .db $6A,$6A,$6F,$6F,$C5,$6B,$C5,$6B
$0C:8A30 .db $5D,$5D,$5D,$5D,$6A,$6A,$6F,$5F
$0C:8A38 .db $5F,$71,$6C,$68,$71,$11,$68,$68
$0C:8A40 .db $43,$43,$68,$6C,$56,$57,$9E,$9F
$0C:8A48 .db $54,$55,$9E,$9F,$67,$57,$9E,$9F
$0C:8A50 .db $11,$11,$11,$11,$5F,$6F,$6A,$6A
$0C:8A58 .db $6B,$5D,$6B,$5D,$2B,$2B,$6A,$6A
$0C:8A60 .db $2B,$6E,$2B,$6E,$6F,$5F,$71,$6C
$0C:8A68 .db $6A,$6A,$6F,$5F,$99,$6E,$6C,$6D
$0C:8A70 .db $71,$6C,$6F,$5F,$6F,$5F,$6A,$6A
$0C:8A78 .db $5F,$6F,$6C,$71,$71,$71,$71,$71
$0C:8A80 .db $6F,$6F,$6A,$6A,$6A,$6A,$5F,$6F
$0C:8A88 .db $6D,$6C,$6E,$89,$6B,$6B,$68,$6B
$0C:8A90 .db $71,$71,$68,$68,$6B,$5D,$6B,$5D
$0C:8A98 .db $6B,$6B,$6B,$6B,$5D,$5D,$5D,$5D
$0C:8AA0 .db $6A,$6A,$5D,$5D,$6B,$5D,$6B,$68
$0C:8AA8 .db $6A,$6A,$6A,$6A,$5D,$6B,$5D,$6B
$0C:8AB0 .db $71,$B6,$71,$71,$B7,$71,$71,$71
$0C:8AB8 .db $71,$71,$71,$A6,$71,$71,$A7,$71
$0C:8AC0 .db $71,$71,$A7,$A6,$9A,$9A,$6A,$6A
$0C:8AC8 .db $4B,$75,$4B,$75,$5B,$5B,$75,$75
$0C:8AD0 .db $5B,$3F,$75,$75,$76,$76,$76,$76
$0C:8AD8 .db $3F,$3F,$3F,$3F,$68,$5D,$68,$5D
$0C:8AE0 .db $6C,$4F,$6C,$68,$6C,$4F,$6C,$6C
$0C:8AE8 .db $5D,$68,$4F,$6C,$5D,$68,$5D,$5D
$0C:8AF0 .db $4F,$6C,$68,$6C,$4F,$6C,$6C,$6C
$0C:8AF8 .db $4F,$68,$6C,$6C,$5D,$68,$4F,$68
$0C:8B00 .db $68,$4F,$6C,$6C,$5D,$5D,$68,$68
$0C:8B08 .db $6E,$6D,$6D,$6E,$2B,$2B,$2B,$2B
$0C:8B10 .db $6A,$6A,$2B,$2B,$91,$92,$A0,$A1
$0C:8B18 .db $A2,$A3,$93,$94,$6A,$6A,$9A,$9A
$0C:8B20 .db $C5,$6B,$C5,$6B,$C5,$C5,$C5,$C5
$0C:8B28 .db $6B,$C5,$6B,$C5,$71,$71,$71,$A6
$0C:8B30 .db $3D,$A4,$3D,$B4,$A4,$3D,$B4,$3D
$0C:8B38 .db $61,$61,$61,$61,$5D,$5D,$5D,$68
$0C:8B40 .db $71,$71,$68,$68,$BA,$BA,$BA,$BA
$0C:8B48 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B50 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B58 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B60 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B68 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B70 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B78 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B80 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B88 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B90 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8B98 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BA0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BA8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BB0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BB8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BC0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BC8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BD0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BD8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BE0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BE8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BF0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8BF8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C00 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C08 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C10 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C18 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C20 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C28 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C30 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C38 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C40 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C48 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C50 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C58 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C60 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C68 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C70 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C78 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C80 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C88 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C90 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8C98 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CA0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CA8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CB0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CB8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CC0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CC8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CD0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CD8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CE0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CE8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CF0 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8CF8 .db $BA,$BA,$BA,$BA,$BA,$BA,$BA,$BA
$0C:8D00 .db $00,$10,$84,$50,$01,$10,$D0,$83
$0C:8D08 .db $90,$01,$18,$50,$82,$5C,$02,$10
$0C:8D10 .db $90,$50,$82,$14,$04,$50,$90,$10
$0C:8D18 .db $94,$58,$81,$54,$00,$18,$81,$14
$0C:8D20 .db $81,$58,$02,$54,$10,$D0,$83,$90
$0C:8D28 .db $01,$10,$50,$82,$5C,$81,$10,$00
$0C:8D30 .db $50,$82,$14,$02,$10,$18,$50,$82
$0C:8D38 .db $58,$02,$10,$90,$50,$81,$58,$05
$0C:8D40 .db $D4,$50,$90,$10,$94,$58,$81,$54
$0C:8D48 .db $00,$D0,$82,$90,$02,$D0,$58,$50
$0C:8D50 .db $81,$5C,$83,$50,$81,$14,$01,$54
$0C:8D58 .db $90,$82,$50,$00,$58,$81,$54,$81
$0C:8D60 .db $10,$00,$50,$81,$58,$00,$54,$81
$0C:8D68 .db $10,$00,$50,$82,$58,$86,$10,$00
$0C:8D70 .db $D0,$83,$90,$01,$10,$50,$82,$5C
$0C:8D78 .db $02,$10,$D0,$50,$82,$14,$83,$50
$0C:8D80 .db $00,$58,$81,$54,$01,$90,$10,$81
$0C:8D88 .db $50,$00,$58,$81,$54,$02,$10,$50
$0C:8D90 .db $1C,$82,$10,$0C,$D0,$10,$14,$50
$0C:8D98 .db $90,$10,$50,$14,$58,$54,$10,$D0
$0C:8DA0 .db $50,$81,$58,$00,$D4,$83,$50,$00
$0C:8DA8 .db $58,$81,$54,$01,$90,$10,$81,$50
$0C:8DB0 .db $00,$58,$81,$54,$00,$50,$82,$1C
$0C:8DB8 .db $81,$10,$00,$50,$82,$14,$81,$10
$0C:8DC0 .db $00,$50,$82,$58,$02,$10,$D0,$50
$0C:8DC8 .db $81,$58,$00,$D4,$81,$50,$02,$10
$0C:8DD0 .db $50,$58,$81,$54,$00,$90,$81,$10
$0C:8DD8 .db $01,$50,$58,$81,$54,$01,$1C,$58
$0C:8DE0 .db $82,$1C,$83,$14,$00,$54,$82,$14
$0C:8DE8 .db $85,$1C,$03,$D4,$10,$50,$94,$81
$0C:8DF0 .db $1C,$00,$54,$82,$14,$87,$1C,$00
$0C:8DF8 .db $58,$82,$1C,$83,$14,$00,$54,$82
$0C:8E00 .db $14,$02,$1C,$10,$50,$82,$1C,$03
$0C:8E08 .db $D4,$50,$10,$94,$81,$1C,$81,$54
$0C:8E10 .db $81,$14,$82,$1C,$01,$54,$14,$82
$0C:8E18 .db $1C,$00,$58,$82,$1C,$83,$14,$00
$0C:8E20 .db $54,$82,$14,$81,$10,$00,$50,$81
$0C:8E28 .db $1C,$05,$D4,$50,$90,$10,$94,$1C
$0C:8E30 .db $81,$54,$00,$5C,$81,$14,$81,$1C
$0C:8E38 .db $00,$54,$81,$14,$82,$1C,$00,$58
$0C:8E40 .db $82,$1C,$83,$14,$00,$54,$82,$14
$0C:8E48 .db $82,$10,$03,$50,$1C,$D4,$50,$81
$0C:8E50 .db $90,$01,$10,$94,$81,$54,$81,$5C
$0C:8E58 .db $81,$14,$01,$1C,$54,$82,$14,$01
$0C:8E60 .db $1C,$14,$9C,$1C,$81,$14,$83,$1C
$0C:8E68 .db $01,$54,$10,$81,$18,$03,$10,$50
$0C:8E70 .db $54,$10,$81,$18,$02,$10,$50,$54
$0C:8E78 .db $84,$10,$00,$54,$84,$10,$00,$54
$0C:8E80 .db $84,$10,$00,$14,$84,$10,$01,$54
$0C:8E88 .db $10,$81,$18,$03,$10,$50,$54,$10
$0C:8E90 .db $81,$18,$02,$10,$50,$54,$84,$10
$0C:8E98 .db $00,$54,$84,$10,$00,$54,$84,$10
$0C:8EA0 .db $00,$14,$84,$10,$01,$54,$10,$81
$0C:8EA8 .db $18,$03,$10,$50,$54,$10,$81,$18
$0C:8EB0 .db $02,$10,$50,$54,$84,$10,$00,$54
$0C:8EB8 .db $84,$10,$00,$54,$84,$10,$00,$14
$0C:8EC0 .db $84,$10,$8C,$58,$83,$14,$00,$58
$0C:8EC8 .db $85,$14,$81,$94,$81,$D4,$81,$94
$0C:8ED0 .db $00,$58,$83,$94,$8D,$58,$83,$14
$0C:8ED8 .db $04,$58,$14,$54,$14,$54,$81,$14
$0C:8EE0 .db $00,$94,$83,$D4,$01,$94,$58,$83
$0C:8EE8 .db $94,$8D,$58,$83,$14,$07,$58,$14
$0C:8EF0 .db $10,$94,$D4,$50,$14,$94,$81,$14
$0C:8EF8 .db $03,$54,$14,$94,$58,$83,$94,$8D
$0C:8F00 .db $58,$83,$14,$01,$58,$14,$81,$10
$0C:8F08 .db $81,$50,$04,$14,$94,$D4,$94,$D4
$0C:8F10 .db $81,$94,$00,$58,$83,$94,$8C,$58
$0C:8F18 .db $00,$14,$81,$10,$81,$50,$81,$14
$0C:8F20 .db $81,$10,$81,$50,$05,$14,$94,$54
$0C:8F28 .db $D4,$94,$14,$86,$94,$8B,$58,$00
$0C:8F30 .db $14,$81,$10,$81,$50,$00,$14,$82
$0C:8F38 .db $10,$82,$50,$8B,$94,$86,$58,$81
$0C:8F40 .db $10,$81,$50,$00,$58,$82,$10,$82
$0C:8F48 .db $50,$82,$10,$82,$50,$00,$54,$81
$0C:8F50 .db $10,$81,$50,$00,$14,$85,$94,$00
$0C:8F58 .db $58,$81,$10,$81,$50,$00,$58,$82
$0C:8F60 .db $10,$82,$50,$82,$10,$82,$50,$82
$0C:8F68 .db $10,$82,$50,$82,$10,$82,$50,$85
$0C:8F70 .db $94,$00,$58,$81,$10,$81,$50,$00
$0C:8F78 .db $58,$82,$10,$82,$50,$82,$10,$82
$0C:8F80 .db $50,$82,$10,$82,$50,$82,$10,$82
$0C:8F88 .db $50,$82,$10,$82,$50,$00,$58,$81
$0C:8F90 .db $10,$81,$50,$00,$58,$82,$10,$82
$0C:8F98 .db $50,$82,$10,$82,$50,$82,$10,$82
$0C:8FA0 .db $50,$81,$10,$81,$14,$81,$50,$82
$0C:8FA8 .db $10,$82,$50,$86,$58,$81,$10,$81
$0C:8FB0 .db $50,$00,$58,$82,$10,$82,$50,$82
$0C:8FB8 .db $10,$82,$50,$82,$10,$82,$50,$82
$0C:8FC0 .db $10,$82,$50,$01,$18,$54,$83,$50
$0C:8FC8 .db $81,$18,$81,$58,$81,$50,$83,$18
$0C:8FD0 .db $03,$58,$50,$18,$58,$83,$18,$01
$0C:8FD8 .db $98,$D8,$81,$98,$00,$D8,$85,$18
$0C:8FE0 .db $00,$D8,$85,$1C,$83,$10,$81,$1C
$0C:8FE8 .db $83,$10,$81,$1C,$83,$10,$81,$1C
$0C:8FF0 .db $83,$10,$01,$50,$5C,$83,$10,$81
$0C:8FF8 .db $50,$86,$1C,$82,$10,$00,$50,$81
$0C:9000 .db $1C,$81,$10,$81,$50,$01,$1C,$14
$0C:9008 .db $81,$90,$04,$D0,$50,$14,$1C,$50
$0C:9010 .db $81,$90,$00,$10,$81,$1C,$81,$58
$0C:9018 .db $81,$18,$8D,$1C,$82,$10,$02,$50
$0C:9020 .db $1C,$14,$81,$10,$81,$50,$01,$14
$0C:9028 .db $1C,$81,$90,$01,$D0,$50,$81,$1C
$0C:9030 .db $00,$50,$81,$90,$00,$10,$92,$1C
$0C:9038 .db $00,$14,$82,$10,$02,$50,$14,$1C
$0C:9040 .db $81,$10,$81,$50,$81,$1C,$81,$90
$0C:9048 .db $02,$D0,$50,$1C,$85,$14,$9D,$1C
$0C:9050 .db $82,$10,$81,$50,$00,$14,$82,$10
$0C:9058 .db $81,$50,$01,$1C,$50,$82,$90,$01
$0C:9060 .db $10,$1C,$81,$58,$00,$50,$81,$18
$0C:9068 .db $04,$94,$54,$58,$50,$18,$81,$14
$0C:9070 .db $00,$54,$83,$14,$00,$1C,$82,$10
$0C:9078 .db $81,$50,$00,$1C,$82,$10,$81,$50
$0C:9080 .db $00,$14,$82,$10,$81,$50,$00,$1C
$0C:9088 .db $82,$90,$03,$D0,$50,$1C,$50,$82
$0C:9090 .db $90,$05,$10,$94,$54,$58,$50,$18
$0C:9098 .db $81,$14,$82,$10,$81,$50,$00,$1C
$0C:90A0 .db $82,$10,$81,$50,$00,$1C,$82,$10
$0C:90A8 .db $81,$50,$00,$14,$82,$90,$03,$D0
$0C:90B0 .db $50,$1C,$50,$82,$90,$01,$10,$1C
$0C:90B8 .db $81,$58,$00,$50,$81,$18,$00,$94
$0C:90C0 .db $82,$10,$81,$50,$00,$1C,$82,$10
$0C:90C8 .db $81,$50,$00,$1C,$82,$10,$81,$50
$0C:90D0 .db $00,$1C,$82,$90,$03,$D0,$50,$14
$0C:90D8 .db $50,$82,$90,$01,$10,$1C,$81,$58
$0C:90E0 .db $00,$50,$81,$18,$00,$1C,$82,$10
$0C:90E8 .db $81,$50,$00,$1C,$82,$10,$81,$50
$0C:90F0 .db $00,$1C,$82,$10,$81,$50,$00,$1C
$0C:90F8 .db $82,$90,$03,$D0,$50,$1C,$50,$82
$0C:9100 .db $90,$01,$10,$14,$81,$58,$00,$50
$0C:9108 .db $81,$18,$02,$1C,$10,$50,$82,$18
$0C:9110 .db $02,$10,$18,$50,$82,$18,$02,$10
$0C:9118 .db $90,$50,$82,$1C,$02,$50,$90,$10
$0C:9120 .db $82,$58,$02,$54,$18,$14,$83,$58
$0C:9128 .db $00,$14,$84,$58,$FF,$0C,$FF,$0C
$0C:9130 .db $FF,$0C,$FF,$0C,$FF,$0C,$FF,$0C
$0C:9138 .db $FF,$0C,$CB,$0C,$02,$10,$50,$10
$0C:9140 .db $81,$50,$01,$90,$10,$81,$50,$81
$0C:9148 .db $90,$05,$18,$50,$90,$50,$90,$50
$0C:9150 .db $81,$90,$81,$10,$81,$50,$06,$90
$0C:9158 .db $50,$10,$D0,$90,$10,$50,$81,$90
$0C:9160 .db $00,$50,$81,$90,$81,$10,$81,$50
$0C:9168 .db $08,$90,$10,$50,$90,$D0,$10,$50
$0C:9170 .db $10,$50,$81,$10,$00,$D0,$82,$10
$0C:9178 .db $00,$50,$81,$10,$02,$50,$10,$50
$0C:9180 .db $81,$10,$08,$D0,$90,$D0,$10,$50
$0C:9188 .db $D0,$10,$50,$D0,$81,$10,$03,$50
$0C:9190 .db $10,$50,$54,$81,$58,$04,$14,$58
$0C:9198 .db $14,$54,$58,$81,$10,$01,$50,$18
$0C:91A0 .db $87,$14,$81,$10,$82,$90,$01,$10
$0C:91A8 .db $D0,$81,$10,$01,$50,$D0,$82,$10
$0C:91B0 .db $00,$90,$81,$10,$81,$18,$00,$90
$0C:91B8 .db $87,$10,$01,$18,$58,$81,$14,$08
$0C:91C0 .db $90,$D0,$90,$D0,$58,$14,$94,$58
$0C:91C8 .db $14,$81,$58,$02,$94,$10,$50,$81
$0C:91D0 .db $10,$03,$50,$10,$D0,$90,$81,$10
$0C:91D8 .db $81,$90,$81,$50,$81,$D0,$03,$90
$0C:91E0 .db $D0,$18,$58,$84,$18,$0A,$58,$98
$0C:91E8 .db $D8,$54,$18,$14,$18,$10,$50,$90
$0C:91F0 .db $D0,$81,$18,$02,$D8,$98,$D8,$81
$0C:91F8 .db $18,$04,$D8,$18,$58,$D8,$18,$85
$0C:9200 .db $10,$00,$90,$81,$D0,$81,$10,$05
$0C:9208 .db $D0,$10,$50,$90,$10,$90,$81,$10
$0C:9210 .db $04,$50,$90,$D0,$10,$50,$81,$10
$0C:9218 .db $02,$50,$90,$50,$81,$90,$88,$10
$0C:9220 .db $01,$90,$D0,$85,$10,$00,$50,$81
$0C:9228 .db $18,$82,$10,$00,$50,$84,$10,$02
$0C:9230 .db $50,$10,$D0,$81,$10,$81,$50,$09
$0C:9238 .db $10,$54,$14,$18,$54,$14,$18,$54
$0C:9240 .db $18,$54,$8A,$18,$02,$50,$10,$D0
$0C:9248 .db $85,$10,$81,$50,$0C,$D0,$18,$58
$0C:9250 .db $18,$58,$10,$50,$10,$50,$10,$50
$0C:9258 .db $D0,$90,$81,$18,$81,$98,$06,$18
$0C:9260 .db $58,$98,$D8,$18,$58,$D8,$82,$18
$0C:9268 .db $03,$D8,$10,$18,$58,$81,$10,$82
$0C:9270 .db $18,$00,$98,$8B,$18,$14,$D4,$94
$0C:9278 .db $54,$14,$D0,$10,$90,$D0,$50,$10
$0C:9280 .db $D0,$90,$94,$D4,$10,$50,$54,$10
$0C:9288 .db $D4,$90,$D0,$81,$10,$01,$D0,$90
$0C:9290 .db $81,$D0,$00,$10,$82,$50,$00,$90
$0C:9298 .db $82,$50,$01,$90,$50,$81,$90,$01
$0C:92A0 .db $D0,$50,$81,$90,$84,$10,$00,$50
$0C:92A8 .db $81,$10,$01,$50,$10,$81,$50,$01
$0C:92B0 .db $90,$50,$81,$90,$00,$10,$81,$50
$0C:92B8 .db $01,$10,$D0,$83,$10,$81,$18,$81
$0C:92C0 .db $98,$81,$18,$81,$98,$07,$18,$58
$0C:92C8 .db $98,$D8,$18,$58,$18,$58,$81,$18
$0C:92D0 .db $04,$98,$10,$18,$58,$18,$81,$58
$0C:92D8 .db $02,$18,$D8,$98,$94,$18,$08,$58
$0C:92E0 .db $18,$58,$54,$1C,$14,$1C,$14,$94
$0C:92E8 .db $81,$1C,$01,$14,$58,$81,$1C,$81
$0C:92F0 .db $14,$81,$94,$83,$58,$03,$10,$50
$0C:92F8 .db $10,$D0,$81,$10,$00,$D0,$82,$10
$0C:9300 .db $02,$D0,$10,$90,$81,$10,$05,$D0
$0C:9308 .db $10,$50,$90,$D0,$10,$81,$50,$01
$0C:9310 .db $90,$10,$81,$50,$00,$90,$81,$10
$0C:9318 .db $00,$50,$81,$90,$00,$10,$82,$50
$0C:9320 .db $01,$10,$D0,$81,$10,$00,$50,$81
$0C:9328 .db $10,$81,$50,$81,$90,$07,$14,$54
$0C:9330 .db $94,$D4,$10,$50,$14,$54,$88,$10
$0C:9338 .db $0A,$50,$90,$D0,$10,$50,$90,$D0
$0C:9340 .db $58,$10,$D8,$90,$81,$58,$81,$D8
$0C:9348 .db $83,$18,$02,$50,$18,$50,$81,$18
$0C:9350 .db $0A,$10,$18,$10,$9C,$DC,$1C,$5C
$0C:9358 .db $18,$58,$98,$10,$81,$18,$81,$10
$0C:9360 .db $FF,$0C,$FF,$0C,$FF,$0C,$BB,$0C
$0C:9368 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:9370 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:9378 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
;;; $9380..9388: Stripe image: clear credits tilemaps ;;;
;; Stripe image number $D2 (see ImagePointers), loaded when the credits start. Two RLE records fill VRAM $2000
;; and $3000
;; with blank tiles ($F8/$00 and $FA/$08), then $FF ends the image.
$0C:9380 .db $20,$00,$5F,$FE,$F8,$00,$30,$00 ; Credits clear image: VRAM $2000, RLE fill $1FFF bytes with tile $F8 attr $00
$0C:9388 .db $5F,$FE,$FA,$08,$FF ; Next record: VRAM $3000, RLE fill with tile $FA attr $08; $FF ends the image
;;; $938D: Ending mode entry points ;;;
;; Four JSL entry points called from bank 00 game modes. Each sets the data bank to $0C.
;; $0C938D: credits, every frame (game mode $1B): scroll text and layers ($9F6A) and run the background
;; fade ($AB1F).
;; $0C939A: Yoshi's House (mode $1F): draw the sprite grid ($A0E3) and run the scene ($A1D4).
;; $0C93A5: enemy parade (mode $25): $AEAD.
;; $0C93AD: mode $21 wait: counts [$145B] down; at zero sets game mode $23 and [$1DE9] = $FF.
;; Called by:
;; $00:9557: Cutscene, ending and game mode code (castle scenes, credits, game over) (CutsceneCastlePal)
$0C:938D 8B PHB ; \
$0C:938E 4B PHK ; } Data bank = $0C (old bank saved on the stack)
$0C:938F AB PLB ; /
$0C:9390 E2 30 SEP #$30 ; A, X and Y 8-bit
$0C:9392 20 6A 9F JSR.W $9F6A ; Scroll the credits layers and queue text rows ($9F6A)
$0C:9395 20 1F AB JSR.W $AB1F ; Run the background transition fade ($AB1F)
$0C:9398 AB PLB ; Restore the data bank
$0C:9399 6B RTL ; Return long
$0C:939A 8B PHB ; \
$0C:939B 4B PHK ; } Data bank = $0C (old bank saved on the stack)
$0C:939C AB PLB ; /
$0C:939D 20 E3 A0 JSR.W $A0E3 ; Draw the 14x3 grid of 16x16 sprites ($A0E3)
$0C:93A0 20 D4 A1 JSR.W $A1D4 ; Run the Yoshi's House scene ($A1D4)
$0C:93A3 AB PLB ; Restore the data bank
$0C:93A4 6B RTL ; Return long
$0C:93A5 8B PHB ; \
$0C:93A6 4B PHK ; } Data bank = $0C (old bank saved on the stack)
$0C:93A7 AB PLB ; /
$0C:93A8 20 AD AE JSR.W $AEAD ; Run the ending enemy parade ($AEAD)
$0C:93AB AB PLB ; Restore the data bank
$0C:93AC 6B RTL ; Return long
$0C:93AD 8B PHB ; \
$0C:93AE 4B PHK ; } Data bank = $0C (old bank saved on the stack)
$0C:93AF AB PLB ; /
$0C:93B0 CE 5B 14 DEC.W $145B ; Count down the wait timer [$145B]
$0C:93B3 D0 0A BNE $93BF ; Not zero yet: just return
$0C:93B5 A9 23 LDA.B #$23 ; \
$0C:93B7 8D 00 01 STA.W RAM_GameMode ; / Game mode = $23 (ending: load the enemy parade)
$0C:93BA A9 FF LDA.B #$FF ; \
$0C:93BC 8D E9 1D STA.W $1DE9 ; / [$1DE9] = $FF (purpose unclear)
$0C:93BF AB PLB ; Restore the data bank
$0C:93C0 6B RTL ; Return long
;;; $93C1..93C9: Pointer table: credits background data ;;;
;; Seven 16-bit pointers into bank $0C, indexed by [$1928] * 2. Each points to RLE compressed Map16 numbers
;; for one credits background.
$0C:93C1 .db $5A,$F4,$C0,$E7,$82,$EC,$44,$DD ; Backgrounds 0-3: $0C:F45A, $0C:E7C0, $0C:EC82, $0C:DD44
$0C:93C9 .db $00,$D9,$59,$DF,$54,$DE ; Backgrounds 4-6: $0C:D900, $0C:DF59, $0C:DE54
;;; $93CF..93D7: Table: credits tile word masks ;;;
;; Seven words ANDed with each tile word of the matching background: $FFFF keeps bit 8 of the tile number,
;; $FEFF clears it.
$0C:93CF .db $FF,$FF,$FF,$FE,$FF,$FE,$FF,$FE ; AND masks for backgrounds 0-3: $FFFF, $FEFF, $FEFF, $FEFF
$0C:93D7 .db $FF,$FF,$FF,$FE,$FF,$FE ; AND masks for backgrounds 4-6: $FFFF, $FEFF, $FEFF
;;; $93DD: Load credits backgrounds into tilemaps ;;;
;; Called once from the credits setup (bank 00 $0094A3). For each of the 7 backgrounds in [$1928]:
;; decompresses the RLE Map16 numbers
;; to $7E:B900 ($944C, also builds a pointer table at $0FBE to the Map16 definitions at $0D:9100), then
;; expands each 16x16
;; Map16 into four 8x8 tile words at $7F:4000 + [$1928] * $800 ($94C0). Finally DMAs background 0
;; ($9567), resets the text
;; pointers, initializes the jumping objects and starts the credits music.
;; RLE format: control byte; bit 7 set = repeat the next byte (count-1) times, clear = copy count literal
;; bytes. FF FF ends the data.
;; $0C944C: decompression. $0C94C0: Map16 to tilemap conversion (16 Map16 per row, two passes of 128).
;; Called by:
;; $00:94A3: Cutscene, ending and game mode code (castle scenes, credits, game over) (CutsceneCastlePal)
$0C:93DD C2 30 REP #$30 ; A, X and Y 16-bit
$0C:93DF 9C 28 19 STZ.W $1928 ; [$1928] = 0: start with credits background 0
$0C:93E2 AD 28 19 LDA.W $1928 ; \
$0C:93E5 29 FF 00 AND.W #$00FF ; |
$0C:93E8 0A ASL ; |
$0C:93E9 AA TAX ; / X = [$1928] * 2: index into the word tables
$0C:93EA BF C1 93 0C LDA.L $93C1,X ; [$68] = pointer to this background's compressed Map16 map ($0C:xxxx)
$0C:93EE 85 68 STA $68
$0C:93F0 BF CF 93 0C LDA.L $93CF,X ; [$65] = AND mask for this background's tile words
$0C:93F4 85 65 STA $65
$0C:93F6 E2 20 SEP #$20 ; A 8-bit
$0C:93F8 A0 00 00 LDY.W #$0000 ; Y = 0
$0C:93FB A6 68 LDX $68 ; X = source pointer
$0C:93FD E0 FE E8 CPX.W #$E8FE ; \
$0C:9400 90 03 BCC $9405 ; |
$0C:9402 A0 01 00 LDY.W #$0001 ; / Y = 1 if the source pointer is >= $E8FE, else 0
$0C:9405 A2 00 00 LDX.W #$0000 ; X = 0
$0C:9408 98 TYA ; \
$0C:9409 9F 00 BD 7E STA.L $7EBD00,X ; |
$0C:940D 9F 00 BF 7E STA.L $7EBF00,X ; |
$0C:9411 E8 INX ; |
$0C:9412 E0 00 02 CPX.W #$0200 ; } Fill $7E:BD00-$BEFF and $7E:BF00-$C0FF with Y (Map16 high bytes)
$0C:9415 D0 F2 BNE $9409 ; /
$0C:9417 A9 0C LDA.B #$0C ; \
$0C:9419 85 6A STA $6A ; / [$6A] = $0C: bank of the compressed data
$0C:941B A2 00 B9 LDX.W #$B900 ; \
$0C:941E 86 0D STX $0D ; / [$0D] = $B900: destination $7E:B900 (bank in [$0F] is set by $944C)
$0C:9420 C2 20 REP #$20 ; A 16-bit
$0C:9422 20 4C 94 JSR.W $944C ; Decompress the map to $7E:B900 and build the Map16 pointers ($944C)
$0C:9425 20 C0 94 JSR.W $94C0 ; Convert the Map16 map to a tilemap at $7F:4000 ($94C0)
$0C:9428 EE 28 19 INC.W $1928 ; Next background: [$1928]++
$0C:942B AD 28 19 LDA.W $1928 ; \
$0C:942E C9 07 00 CMP.W #$0007 ; |
$0C:9431 D0 AF BNE $93E2 ; / Repeat until all 7 backgrounds are built
$0C:9433 A9 40 58 LDA.W #$5840 ; \
$0C:9436 85 65 STA $65 ; / [$65] = $5840: VRAM address of the first credits text row (BG3)
$0C:9438 E2 30 SEP #$30 ; A, X and Y 8-bit
$0C:943A 64 67 STZ $67 ; [$67] = 0: index of the next credits text row
$0C:943C 9C 28 19 STZ.W $1928 ; [$1928] = 0: show background 0 first
$0C:943F 22 67 95 0C JSL.L $9567 ; DMA background 0 to VRAM ($9567)
$0C:9443 20 51 A0 JSR.W $A051 ; Initialize the 7 jumping objects ($A051)
$0C:9446 A9 09 LDA.B #$09 ; \
$0C:9448 8D FB 1D STA.W $1DFB ; / Play the credits music ([$1DFB] = $09)
$0C:944B 6B RTL ; Return long
$0C:944C C2 30 REP #$30 ; A, X and Y 16-bit
$0C:944E A0 00 00 LDY.W #$0000 ; \
$0C:9451 84 03 STY $03 ; |
$0C:9453 84 05 STY $05 ; / [$03] (source index) = [$05] (destination index) = 0
$0C:9455 E2 20 SEP #$20 ; A 8-bit
$0C:9457 A9 7E LDA.B #$7E ; \
$0C:9459 85 0F STA $0F ; / [$0F] = $7E: destination bank
$0C:945B A4 03 LDY $03 ; Y = source index
$0C:945D B7 68 LDA [$68],Y ; Read the control byte: bit 7 = repeat run, low 7 bits = count - 1
$0C:945F 85 07 STA $07 ; [$07] = control byte
$0C:9461 C8 INY ; \
$0C:9462 84 03 STY $03 ; / Advance the source index
$0C:9464 29 80 AND.B #$80 ; \
$0C:9466 F0 18 BEQ $9480 ; / Bit 7 clear: literal run ($0C9480)
$0C:9468 A5 07 LDA $07 ; \
$0C:946A 29 7F AND.B #$7F ; |
$0C:946C 85 07 STA $07 ; / [$07] = control byte & $7F (count - 1)
$0C:946E B7 68 LDA [$68],Y ; Read the byte to repeat
$0C:9470 C8 INY ; \
$0C:9471 84 03 STY $03 ; / Advance the source index
$0C:9473 A4 05 LDY $05 ; Y = destination index
$0C:9475 97 0D STA [$0D],Y ; Store the byte at [$0D]+Y
$0C:9477 C8 INY ; Destination index++
$0C:9478 C6 07 DEC $07 ; \
$0C:947A 10 F9 BPL $9475 ; / Repeat count times
$0C:947C 84 05 STY $05 ; Save the destination index
$0C:947E 80 12 BRA $9492 ; Run done: go to the end check ($0C9492)
$0C:9480 A4 03 LDY $03 ; Y = source index (literal run)
$0C:9482 B7 68 LDA [$68],Y ; Read the next literal byte
$0C:9484 C8 INY ; \
$0C:9485 84 03 STY $03 ; / Advance the source index
$0C:9487 A4 05 LDY $05 ; Y = destination index
$0C:9489 97 0D STA [$0D],Y ; Store the byte at [$0D]+Y
$0C:948B C8 INY ; \
$0C:948C 84 05 STY $05 ; / Advance the destination index
$0C:948E C6 07 DEC $07 ; \
$0C:9490 10 EE BPL $9480 ; / Repeat for count bytes
$0C:9492 A4 03 LDY $03 ; Y = source index
$0C:9494 B7 68 LDA [$68],Y ; \
$0C:9496 C9 FF CMP.B #$FF ; |
$0C:9498 D0 C1 BNE $945B ; / Next byte is not $FF: decode another run
$0C:949A C8 INY ; \
$0C:949B B7 68 LDA [$68],Y ; |
$0C:949D C9 FF CMP.B #$FF ; |
$0C:949F D0 BA BNE $945B ; / Two $FF bytes in a row end the data; otherwise decode another run
$0C:94A1 C2 20 REP #$20 ; A 16-bit
$0C:94A3 A9 00 91 LDA.W #$9100 ; \
$0C:94A6 85 00 STA $00 ; / [$00] = $9100: address of the first Map16 definition in bank $0D
$0C:94A8 A2 00 00 LDX.W #$0000 ; X = 0
$0C:94AB A5 00 LDA $00 ; \
$0C:94AD 9D BE 0F STA.W $0FBE,X ; / Table $0FBE+X = address of this definition
$0C:94B0 A5 00 LDA $00 ; \
$0C:94B2 18 CLC ; |
$0C:94B3 69 08 00 ADC.W #$0008 ; |
$0C:94B6 85 00 STA $00 ; / Next definition: address += 8 (four 8x8 tile words)
$0C:94B8 E8 INX ; \
$0C:94B9 E8 INX ; / X += 2
$0C:94BA E0 00 04 CPX.W #$0400 ; \
$0C:94BD D0 EC BNE $94AB ; / Repeat for 512 definitions
$0C:94BF 60 RTS ; Return
$0C:94C0 E2 20 SEP #$20 ; A 8-bit
$0C:94C2 C2 10 REP #$10 ; Index 16-bit
$0C:94C4 A2 00 B9 LDX.W #$B900 ; \
$0C:94C7 86 6B STX $6B ; / [$6B] = $B900: pointer to the decompressed Map16 low bytes
$0C:94C9 A9 7E LDA.B #$7E ; \
$0C:94CB 85 6D STA $6D ; |
$0C:94CD 85 70 STA $70 ; / [$6D] = [$70] = $7E: bank of both arrays
$0C:94CF A2 00 BD LDX.W #$BD00 ; \
$0C:94D2 86 6E STX $6E ; / [$6E] = $BD00: pointer to the Map16 high bytes ($7E:BD00)
$0C:94D4 A9 0D LDA.B #$0D ; \
$0C:94D6 85 6A STA $6A ; / [$6A] = $0D: bank of the Map16 definitions
$0C:94D8 A0 F0 00 LDY.W #$00F0 ; \
$0C:94DB 84 04 STY $04 ; / [$04] = $00F0: source index of the first Map16 number
$0C:94DD AD 28 19 LDA.W $1928 ; \
$0C:94E0 EB XBA ; |
$0C:94E1 29 00 AND.B #$00 ; |
$0C:94E3 AA TAX ; |
$0C:94E4 86 00 STX $00 ; / [$00] = [$1928] * 256: running Map16 counter (256 per background)
$0C:94E6 A2 7F 00 LDX.W #$007F ; \
$0C:94E9 86 08 STX $08 ; / [$08] = $7F: Map16 tiles left in this pass - 1
$0C:94EB E2 20 SEP #$20 ; A 8-bit
$0C:94ED A4 04 LDY $04 ; Y = source index
$0C:94EF B7 6B LDA [$6B],Y ; \
$0C:94F1 85 02 STA $02 ; / [$02] = Map16 number, low byte
$0C:94F3 B7 6E LDA [$6E],Y ; \
$0C:94F5 85 03 STA $03 ; / [$03] = Map16 number, high byte
$0C:94F7 C2 20 REP #$20 ; A 16-bit
$0C:94F9 A5 02 LDA $02 ; \
$0C:94FB 0A ASL ; |
$0C:94FC AA TAX ; / X = Map16 number * 2
$0C:94FD BD BE 0F LDA.W $0FBE,X ; \
$0C:9500 85 68 STA $68 ; / [$68] = address of this Map16's four tile words
$0C:9502 A0 00 00 LDY.W #$0000 ; Y = 0: offset into the definition
$0C:9505 A5 00 LDA $00 ; \
$0C:9507 0A ASL ; |
$0C:9508 0A ASL ; |
$0C:9509 48 PHA ; |
$0C:950A 29 3F 00 AND.W #$003F ; |
$0C:950D 85 06 STA $06 ; |
$0C:950F 68 PLA ; |
$0C:9510 29 C0 FF AND.W #$FFC0 ; |
$0C:9513 0A ASL ; |
$0C:9514 05 06 ORA $06 ; |
$0C:9516 AA TAX ; / X = tilemap byte offset: column = ([$00] mod 16) * 4, row = ([$00] / 16) * $80
$0C:9517 B7 68 LDA [$68],Y ; \
$0C:9519 25 65 AND $65 ; |
$0C:951B 9F 00 40 7F STA.L $7F4000,X ; / Tile word 0 (top-left), masked by [$65], to $7F:4000+X
$0C:951F C8 INY ; \
$0C:9520 C8 INY ; / Next tile word
$0C:9521 B7 68 LDA [$68],Y ; \
$0C:9523 25 65 AND $65 ; |
$0C:9525 9F 40 40 7F STA.L $7F4040,X ; / Tile word 1 (bottom-left) to $7F:4040+X (next tilemap row)
$0C:9529 C8 INY ; \
$0C:952A C8 INY ; / Next tile word
$0C:952B B7 68 LDA [$68],Y ; \
$0C:952D 25 65 AND $65 ; |
$0C:952F 9F 02 40 7F STA.L $7F4002,X ; / Tile word 2 (top-right) to $7F:4002+X
$0C:9533 C8 INY ; \
$0C:9534 C8 INY ; / Next tile word
$0C:9535 B7 68 LDA [$68],Y ; \
$0C:9537 25 65 AND $65 ; |
$0C:9539 9F 42 40 7F STA.L $7F4042,X ; / Tile word 3 (bottom-right) to $7F:4042+X
$0C:953D E6 00 INC $00 ; Next Map16: [$00]++
$0C:953F E6 04 INC $04 ; Next source entry: [$04]++
$0C:9541 C6 08 DEC $08 ; \
$0C:9543 10 A6 BPL $94EB ; / Repeat for 128 Map16 tiles per pass
$0C:9545 A9 7F 00 LDA.W #$007F ; \
$0C:9548 85 08 STA $08 ; / Reset the pass counter [$08] = $7F
$0C:954A A5 04 LDA $04 ; \
$0C:954C C9 70 01 CMP.W #$0170 ; |
$0C:954F D0 07 BNE $9558 ; / Source index $0170 = first pass done: continue; otherwise finished
$0C:9551 A9 A0 02 LDA.W #$02A0 ; \
$0C:9554 85 04 STA $04 ; / [$04] = $02A0: source index of the second half
$0C:9556 80 93 BRA $94EB ; Do the second pass
$0C:9558 60 RTS ; Return
;;; $9559..9560: Table: DMA setup for credits tilemap ;;;
;; Two 7 byte records copied to $4310-$4316: DMAP $01, B-bus $18 (VRAM data), source $7F:4000 / $7F:4400, size
;; $0400.
$0C:9559 .db $01,$18,$00,$40,$7F,$00,$04 ; DMA setup, channel 1: mode 1 (word), B-bus $18 (VRAM), source $7F:4000, $0400 bytes
$0C:9560 .db $01,$18,$00,$44,$7F,$00,$04 ; DMA setup, channel 1: mode 1 (word), B-bus $18 (VRAM), source $7F:4400, $0400 bytes
;;; $9567: DMA credits background to VRAM ;;;
;; Called through JSL from NMI (bank 00 $008203) and from the credits setup. Copies the $0800 byte tilemap of
;; background [$1928]
;; from $7F:4000 + [$1928] * $0800 to VRAM $30C0 and $34C0 in two DMAs, then clears the reload request
;; [$1FFE].
;; Called by:
;; $00:8203: NMI handler: sound, PPU mirrors, DMA (NMIStart)
;; $0C:943F: Load credits backgrounds into tilemaps
$0C:9567 E2 30 SEP #$30 ; A, X and Y 8-bit
$0C:9569 8B PHB ; \
$0C:956A 4B PHK ; } Data bank = $0C (old bank saved on the stack)
$0C:956B AB PLB ; /
$0C:956C A9 80 LDA.B #$80 ; \
$0C:956E 8D 15 21 STA.W $2115 ; / VMAIN = $80: increment after the high byte
$0C:9571 A9 C0 LDA.B #$C0 ; \
$0C:9573 8D 16 21 STA.W $2116 ; / VRAM address low = $C0
$0C:9576 A9 30 LDA.B #$30 ; \
$0C:9578 8D 17 21 STA.W $2117 ; / VRAM address high = $30 (word address $30C0)
$0C:957B A0 06 LDY.B #$06 ; Y = 6: copy 7 bytes
$0C:957D B9 59 95 LDA.W $9559,Y ; \
$0C:9580 99 10 43 STA.W $4310,Y ; |
$0C:9583 88 DEY ; |
$0C:9584 10 F7 BPL $957D ; / Copy the DMA setup to $4310-$4316 (channel 1)
$0C:9586 AD 28 19 LDA.W $1928 ; \
$0C:9589 0A ASL ; |
$0C:958A 0A ASL ; |
$0C:958B 0A ASL ; |
$0C:958C 0D 13 43 ORA.W $4313 ; |
$0C:958F 8D 13 43 STA.W $4313 ; / Source high byte |= [$1928] * 8: source = $7F:4000 + background * $0800
$0C:9592 A9 02 LDA.B #$02 ; \
$0C:9594 8D 0B 42 STA.W $420B ; / Start DMA channel 1: first half of the tilemap to VRAM $30C0
$0C:9597 A9 80 LDA.B #$80 ; \
$0C:9599 8D 15 21 STA.W $2115 ; / VMAIN = $80
$0C:959C A9 C0 LDA.B #$C0 ; \
$0C:959E 8D 16 21 STA.W $2116 ; / VRAM address low = $C0
$0C:95A1 A9 34 LDA.B #$34 ; \
$0C:95A3 8D 17 21 STA.W $2117 ; / VRAM address high = $34 (word address $34C0)
$0C:95A6 A0 06 LDY.B #$06 ; Y = 6: copy 7 bytes
$0C:95A8 B9 60 95 LDA.W $9560,Y ; \
$0C:95AB 99 10 43 STA.W $4310,Y ; |
$0C:95AE 88 DEY ; |
$0C:95AF 10 F7 BPL $95A8 ; / Copy the DMA setup to $4310-$4316 (channel 1)
$0C:95B1 AD 28 19 LDA.W $1928 ; \
$0C:95B4 0A ASL ; |
$0C:95B5 0A ASL ; |
$0C:95B6 0A ASL ; |
$0C:95B7 0D 13 43 ORA.W $4313 ; |
$0C:95BA 8D 13 43 STA.W $4313 ; / Source high byte |= [$1928] * 8: source = $7F:4400 + background * $0800
$0C:95BD A9 02 LDA.B #$02 ; \
$0C:95BF 8D 0B 42 STA.W $420B ; / Start DMA channel 1: second half of the tilemap to VRAM $34C0
$0C:95C2 9C FE 1F STZ.W $1FFE ; [$1FFE] = 0: background reload request done
$0C:95C5 AB PLB ; Restore the data bank
$0C:95C6 6B RTL ; Return long
;;; $95C7..9D10: Credits text records ;;;
;; Records of: starting column, byte count - 1, then tile/attribute words (2 bytes per tile). Small font:
;; tiles $00-$09 digits,
;; $0A-$23 letters, attr $28/$3C. Big font: top half tiles $C0-$CF (A-P) and $E0-$E9 (Q-Z), bottom half +$10,
;; attr $38. $FC = blank.
;; Each name takes two rows (top and bottom half). A byte $FF at $0C95EC is the shared empty entry. Comments
;; show the decoded text.
$0C:95C7 .db $07 ; Text: x=7 small: EXECUTIVE PRODUCER (record: column, byte count-1, tile/attr words)
$0C:95C8 .db $23,$0E,$3C,$21,$3C,$0E,$3C,$0C
$0C:95D0 .db $3C,$1E,$3C,$1D,$3C,$12,$3C,$1F
$0C:95D8 .db $3C,$0E,$3C,$FC,$00,$19,$3C,$1B
$0C:95E0 .db $3C,$18,$3C,$0D,$3C,$1E,$3C,$0C
$0C:95E8 .db $3C,$0E,$3C,$1B,$3C,$FF,$09,$1F ; Text row: x=9 big top: HIROSHI YAMAUCHI
$0C:95F0 .db $C7,$38,$C8,$38,$E1,$38,$CE,$38
$0C:95F8 .db $E2,$38,$C7,$38,$C8,$38,$FC,$00
$0C:9600 .db $E8,$38,$C0,$38,$CC,$38,$C0,$38
$0C:9608 .db $E4,$38,$C2,$38,$C7,$38,$C8,$38
$0C:9610 .db $09,$1F,$D7,$38,$D8,$38,$F1,$38 ; Text row: x=9 big bottom: HIROSHI YAMAUCHI
$0C:9618 .db $DE,$38,$F2,$38,$D7,$38,$D8,$38
$0C:9620 .db $FC,$00,$F8,$38,$D0,$38,$DC,$38
$0C:9628 .db $D0,$38,$F4,$38,$D2,$38,$D7,$38
$0C:9630 .db $D8,$38,$0C,$0F,$19,$28,$1B,$28 ; Text row: x=12 small: PRODUCER
$0C:9638 .db $18,$28,$0D,$28,$1E,$28,$0C,$28
$0C:9640 .db $0E,$28,$1B,$28,$08,$1F,$E2,$38 ; Text row: x=8 big top: SHIGERU MIYAMOTO
$0C:9648 .db $C7,$38,$C8,$38,$C6,$38,$C4,$38
$0C:9650 .db $E1,$38,$E4,$38,$FC,$00,$CC,$38
$0C:9658 .db $C8,$38,$E8,$38,$C0,$38,$CC,$38
$0C:9660 .db $CE,$38,$E3,$38,$CE,$38,$08,$1F ; Text row: x=8 big bottom: SHIGERU MIYAMOTO
$0C:9668 .db $F2,$38,$D7,$38,$D8,$38,$D6,$38
$0C:9670 .db $D4,$38,$F1,$38,$F4,$38,$FC,$00
$0C:9678 .db $DC,$38,$D8,$38,$F8,$38,$D0,$38
$0C:9680 .db $DC,$38,$DE,$38,$F3,$38,$DE,$38
$0C:9688 .db $09,$19,$16,$28,$0A,$28,$12,$28 ; Text row: x=9 small: MAIN DIRECTOR
$0C:9690 .db $17,$28,$FC,$00,$0D,$28,$12,$28
$0C:9698 .db $1B,$28,$0E,$28,$0C,$28,$1D,$28
$0C:96A0 .db $18,$28,$1B,$28,$09,$1B,$E3,$38 ; Text row: x=9 big top: TAKASHI TEZUKA
$0C:96A8 .db $C0,$38,$CA,$38,$C0,$38,$E2,$38
$0C:96B0 .db $C7,$38,$C8,$38,$FC,$00,$E3,$38
$0C:96B8 .db $C4,$38,$E9,$38,$E4,$38,$CA,$38
$0C:96C0 .db $C0,$38,$09,$1B,$F3,$38,$D0,$38 ; Text row: x=9 big bottom: TAKASHI TEZUKA
$0C:96C8 .db $DA,$38,$D0,$38,$F2,$38,$D7,$38
$0C:96D0 .db $D8,$38,$FC,$00,$F3,$38,$D4,$38
$0C:96D8 .db $F9,$38,$F4,$38,$DA,$38,$D0,$38
$0C:96E0 .db $0A,$17,$16,$3C,$0A,$3C,$19,$3C ; Text row: x=10 small: MAP DIRECTOR
$0C:96E8 .db $FC,$00,$0D,$3C,$12,$3C,$1B,$3C
$0C:96F0 .db $0E,$3C,$0C,$3C,$1D,$3C,$18,$3C
$0C:96F8 .db $1B,$3C,$09,$19,$C7,$38,$C8,$38 ; Text row: x=9 big top: HIDEQUI KONNO
$0C:9700 .db $C3,$38,$C4,$38,$E0,$38,$E4,$38
$0C:9708 .db $C8,$38,$FC,$00,$CA,$38,$CE,$38
$0C:9710 .db $CD,$38,$CD,$38,$CE,$38,$09,$19 ; Text row: x=9 big bottom: HIDEQUI KONNO
$0C:9718 .db $D7,$38,$D8,$38,$D3,$38,$D4,$38
$0C:9720 .db $F0,$38,$F4,$38,$D8,$38,$FC,$00
$0C:9728 .db $DA,$38,$DE,$38,$DD,$38,$DD,$38
$0C:9730 .db $DE,$38,$09,$19,$0A,$2C,$1B,$2C ; Text row: x=9 small: AREA DIRECTOR
$0C:9738 .db $0E,$2C,$0A,$2C,$FC,$00,$0D,$2C
$0C:9740 .db $12,$2C,$1B,$2C,$0E,$2C,$0C,$2C
$0C:9748 .db $1D,$2C,$18,$2C,$1B,$2C,$09,$1B ; Text row: x=9 big top: KATSUYA EGUCHI
$0C:9750 .db $CA,$38,$C0,$38,$E3,$38,$E2,$38
$0C:9758 .db $E4,$38,$E8,$38,$C0,$38,$FC,$00
$0C:9760 .db $C4,$38,$C6,$38,$E4,$38,$C2,$38
$0C:9768 .db $C7,$38,$C8,$38,$09,$1B,$DA,$38 ; Text row: x=9 big bottom: KATSUYA EGUCHI
$0C:9770 .db $D0,$38,$F3,$38,$F2,$38,$F4,$38
$0C:9778 .db $F8,$38,$D0,$38,$FC,$00,$D4,$38
$0C:9780 .db $D6,$38,$F4,$38,$D2,$38,$D7,$38
$0C:9788 .db $D8,$38,$08,$1F,$19,$28,$1B,$28 ; Text row: x=8 small: PROGRAM DIRECTOR
$0C:9790 .db $18,$28,$10,$28,$1B,$28,$0A,$28
$0C:9798 .db $16,$28,$FC,$00,$0D,$28,$12,$28
$0C:97A0 .db $1B,$28,$0E,$28,$0C,$28,$1D,$28
$0C:97A8 .db $18,$28,$1B,$28,$08,$1F,$E3,$38 ; Text row: x=8 big top: TOSHIHIKO NAKAGO
$0C:97B0 .db $CE,$38,$E2,$38,$C7,$38,$C8,$38
$0C:97B8 .db $C7,$38,$C8,$38,$CA,$38,$CE,$38
$0C:97C0 .db $FC,$00,$CD,$38,$C0,$38,$CA,$38
$0C:97C8 .db $C0,$38,$C6,$38,$CE,$38,$08,$1F ; Text row: x=8 big bottom: TOSHIHIKO NAKAGO
$0C:97D0 .db $F3,$38,$DE,$38,$F2,$38,$D7,$38
$0C:97D8 .db $D8,$38,$D7,$38,$D8,$38,$DA,$38
$0C:97E0 .db $DE,$38,$FC,$00,$DD,$38,$D0,$38
$0C:97E8 .db $DA,$38,$D0,$38,$D6,$38,$DE,$38
$0C:97F0 .db $02,$35,$16,$3C,$0A,$3C,$1B,$3C ; Text row: x=2 small: MARIO AND SYSTEM PROGRAMMER
$0C:97F8 .db $12,$3C,$18,$3C,$FC,$00,$0A,$3C
$0C:9800 .db $17,$3C,$0D,$3C,$FC,$00,$1C,$3C
$0C:9808 .db $22,$3C,$1C,$3C,$1D,$3C,$0E,$3C
$0C:9810 .db $16,$3C,$FC,$00,$19,$3C,$1B,$3C
$0C:9818 .db $18,$3C,$10,$3C,$1B,$3C,$0A,$3C
$0C:9820 .db $16,$3C,$16,$3C,$0E,$3C,$1B,$3C
$0C:9828 .db $09,$1B,$E3,$38,$CE,$38,$E2,$38 ; Text row: x=9 big top: TOSHIO IWAWAKI
$0C:9830 .db $C7,$38,$C8,$38,$CE,$38,$FC,$00
$0C:9838 .db $C8,$38,$E6,$38,$C0,$38,$E6,$38
$0C:9840 .db $C0,$38,$CA,$38,$C8,$38,$09,$1B ; Text row: x=9 big bottom: TOSHIO IWAWAKI
$0C:9848 .db $F3,$38,$DE,$38,$F2,$38,$D7,$38
$0C:9850 .db $D8,$38,$DE,$38,$FC,$00,$D8,$38
$0C:9858 .db $F6,$38,$D0,$38,$F6,$38,$D0,$38
$0C:9860 .db $DA,$38,$D8,$38,$08,$21,$18,$2C ; Text row: x=8 small: OBJECT PROGRAMMER
$0C:9868 .db $0B,$2C,$13,$2C,$0E,$2C,$0C,$2C
$0C:9870 .db $1D,$2C,$FC,$00,$19,$2C,$1B,$2C
$0C:9878 .db $18,$2C,$10,$2C,$1B,$2C,$0A,$2C
$0C:9880 .db $16,$2C,$16,$2C,$0E,$2C,$1B,$2C
$0C:9888 .db $09,$1B,$CA,$38,$C0,$38,$E9,$38 ; Text row: x=9 big top: KAZUAKI MORITA
$0C:9890 .db $E4,$38,$C0,$38,$CA,$38,$C8,$38
$0C:9898 .db $FC,$00,$CC,$38,$CE,$38,$E1,$38
$0C:98A0 .db $C8,$38,$E3,$38,$C0,$38,$09,$1B ; Text row: x=9 big bottom: KAZUAKI MORITA
$0C:98A8 .db $DA,$38,$D0,$38,$F9,$38,$F4,$38
$0C:98B0 .db $D0,$38,$DA,$38,$D8,$38,$FC,$00
$0C:98B8 .db $DC,$38,$DE,$38,$F1,$38,$D8,$38
$0C:98C0 .db $F3,$38,$D0,$38,$06,$29,$0B,$28 ; Text row: x=6 small: BACKGROUND PROGRAMMER
$0C:98C8 .db $0A,$28,$0C,$28,$14,$28,$10,$28
$0C:98D0 .db $1B,$28,$18,$28,$1E,$28,$17,$28
$0C:98D8 .db $0D,$28,$FC,$00,$19,$28,$1B,$28
$0C:98E0 .db $18,$28,$10,$28,$1B,$28,$0A,$28
$0C:98E8 .db $16,$28,$16,$28,$0E,$28,$1B,$28
$0C:98F0 .db $07,$25,$E2,$38,$C7,$38,$C8,$38 ; Text row: x=7 big top: SHIGEHIRO KASAMATSU
$0C:98F8 .db $C6,$38,$C4,$38,$C7,$38,$C8,$38
$0C:9900 .db $E1,$38,$CE,$38,$FC,$00,$CA,$38
$0C:9908 .db $C0,$38,$E2,$38,$C0,$38,$CC,$38
$0C:9910 .db $C0,$38,$E3,$38,$E2,$38,$E4,$38
$0C:9918 .db $07,$25,$F2,$38,$D7,$38,$D8,$38 ; Text row: x=7 big bottom: SHIGEHIRO KASAMATSU
$0C:9920 .db $D6,$38,$D4,$38,$D7,$38,$D8,$38
$0C:9928 .db $F1,$38,$DE,$38,$FC,$00,$DA,$38
$0C:9930 .db $D0,$38,$F2,$38,$D0,$38,$DC,$38
$0C:9938 .db $D0,$38,$F3,$38,$F2,$38,$F4,$38
$0C:9940 .db $07,$23,$E3,$38,$C0,$38,$E3,$38 ; Text row: x=7 big top: TATSUNORI TAKAKURA
$0C:9948 .db $E2,$38,$E4,$38,$CD,$38,$CE,$38
$0C:9950 .db $E1,$38,$C8,$38,$FC,$00,$E3,$38
$0C:9958 .db $C0,$38,$CA,$38,$C0,$38,$CA,$38
$0C:9960 .db $E4,$38,$E1,$38,$C0,$38,$07,$23 ; Text row: x=7 big bottom: TATSUNORI TAKAKURA
$0C:9968 .db $F3,$38,$D0,$38,$F3,$38,$F2,$38
$0C:9970 .db $F4,$38,$DD,$38,$DE,$38,$F1,$38
$0C:9978 .db $D8,$38,$FC,$00,$F3,$38,$D0,$38
$0C:9980 .db $DA,$38,$D0,$38,$DA,$38,$F4,$38
$0C:9988 .db $F1,$38,$D0,$38,$09,$1B,$16,$3C ; Text row: x=9 small: MAP PROGRAMMER
$0C:9990 .db $0A,$3C,$19,$3C,$FC,$00,$19,$3C
$0C:9998 .db $1B,$3C,$18,$3C,$10,$3C,$1B,$3C
$0C:99A0 .db $0A,$3C,$16,$3C,$16,$3C,$0E,$3C
$0C:99A8 .db $1B,$3C,$08,$1F,$E3,$38,$C0,$38 ; Text row: x=8 big top: TATSUO NISHIYAMA
$0C:99B0 .db $E3,$38,$E2,$38,$E4,$38,$CE,$38
$0C:99B8 .db $FC,$00,$CD,$38,$C8,$38,$E2,$38
$0C:99C0 .db $C7,$38,$C8,$38,$E8,$38,$C0,$38
$0C:99C8 .db $CC,$38,$C0,$38,$08,$1F,$F3,$38 ; Text row: x=8 big bottom: TATSUO NISHIYAMA
$0C:99D0 .db $D0,$38,$F3,$38,$F2,$38,$F4,$38
$0C:99D8 .db $DE,$38,$FC,$00,$DD,$38,$D8,$38
$0C:99E0 .db $F2,$38,$D7,$38,$D8,$38,$F8,$38
$0C:99E8 .db $D0,$38,$DC,$38,$D0,$38,$08,$1D ; Text row: x=8 small: AREA DATA INPUT
$0C:99F0 .db $0A,$2C,$1B,$2C,$0E,$2C,$0A,$2C
$0C:99F8 .db $FC,$00,$0D,$2C,$0A,$2C,$1D,$2C
$0C:9A00 .db $0A,$2C,$FC,$00,$12,$2C,$17,$2C
$0C:9A08 .db $19,$2C,$1E,$2C,$1D,$2C,$08,$1F ; Text row: x=8 big top: YOSHIHIRO NOMOTO
$0C:9A10 .db $E8,$38,$CE,$38,$E2,$38,$C7,$38
$0C:9A18 .db $C8,$38,$C7,$38,$C8,$38,$E1,$38
$0C:9A20 .db $CE,$38,$FC,$00,$CD,$38,$CE,$38
$0C:9A28 .db $CC,$38,$CE,$38,$E3,$38,$CE,$38
$0C:9A30 .db $08,$1F,$F8,$38,$DE,$38,$F2,$38 ; Text row: x=8 big bottom: YOSHIHIRO NOMOTO
$0C:9A38 .db $D7,$38,$D8,$38,$D7,$38,$D8,$38
$0C:9A40 .db $F1,$38,$DE,$38,$FC,$00,$DD,$38
$0C:9A48 .db $DE,$38,$DC,$38,$DE,$38,$F3,$38
$0C:9A50 .db $DE,$38,$0B,$11,$C4,$38,$C8,$38 ; Text row: x=11 big top: EIJI NOTO
$0C:9A58 .db $C9,$38,$C8,$38,$FC,$00,$CD,$38
$0C:9A60 .db $CE,$38,$E3,$38,$CE,$38,$0B,$11 ; Text row: x=11 big bottom: EIJI NOTO
$0C:9A68 .db $D4,$38,$D8,$38,$D9,$38,$D8,$38
$0C:9A70 .db $FC,$00,$DD,$38,$DE,$38,$F3,$38
$0C:9A78 .db $DE,$38,$08,$1D,$E2,$38,$C0,$38 ; Text row: x=8 big top: SATORU TAKAHATA
$0C:9A80 .db $E3,$38,$CE,$38,$E1,$38,$E4,$38
$0C:9A88 .db $FC,$00,$E3,$38,$C0,$38,$CA,$38
$0C:9A90 .db $C0,$38,$C7,$38,$C0,$38,$E3,$38
$0C:9A98 .db $C0,$38,$08,$1D,$F2,$38,$D0,$38 ; Text row: x=8 big bottom: SATORU TAKAHATA
$0C:9AA0 .db $F3,$38,$DE,$38,$F1,$38,$F4,$38
$0C:9AA8 .db $FC,$00,$F3,$38,$D0,$38,$DA,$38
$0C:9AB0 .db $D0,$38,$D7,$38,$D0,$38,$F3,$38
$0C:9AB8 .db $D0,$38,$03,$33,$0C,$28,$11,$28 ; Text row: x=3 small: CHARACTER GRAPHIC DESIGNER
$0C:9AC0 .db $0A,$28,$1B,$28,$0A,$28,$0C,$28
$0C:9AC8 .db $1D,$28,$0E,$28,$1B,$28,$FC,$00
$0C:9AD0 .db $10,$28,$1B,$28,$0A,$28,$19,$28
$0C:9AD8 .db $11,$28,$12,$28,$0C,$28,$FC,$00
$0C:9AE0 .db $0D,$28,$0E,$28,$1C,$28,$12,$28
$0C:9AE8 .db $10,$28,$17,$28,$0E,$28,$1B,$28
$0C:9AF0 .db $09,$1B,$E2,$38,$C7,$38,$C8,$38 ; Text row: x=9 big top: SHIGEFUMI HINO
$0C:9AF8 .db $C6,$38,$C4,$38,$C5,$38,$E4,$38
$0C:9B00 .db $CC,$38,$C8,$38,$FC,$00,$C7,$38
$0C:9B08 .db $C8,$38,$CD,$38,$CE,$38,$09,$1B ; Text row: x=9 big bottom: SHIGEFUMI HINO
$0C:9B10 .db $F2,$38,$D7,$38,$D8,$38,$D6,$38
$0C:9B18 .db $D4,$38,$D5,$38,$F4,$38,$DC,$38
$0C:9B20 .db $D8,$38,$FC,$00,$D7,$38,$D8,$38
$0C:9B28 .db $DD,$38,$DE,$38,$09,$1B,$1C,$3C ; Text row: x=9 small: SOUND COMPOSER
$0C:9B30 .db $18,$3C,$1E,$3C,$17,$3C,$0D,$3C
$0C:9B38 .db $FC,$00,$0C,$3C,$18,$3C,$16,$3C
$0C:9B40 .db $19,$3C,$18,$3C,$1C,$3C,$0E,$3C
$0C:9B48 .db $1B,$3C,$0B,$13,$CA,$38,$CE,$38 ; Text row: x=11 big top: KOJI KONDO
$0C:9B50 .db $C9,$38,$C8,$38,$FC,$00,$CA,$38
$0C:9B58 .db $CE,$38,$CD,$38,$C3,$38,$CE,$38
$0C:9B60 .db $0B,$13,$DA,$38,$DE,$38,$D9,$38 ; Text row: x=11 big bottom: KOJI KONDO
$0C:9B68 .db $D8,$38,$FC,$00,$DA,$38,$DE,$38
$0C:9B70 .db $DD,$38,$D3,$38,$DE,$38,$07,$23 ; Text row: x=7 small: SPECIAL THANKS TO[$78]
$0C:9B78 .db $1C,$2C,$19,$2C,$0E,$2C,$0C,$2C
$0C:9B80 .db $12,$2C,$0A,$2C,$15,$2C,$FC,$00
$0C:9B88 .db $1D,$2C,$11,$2C,$0A,$2C,$17,$2C
$0C:9B90 .db $14,$2C,$1C,$2C,$FC,$00,$1D,$2C
$0C:9B98 .db $18,$2C,$78,$2C,$09,$19,$E8,$38 ; Text row: x=9 big top: YOICHI KOTABE
$0C:9BA0 .db $CE,$38,$C8,$38,$C2,$38,$C7,$38
$0C:9BA8 .db $C8,$38,$FC,$00,$CA,$38,$CE,$38
$0C:9BB0 .db $E3,$38,$C0,$38,$C1,$38,$C4,$38
$0C:9BB8 .db $09,$19,$F8,$38,$DE,$38,$D8,$38 ; Text row: x=9 big bottom: YOICHI KOTABE
$0C:9BC0 .db $D2,$38,$D7,$38,$D8,$38,$FC,$00
$0C:9BC8 .db $DA,$38,$DE,$38,$F3,$38,$D0,$38
$0C:9BD0 .db $D1,$38,$D4,$38,$09,$1B,$E8,$38 ; Text row: x=9 big top: YASUHIRO SAKAI
$0C:9BD8 .db $C0,$38,$E2,$38,$E4,$38,$C7,$38
$0C:9BE0 .db $C8,$38,$E1,$38,$CE,$38,$FC,$00
$0C:9BE8 .db $E2,$38,$C0,$38,$CA,$38,$C0,$38
$0C:9BF0 .db $C8,$38,$09,$1B,$F8,$38,$D0,$38 ; Text row: x=9 big bottom: YASUHIRO SAKAI
$0C:9BF8 .db $F2,$38,$F4,$38,$D7,$38,$D8,$38
$0C:9C00 .db $F1,$38,$DE,$38,$FC,$00,$F2,$38
$0C:9C08 .db $D0,$38,$DA,$38,$D0,$38,$D8,$38
$0C:9C10 .db $09,$19,$CC,$38,$C8,$38,$C4,$38 ; Text row: x=9 big top: MIE YOSHIMURA
$0C:9C18 .db $FC,$00,$E8,$38,$CE,$38,$E2,$38
$0C:9C20 .db $C7,$38,$C8,$38,$CC,$38,$E4,$38
$0C:9C28 .db $E1,$38,$C0,$38,$09,$19,$DC,$38 ; Text row: x=9 big bottom: MIE YOSHIMURA
$0C:9C30 .db $D8,$38,$D4,$38,$FC,$00,$F8,$38
$0C:9C38 .db $DE,$38,$F2,$38,$D7,$38,$D8,$38
$0C:9C40 .db $DC,$38,$F4,$38,$F1,$38,$D0,$38
$0C:9C48 .db $09,$1B,$C7,$38,$C8,$38,$E1,$38 ; Text row: x=9 big top: HIRONOBU KAKUI
$0C:9C50 .db $CE,$38,$CD,$38,$CE,$38,$C1,$38
$0C:9C58 .db $E4,$38,$FC,$00,$CA,$38,$C0,$38
$0C:9C60 .db $CA,$38,$E4,$38,$C8,$38,$09,$1B ; Text row: x=9 big bottom: HIRONOBU KAKUI
$0C:9C68 .db $D7,$38,$D8,$38,$F1,$38,$DE,$38
$0C:9C70 .db $DD,$38,$DE,$38,$D1,$38,$F4,$38
$0C:9C78 .db $FC,$00,$DA,$38,$D0,$38,$DA,$38
$0C:9C80 .db $F4,$38,$D8,$38,$0B,$13,$CA,$38 ; Text row: x=11 big top: KEIZO KATO
$0C:9C88 .db $C4,$38,$C8,$38,$E9,$38,$CE,$38
$0C:9C90 .db $FC,$00,$CA,$38,$C0,$38,$E3,$38
$0C:9C98 .db $CE,$38,$0B,$13,$DA,$38,$D4,$38 ; Text row: x=11 big bottom: KEIZO KATO
$0C:9CA0 .db $D8,$38,$F9,$38,$DE,$38,$FC,$00
$0C:9CA8 .db $DA,$38,$D0,$38,$F3,$38,$DE,$38
$0C:9CB0 .db $09,$19,$E3,$38,$C0,$38,$CA,$38 ; Text row: x=9 big top: TAKAO SHIMIZU
$0C:9CB8 .db $C0,$38,$CE,$38,$FC,$00,$E2,$38
$0C:9CC0 .db $C7,$38,$C8,$38,$CC,$38,$C8,$38
$0C:9CC8 .db $E9,$38,$E4,$38,$09,$19,$F3,$38 ; Text row: x=9 big bottom: TAKAO SHIMIZU
$0C:9CD0 .db $D0,$38,$DA,$38,$D0,$38,$DE,$38
$0C:9CD8 .db $FC,$00,$F2,$38,$D7,$38,$D8,$38
$0C:9CE0 .db $DC,$38,$D8,$38,$F9,$38,$F4,$38
$0C:9CE8 .db $0A,$15,$C3,$38,$C0,$38,$E8,$38 ; Text row: x=10 big top: DAYV BROOKS
$0C:9CF0 .db $E5,$38,$FC,$00,$C1,$38,$E1,$38
$0C:9CF8 .db $CE,$38,$CE,$38,$CA,$38,$E2,$38
$0C:9D00 .db $0A,$15,$D3,$38,$D0,$38,$F8,$38 ; Text row: x=10 big bottom: DAYV BROOKS
$0C:9D08 .db $F5,$38,$FC,$00,$D1,$38,$F1,$38
$0C:9D10 .db $DE,$38,$DE,$38,$DA,$38,$F2,$38
;;; $9D18..9EA8: Pointer table: credits text rows ;;;
;; One word per BG3 text row, indexed by [$67] * 2: offset into the records at $95C7, or $0026 (an $FF
;; byte) for an empty row.
;; Comments list the row numbers and offsets.
$0C:9D18 .db $C1,$00,$26,$00,$DD,$00,$FB,$00 ; Rows 0-3: $00C1, -, $00DD, $00FB
$0C:9D20 .db $26,$00,$26,$00,$26,$00,$19,$01 ; Rows 4-7: -, -, -, $0119
$0C:9D28 .db $26,$00,$33,$01,$4F,$01,$26,$00 ; Rows 8-11: -, $0133, $014F, -
$0C:9D30 .db $26,$00,$26,$00,$6B,$01,$26,$00 ; Rows 12-15: -, -, $016B, -
$0C:9D38 .db $87,$01,$A5,$01,$26,$00,$26,$00 ; Rows 16-19: $0187, $01A5, -, -
$0C:9D40 .db $26,$00,$C3,$01,$26,$00,$E5,$01 ; Rows 20-23: -, $01C3, -, $01E5
$0C:9D48 .db $07,$02,$26,$00,$26,$00,$26,$00 ; Rows 24-27: $0207, -, -, -
$0C:9D50 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 28-31: -, -, -, -
$0C:9D58 .db $29,$02,$26,$00,$61,$02,$7F,$02 ; Rows 32-35: $0229, -, $0261, $027F
$0C:9D60 .db $26,$00,$26,$00,$26,$00,$9D,$02 ; Rows 36-39: -, -, -, $029D
$0C:9D68 .db $26,$00,$C1,$02,$DF,$02,$26,$00 ; Rows 40-43: -, $02C1, $02DF, -
$0C:9D70 .db $26,$00,$26,$00,$FD,$02,$26,$00 ; Rows 44-47: -, -, $02FD, -
$0C:9D78 .db $29,$03,$51,$03,$26,$00,$79,$03 ; Rows 48-51: $0329, $0351, -, $0379
$0C:9D80 .db $9F,$03,$26,$00,$26,$00,$C5,$03 ; Rows 52-55: $039F, -, -, $03C5
$0C:9D88 .db $26,$00,$E3,$03,$05,$04,$26,$00 ; Rows 56-59: -, $03E3, $0405, -
$0C:9D90 .db $26,$00,$26,$00,$27,$04,$26,$00 ; Rows 60-63: -, -, $0427, -
$0C:9D98 .db $47,$04,$69,$04,$26,$00,$8B,$04 ; Rows 64-67: $0447, $0469, -, $048B
$0C:9DA0 .db $9F,$04,$26,$00,$B3,$04,$D3,$04 ; Rows 68-71: $049F, -, $04B3, $04D3
$0C:9DA8 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 72-75: -, -, -, -
$0C:9DB0 .db $26,$00,$26,$00,$26,$00,$F3,$04 ; Rows 76-79: -, -, -, $04F3
$0C:9DB8 .db $26,$00,$29,$05,$47,$05,$26,$00 ; Rows 80-83: -, $0529, $0547, -
$0C:9DC0 .db $26,$00,$26,$00,$65,$05,$26,$00 ; Rows 84-87: -, -, $0565, -
$0C:9DC8 .db $83,$05,$99,$05,$26,$00,$26,$00 ; Rows 88-91: $0583, $0599, -, -
$0C:9DD0 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 92-95: -, -, -, -
$0C:9DD8 .db $26,$00,$AF,$05,$26,$00,$D5,$05 ; Rows 96-99: -, $05AF, -, $05D5
$0C:9DE0 .db $F1,$05,$26,$00,$0D,$06,$2B,$06 ; Rows 100-103: $05F1, -, $060D, $062B
$0C:9DE8 .db $26,$00,$49,$06,$65,$06,$26,$00 ; Rows 104-107: -, $0649, $0665, -
$0C:9DF0 .db $81,$06,$9F,$06,$26,$00,$BD,$06 ; Rows 108-111: $0681, $069F, -, $06BD
$0C:9DF8 .db $D3,$06,$26,$00,$E9,$06,$05,$07 ; Rows 112-115: $06D3, -, $06E9, $0705
$0C:9E00 .db $26,$00,$21,$07,$39,$07,$26,$00 ; Rows 116-119: -, $0721, $0739, -
$0C:9E08 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 120-123: -, -, -, -
$0C:9E10 .db $26,$00,$26,$00,$6B,$00,$26,$00 ; Rows 124-127: -, -, $006B, -
$0C:9E18 .db $7D,$00,$9F,$00,$26,$00,$26,$00 ; Rows 128-131: $007D, $009F, -, -
$0C:9E20 .db $26,$00,$00,$00,$26,$00,$27,$00 ; Rows 132-135: -, $0000, -, $0027
$0C:9E28 .db $49,$00,$26,$00,$26,$00,$26,$00 ; Rows 136-139: $0049, -, -, -
$0C:9E30 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 140-143: -, -, -, -
$0C:9E38 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 144-147: -, -, -, -
$0C:9E40 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 148-151: -, -, -, -
$0C:9E48 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 152-155: -, -, -, -
$0C:9E50 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 156-159: -, -, -, -
$0C:9E58 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 160-163: -, -, -, -
$0C:9E60 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 164-167: -, -, -, -
$0C:9E68 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 168-171: -, -, -, -
$0C:9E70 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 172-175: -, -, -, -
$0C:9E78 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 176-179: -, -, -, -
$0C:9E80 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 180-183: -, -, -, -
$0C:9E88 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 184-187: -, -, -, -
$0C:9E90 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 188-191: -, -, -, -
$0C:9E98 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 192-195: -, -, -, -
$0C:9EA0 .db $26,$00,$26,$00,$26,$00,$26,$00 ; Rows 196-199: -, -, -, -
$0C:9EA8 .db $26,$00,$26,$00 ; Rows 200-201: -, -
;;; $9EAC..9EAC: Stripe record: blank text row ;;;
;; Body of a stripe record appended before each credits text row: RLE ($40), length $3E+1 = 64 bytes of tile
;; $FC attr $00, then $FF.
$0C:9EAC .db $40,$3E,$FC,$00,$FF ; RLE record body: $40 $3E = RLE, 64 bytes of tile $FC attr $00 (blank row); $FF ends
;;; $9EB1: Queue next credits text row ;;;
;; Appends records to the stripe buffer at $7F:837D (index in $7F:837B): first a blank row at VRAM address
;; [$66]:[$65], then the
;; text record for row [$67] (if any) at column offset. Then advances [$65] by $20 (one tilemap row), wrapping
;; inside the BG3 map.
;; Called when BG3 has scrolled one more tile row.
;; Called by:
;; $0C:9FA9: Credits scroll update
$0C:9EB1 C2 30 REP #$30 ; A, X and Y 16-bit
$0C:9EB3 AF 7B 83 7F LDA.L $7F837B ; \
$0C:9EB7 AA TAX ; / X = write index into the stripe buffer $7F:837D
$0C:9EB8 A0 00 00 LDY.W #$0000 ; Y = 0: index into the blank row record
$0C:9EBB E2 20 SEP #$20 ; A 8-bit
$0C:9EBD A5 66 LDA $66 ; \
$0C:9EBF 9F 7D 83 7F STA.L $7F837D,X ; / Record VRAM address high = [$66]
$0C:9EC3 A5 65 LDA $65 ; \
$0C:9EC5 9F 7E 83 7F STA.L $7F837E,X ; / Record VRAM address low = [$65]
$0C:9EC9 E8 INX ; \
$0C:9ECA E8 INX ; / Skip the address bytes
$0C:9ECB B9 AC 9E LDA.W $9EAC,Y ; \
$0C:9ECE 9F 7D 83 7F STA.L $7F837D,X ; / Copy the 5 byte blank row body (RLE fill with tile $FC, then $FF)
$0C:9ED2 E8 INX ; \
$0C:9ED3 C8 INY ; |
$0C:9ED4 C0 05 00 CPY.W #$0005 ; |
$0C:9ED7 D0 F2 BNE $9ECB ; / Repeat for 5 bytes
$0C:9ED9 C2 20 REP #$20 ; A 16-bit
$0C:9EDB CA DEX ; \
$0C:9EDC 8A TXA ; |
$0C:9EDD 8F 7B 83 7F STA.L $7F837B ; / Buffer index = X - 1 (on the $FF so the next record overwrites it)
$0C:9EE1 A5 67 LDA $67 ; \
$0C:9EE3 29 FF 00 AND.W #$00FF ; |
$0C:9EE6 0A ASL ; |
$0C:9EE7 A8 TAY ; / Y = [$67] * 2: index of this text row
$0C:9EE8 B9 18 9D LDA.W $9D18,Y ; \
$0C:9EEB A8 TAY ; / Y = offset of this row's record in the text data ($95C7)
$0C:9EEC E2 20 SEP #$20 ; A 8-bit
$0C:9EEE E6 67 INC $67 ; Next text row: [$67]++
$0C:9EF0 B9 C7 95 LDA.W $95C7,Y ; \
$0C:9EF3 C9 FF CMP.B #$FF ; |
$0C:9EF5 F0 4C BEQ $9F43 ; / First byte $FF = empty row: skip to the VRAM pointer update
$0C:9EF7 B9 C7 95 LDA.W $95C7,Y ; \
$0C:9EFA 85 02 STA $02 ; / [$02] = starting column
$0C:9EFC B9 C8 95 LDA.W $95C8,Y ; \
$0C:9EFF 85 00 STA $00 ; / [$00] = byte count - 1
$0C:9F01 64 01 STZ $01 ; [$01] = 0: length high byte
$0C:9F03 C8 INY ; \
$0C:9F04 C8 INY ; / Y = offset of the first tile word
$0C:9F05 A5 66 LDA $66 ; \
$0C:9F07 9F 7D 83 7F STA.L $7F837D,X ; / Record VRAM address high = [$66]
$0C:9F0B A5 65 LDA $65 ; \
$0C:9F0D 18 CLC ; |
$0C:9F0E 65 02 ADC $02 ; |
$0C:9F10 9F 7E 83 7F STA.L $7F837E,X ; / Record VRAM address low = [$65] + column
$0C:9F14 E8 INX ; \
$0C:9F15 E8 INX ; / Skip the address bytes
$0C:9F16 A5 01 LDA $01 ; \
$0C:9F18 9F 7D 83 7F STA.L $7F837D,X ; / Length word high byte = 0
$0C:9F1C A5 00 LDA $00 ; \
$0C:9F1E 9F 7E 83 7F STA.L $7F837E,X ; / Length word low byte = count - 1
$0C:9F22 E8 INX ; \
$0C:9F23 E8 INX ; / Skip the length word
$0C:9F24 C2 20 REP #$20 ; A 16-bit
$0C:9F26 B9 C7 95 LDA.W $95C7,Y ; \
$0C:9F29 9F 7D 83 7F STA.L $7F837D,X ; / Copy one tile word (tile, attributes) to the stripe buffer
$0C:9F2D E8 INX ; \
$0C:9F2E E8 INX ; |
$0C:9F2F C8 INY ; |
$0C:9F30 C8 INY ; / Advance source and destination by 2
$0C:9F31 C6 00 DEC $00 ; \
$0C:9F33 C6 00 DEC $00 ; |
$0C:9F35 10 EF BPL $9F26 ; / Repeat for all words
$0C:9F37 A9 FF 00 LDA.W #$00FF ; \
$0C:9F3A 9F 7D 83 7F STA.L $7F837D,X ; / Write the $FF end marker
$0C:9F3E 8A TXA ; \
$0C:9F3F 8F 7B 83 7F STA.L $7F837B ; / Save the new buffer write index
$0C:9F43 C2 20 REP #$20 ; A 16-bit
$0C:9F45 E2 10 SEP #$10 ; Index 8-bit
$0C:9F47 A5 65 LDA $65 ; \
$0C:9F49 18 CLC ; |
$0C:9F4A 69 20 00 ADC.W #$0020 ; |
$0C:9F4D 85 65 STA $65 ; / [$65] += $20: VRAM address of the next tilemap row
$0C:9F4F 29 FF 03 AND.W #$03FF ; \
$0C:9F52 D0 07 BNE $9F5B ; / Not at a $400-word boundary: done
$0C:9F54 A5 65 LDA $65 ; \
$0C:9F56 49 00 0C EOR.W #$0C00 ; |
$0C:9F59 85 65 STA $65 ; / Wrap to the next screen of the 64x64 BG3 map ($5C00 -> $5000, $5400 -> $5800)
$0C:9F5B 60 RTS ; Return
;;; $9F5C..9F64: Table: credits transition scroll positions ;;;
;; BG3 V-scroll ([$24]) values at which the background transition starts, then the final scroll position
;; $0559.
$0C:9F5C .db $C0,$00,$80,$01,$40,$02,$00,$03 ; $24 values where a background transition starts: $00C0, $0180, $0240, $0300
$0C:9F64 .db $C0,$03,$80,$04,$59,$05 ; $03C0, $0480, $0559 (the last is where the scroll stops)
;;; $9F6A: Credits scroll update ;;;
;; Per-frame credits scrolling with 8.8 fixed point speeds ($1446,X speed, $144E,X sub-pixel): BG2 H-scroll
;; [$1E] moves -0.5 px/frame,
;; BG3 V-scroll [$24] moves +0.25 px/frame until $0559. Queues a text row every 8 pixels, starts the
;; background transition ([$1B88] = 1)
;; at the table positions, then falls into drawing Mario and Yoshi.
;; $0C9FCB: adds speed [$1446,X] to position [$00,X] using sub-pixel accumulator [$144E,X].
;; Called by:
;; $0C:9392: Ending mode entry points
$0C:9F6A C2 20 REP #$20 ; A 16-bit
$0C:9F6C A2 00 LDX.B #$00 ; X = 0: scroll component 0 (BG2 horizontal)
$0C:9F6E A9 80 FF LDA.W #$FF80 ; \
$0C:9F71 9D 46 14 STA.W $1446,X ; / Speed 0 = $FF80 (-0.5 pixel/frame, 8.8 fixed point)
$0C:9F74 B5 1E LDA $1E,X ; \
$0C:9F76 95 00 STA $00,X ; / Work copy [$00] = BG2 H-scroll [$1E]
$0C:9F78 20 CB 9F JSR.W $9FCB ; Apply the speed ($9FCB)
$0C:9F7B B5 00 LDA $00,X ; \
$0C:9F7D 95 1E STA $1E,X ; / BG2 H-scroll = updated position
$0C:9F7F A5 24 LDA $24 ; \
$0C:9F81 C9 59 05 CMP.W #$0559 ; |
$0C:9F84 B0 26 BCS $9FAC ; / BG3 V-scroll >= $0559: scroll finished, skip the text part
$0C:9F86 A2 02 LDX.B #$02 ; X = 2: scroll component 1 (BG3 vertical)
$0C:9F88 A9 40 00 LDA.W #$0040 ; \
$0C:9F8B 9D 46 14 STA.W $1446,X ; / Speed 1 = $0040 (+0.25 pixel/frame)
$0C:9F8E A5 24 LDA $24 ; \
$0C:9F90 95 00 STA $00,X ; |
$0C:9F92 85 04 STA $04 ; / Work copy [$02] and [$04] = BG3 V-scroll [$24]
$0C:9F94 20 CB 9F JSR.W $9FCB ; Apply the speed ($9FCB)
$0C:9F97 B5 00 LDA $00,X ; \
$0C:9F99 C5 04 CMP $04 ; |
$0C:9F9B F0 0F BEQ $9FAC ; / No whole pixel moved: skip
$0C:9F9D 85 24 STA $24 ; BG3 V-scroll = new position
$0C:9F9F A5 24 LDA $24 ; \
$0C:9FA1 29 07 00 AND.W #$0007 ; |
$0C:9FA4 C9 01 00 CMP.W #$0001 ; |
$0C:9FA7 D0 03 BNE $9FAC ; / Only when [$24] mod 8 = 1 (a new tile row has scrolled into view)
$0C:9FA9 20 B1 9E JSR.W $9EB1 ; Queue the next credits text row ($9EB1)
$0C:9FAC A2 0C LDX.B #$0C ; X = $0C: last entry of the transition position table
$0C:9FAE A5 24 LDA $24 ; \
$0C:9FB0 DD 5C 9F CMP.W $9F5C,X ; |
$0C:9FB3 F0 06 BEQ $9FBB ; / [$24] equals a transition position?
$0C:9FB5 CA DEX ; \
$0C:9FB6 CA DEX ; |
$0C:9FB7 10 F5 BPL $9FAE ; / Search all 7 entries
$0C:9FB9 80 0B BRA $9FC6 ; No match: continue
$0C:9FBB AD 88 1B LDA.W $1B88 ; \
$0C:9FBE 29 FF 00 AND.W #$00FF ; |
$0C:9FC1 D0 03 BNE $9FC6 ; / Transition already running ([$1B88] != 0): leave it
$0C:9FC3 EE 88 1B INC.W $1B88 ; [$1B88] = 1: start the background transition
$0C:9FC6 E2 20 SEP #$20 ; A 8-bit
$0C:9FC8 82 1F 00 BRL $9FEA ; Go draw Mario and Yoshi ($9FEA)
$0C:9FCB BD 4E 14 LDA.W $144E,X ; \
$0C:9FCE 29 FF 00 AND.W #$00FF ; / Low byte of the sub-pixel accumulator [$144E,X]
$0C:9FD1 18 CLC ; \
$0C:9FD2 7D 46 14 ADC.W $1446,X ; |
$0C:9FD5 9D 4E 14 STA.W $144E,X ; / Accumulator = low byte + speed
$0C:9FD8 29 00 FF AND.W #$FF00 ; \
$0C:9FDB 10 03 BPL $9FE0 ; |
$0C:9FDD 09 FF 00 ORA.W #$00FF ; |
$0C:9FE0 EB XBA ; / A = whole pixels moved (high byte, sign extended)
$0C:9FE1 18 CLC ; \
$0C:9FE2 75 00 ADC $00,X ; |
$0C:9FE4 95 00 STA $00,X ; / Position [$00,X] += pixels
$0C:9FE6 60 RTS ; Return
;;; $9FE7..9FE7: Table: Yoshi piece Y offsets ;;;
;; Indexed by [$1602]: +0, -1, +0 (added to base Y $85).
$0C:9FE7 .db $00,$FF,$00 ; Added to the base Y of the extra Yoshi pieces, indexed by [$1602]: +0, -1, +0
;;; $9FEA: Draw Mario and Yoshi in the credits ;;;
;; Places Mario at ($0038,$008F), Super, walking right, and sprite slot 0 as Yoshi (sprite $35) at ($52,$8F),
;; animates them, draws two extra
;; OAM pieces and then moves and draws the 7 jumping objects (hedged: probably the rescued Yoshi eggs).
$0C:9FEA C2 20 REP #$20 ; A 16-bit
$0C:9FEC A9 38 00 LDA.W #$0038 ; \
$0C:9FEF 85 94 STA RAM_MarioXPos ; / Mario X position = $0038
$0C:9FF1 A9 8F 00 LDA.W #$008F ; \
$0C:9FF4 85 96 STA RAM_MarioYPos ; / Mario Y position = $008F
$0C:9FF6 E2 20 SEP #$20 ; A 8-bit
$0C:9FF8 A9 01 LDA.B #$01 ; \
$0C:9FFA 85 19 STA RAM_MarioPowerUp ; / Mario power-up = 1 (Super Mario)
$0C:9FFC A9 08 LDA.B #$08 ; \
$0C:9FFE 8D 7B 00 STA.W RAM_MarioSpeedX ; / Mario X speed = 8 (walking right)
$0C:A001 20 5A A7 JSR.W $A75A ; Update Mario's pose and timers ($A75A)
$0C:A004 A9 52 LDA.B #$52 ; \
$0C:A006 85 E4 STA RAM_SpriteXLo ; / Sprite slot 0 X low = $52
$0C:A008 9C E0 14 STZ.W RAM_SpriteXHi ; Sprite slot 0 X high = 0
$0C:A00B A9 8F LDA.B #$8F ; \
$0C:A00D 85 D8 STA RAM_SpriteYLo ; / Sprite slot 0 Y low = $8F
$0C:A00F 9C D4 14 STZ.W RAM_SpriteYHi ; Sprite slot 0 Y high = 0
$0C:A012 A9 A0 LDA.B #$A0 ; \
$0C:A014 8D EA 15 STA.W RAM_SprOAMIndex ; / Sprite slot 0 OAM index = $A0
$0C:A017 20 78 A7 JSR.W $A778 ; Set up and animate sprite $35 (Yoshi) in slot 0 ($A778)
$0C:A01A AE 02 16 LDX.W $1602 ; X = [$1602] (Yoshi animation frame)
$0C:A01D A9 51 LDA.B #$51 ; \
$0C:A01F 85 00 STA $00 ; |
$0C:A021 64 01 STZ $01 ; / [$00]/[$01] = $0051: X position of the extra pieces
$0C:A023 BD E7 9F LDA.W $9FE7,X ; \
$0C:A026 18 CLC ; |
$0C:A027 69 85 ADC.B #$85 ; |
$0C:A029 85 02 STA $02 ; / [$02] = $85 + offset table [X]: Y position of the extra pieces
$0C:A02B 8A TXA ; \
$0C:A02C 0A ASL ; |
$0C:A02D 0A ASL ; |
$0C:A02E A8 TAY ; / Y = [$1602] * 4: index into the tile tables
$0C:A02F A2 00 LDX.B #$00 ; X = 0: OAM offset
$0C:A031 20 21 A8 JSR.W $A821 ; Draw the two extra OAM pieces ($A821)
$0C:A034 A9 A0 LDA.B #$A0 ; \
$0C:A036 85 0E STA $0E ; / [$0E] = $A0: Y line where an object lands
$0C:A038 20 A3 A8 JSR.W $A8A3 ; Move the 7 jumping objects ($A8A3)
$0C:A03B A9 10 LDA.B #$10 ; \
$0C:A03D 85 02 STA $02 ; / [$02] = $10: OAM offset for the objects
$0C:A03F 20 DF A8 JSR.W $A8DF ; Draw the 7 jumping objects ($A8DF)
$0C:A042 60 RTS ; Return
;;; $A043..A04A: Table: jumping object start positions ;;;
;; $0CA043: X positions $63-$C3 (step $10). $0CA04A: Y positions $A0/$9C alternating (7 objects each).
$0C:A043 .db $63,$73,$83,$93,$A3,$B3,$C3 ; X positions of the 7 jumping objects: $63, $73 ... $C3
$0C:A04A .db $A0,$9C,$A0,$9C,$A0,$9C,$A0 ; Y positions of the 7 jumping objects: $A0, $9C alternating
;;; $A051: Initialize credits jumping objects ;;;
;; Clears the per-object tables ($0B23, $0B32) and sets 7 objects (index $07-$0D): X/Y from the tables above,
;; speed from $A3C2,
;; $0AF6 = 1. Also Mario faces right and [$1B89] = $E2.
;; Called by:
;; $0C:9443: Load credits backgrounds into tilemaps
$0C:A051 8B PHB ; \
$0C:A052 4B PHK ; } Data bank = $0C (old bank saved on the stack)
$0C:A053 AB PLB ; /
$0C:A054 A2 0E LDX.B #$0E ; X = $0E: clear 15 entries
$0C:A056 9E 23 0B STZ.W $0B23,X ; \
$0C:A059 9E 32 0B STZ.W $0B32,X ; / Clear the object tables $0B23 and $0B32
$0C:A05C CA DEX ; \
$0C:A05D 10 F7 BPL $A056 ; / Repeat for all 15 entries
$0C:A05F A2 0D LDX.B #$0D ; X = $0D: object index
$0C:A061 A0 06 LDY.B #$06 ; Y = 6: table index
$0C:A063 B9 4A A0 LDA.W $A04A,Y ; \
$0C:A066 9D 41 0B STA.W $0B41,X ; / $0B41[X] = Y position
$0C:A069 9E 5F 0B STZ.W $0B5F,X ; $0B5F[X] = 0
$0C:A06C B9 43 A0 LDA.W $A043,Y ; \
$0C:A06F 9D 50 0B STA.W $0B50,X ; / $0B50[X] = X position
$0C:A072 9E 6E 0B STZ.W $0B6E,X ; $0B6E[X] = 0
$0C:A075 B9 C2 A3 LDA.W $A3C2,Y ; \
$0C:A078 9D 05 0B STA.W $0B05,X ; / $0B05[X] = initial vertical speed from $A3C2 ($F6 = -10)
$0C:A07B A9 01 LDA.B #$01 ; \
$0C:A07D 9D F6 0A STA.W $0AF6,X ; / $0AF6[X] = 1 (probably gravity added to the speed each frame)
$0C:A080 88 DEY ; \
$0C:A081 CA DEX ; / Next object
$0C:A082 E0 06 CPX.B #$06 ; \
$0C:A084 D0 DD BNE $A063 ; / Repeat for X = $0D..$07 (7 objects)
$0C:A086 64 76 STZ RAM_MarioDirection ; Mario faces right
$0C:A088 A9 E2 LDA.B #$E2 ; \
$0C:A08A 8D 89 1B STA.W $1B89 ; / [$1B89] = $E2: starting window position of the transition (probably)
$0C:A08D AB PLB ; Restore the data bank
$0C:A08E 60 RTS ; Return
;;; $A08F..A0B7: Table: Yoshi's House grid tile numbers ;;;
;; 42 OAM tile numbers for a 14x3 grid of 16x16 sprites (probably scenery decoration); $FF = empty cell.
$0C:A08F .db $FF,$02,$04,$06,$08,$06,$08,$06 ; OAM tile numbers of the 14x3 grid (14 per row, cells 0-7); $FF = empty cell
$0C:A097 .db $08,$06,$08,$04,$02,$FF,$20,$22 ; Grid cells 8-15 (row 0 ends at cell 13)
$0C:A09F .db $24,$FF,$FF,$FF,$FF,$FF,$FF,$FF ; Grid cells 16-23 (row 1: cells 14-27)
$0C:A0A7 .db $FF,$24,$22,$20,$40,$42,$FF,$FF ; Grid cells 24-31
$0C:A0AF .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF ; Grid cells 32-39 (row 2: cells 28-41)
$0C:A0B7 .db $42,$40 ; Grid cells 40-41
;;; $A0B9..A0E1: Table: Yoshi's House grid properties ;;;
;; 42 OAM property bytes matching the tile numbers ($77 = X-flipped); $FF = empty cell.
$0C:A0B9 .db $FF,$37,$37,$35,$35,$37,$37,$39 ; OAM properties of the 14x3 grid (cells 0-7); $77 = X-flipped; $FF = empty cell
$0C:A0C1 .db $39,$3B,$3B,$77,$77,$FF,$37,$37 ; Grid cells 8-15
$0C:A0C9 .db $37,$FF,$FF,$FF,$FF,$FF,$FF,$FF ; Grid cells 16-23
$0C:A0D1 .db $FF,$77,$77,$77,$37,$37,$FF,$FF ; Grid cells 24-31
$0C:A0D9 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF ; Grid cells 32-39
$0C:A0E1 .db $77,$77 ; Grid cells 40-41
;;; $A0E3: Draw Yoshi's House sprite grid ;;;
;; Fills OAM from $0290 with the 14x3 grid: X from $10 step $10 to $E0, Y from $2F step $10; each cell uses
;; the tile and property
;; tables, size 16x16; $FF cells are skipped. Called every frame from the Yoshi's House mode.
;; Called by:
;; $0C:939D: Ending mode entry points
$0C:A0E3 A9 10 LDA.B #$10 ; \
$0C:A0E5 85 00 STA $00 ; |
$0C:A0E7 85 02 STA $02 ; / [$00] = [$02] = $10: left edge X of the grid
$0C:A0E9 A9 2F LDA.B #$2F ; \
$0C:A0EB 85 01 STA $01 ; / [$01] = $2F: Y of the first row
$0C:A0ED A2 90 LDX.B #$90 ; X = $90: OAM offset of the first piece
$0C:A0EF A0 00 LDY.B #$00 ; Y = 0: grid cell index
$0C:A0F1 B9 8F A0 LDA.W $A08F,Y ; \
$0C:A0F4 C9 FF CMP.B #$FF ; |
$0C:A0F6 F0 22 BEQ $A11A ; / Tile $FF = empty cell: skip it
$0C:A0F8 9D 02 03 STA.W OAM_Tile,X ; OAM tile = tile table [Y]
$0C:A0FB B9 B9 A0 LDA.W $A0B9,Y ; \
$0C:A0FE 9D 03 03 STA.W OAM_Prop,X ; / OAM properties = property table [Y]
$0C:A101 A5 00 LDA $00 ; \
$0C:A103 9D 00 03 STA.W OAM_DispX,X ; / OAM X = [$00]
$0C:A106 A5 01 LDA $01 ; \
$0C:A108 9D 01 03 STA.W OAM_DispY,X ; / OAM Y = [$01]
$0C:A10B DA PHX ; \
$0C:A10C 8A TXA ; |
$0C:A10D 4A LSR ; |
$0C:A10E 4A LSR ; |
$0C:A10F AA TAX ; / X = OAM offset / 4: index into the size table
$0C:A110 A9 02 LDA.B #$02 ; \
$0C:A112 9D 60 04 STA.W OAM_TileSize,X ; / OAM size = large (16x16), X bit 8 = 0
$0C:A115 FA PLX ; \
$0C:A116 E8 INX ; |
$0C:A117 E8 INX ; |
$0C:A118 E8 INX ; |
$0C:A119 E8 INX ; / Restore X and advance the OAM offset by 4
$0C:A11A A5 00 LDA $00 ; \
$0C:A11C 18 CLC ; |
$0C:A11D 69 10 ADC.B #$10 ; |
$0C:A11F 85 00 STA $00 ; / X += $10: next column
$0C:A121 C9 F0 CMP.B #$F0 ; \
$0C:A123 D0 0B BNE $A130 ; / Reached X = $F0: end of the row
$0C:A125 A5 02 LDA $02 ; \
$0C:A127 85 00 STA $00 ; / X back to the left edge
$0C:A129 A5 01 LDA $01 ; \
$0C:A12B 18 CLC ; |
$0C:A12C 69 10 ADC.B #$10 ; |
$0C:A12E 85 01 STA $01 ; / Y += $10: next row
$0C:A130 C8 INY ; Next cell
$0C:A131 C0 2A CPY.B #$2A ; \
$0C:A133 D0 BC BNE $A0F1 ; / Repeat for all 42 cells
$0C:A135 60 RTS ; Return
;;; $A136..A13E: Table: tile numbers for ring sprites ;;;
;; 16 tile numbers used by $A183 (next chunk) for 16x16 sprites with properties $35.
$0C:A136 .db $26,$28,$2A,$2C,$46,$48,$4A,$4C ; Tile numbers for the 16x16 sprites drawn by $A183 (properties $35), 0-7
$0C:A13E .db $60,$62,$64,$66,$6A,$6C,$6E,$0A ; Tile numbers for $A183, 8-15
;;; $A146: Draw banner; dispatch scene substate ;;;
;; Tail of a sprite-banner drawer: draws 16 16x16 OAM sprites (tiles $A136, property $35) as two
;; 4x2-tile halves,
;; the first at X = $80, the second at X = $40 - [$04] (probably the end-of-credits title graphic). Skips
;; tiles whose X high byte is non-zero.
;; $0CA1D4 (entry): runs $AB1F (fade/window and scene timer update) and jumps through the substate table
;; at $0CA1DE by [$1442].
;; Called by:
;; $0C:A6B0: Ending: eggshell fragments and Yoshi helpers
$0C:A146 C2 20 REP #$20 ; Accumulator 16-bit
$0C:A148 A9 3F 00 LDA.W #$003F ; \
$0C:A14B 85 08 STA $08 ; } $08 = $0A = $003F: Y position of the first banner row
$0C:A14D 85 0A STA $0A ; /
$0C:A14F 64 00 STZ $00 ; \
$0C:A151 64 02 STZ $02 ; |
$0C:A153 64 04 STZ $04 ; } $00 = $02 = $04 = 0: X work values cleared
$0C:A155 A0 00 LDY.B #$00 ; Y = 0: index of the first banner tile
$0C:A157 A2 50 LDX.B #$50 ; X = $50: OAM index to start writing at
$0C:A159 C2 20 REP #$20 ; Accumulator 16-bit
$0C:A15B A5 00 LDA $00 ; \
$0C:A15D 18 CLC ; |
$0C:A15E 69 80 00 ADC.W #$0080 ; |
$0C:A161 85 00 STA $00 ; |
$0C:A163 85 02 STA $02 ; } $00 = $02 = [$00] + $0080: X position of the first banner half (left edge)
$0C:A165 E2 20 SEP #$20 ; Accumulator 8-bit
$0C:A167 20 83 A1 JSR.W $A183 ; Draw the first 8 banner tiles (two rows of four 16x16 sprites)
$0C:A16A C2 20 REP #$20 ; Accumulator 16-bit
$0C:A16C A9 80 00 LDA.W #$0080 ; \
$0C:A16F 38 SEC ; |
$0C:A170 E5 04 SBC $04 ; |
$0C:A172 38 SEC ; |
$0C:A173 E9 40 00 SBC.W #$0040 ; |
$0C:A176 85 00 STA $00 ; } $00 = $02 = $0080 - [$04] - $0040: X position of the second banner half
$0C:A178 85 02 STA $02 ; /
$0C:A17A A9 3F 00 LDA.W #$003F ; \
$0C:A17D 85 08 STA $08 ; |
$0C:A17F 85 0A STA $0A ; } $08 = $0A = $003F: Y position reset for the second half
$0C:A181 E2 20 SEP #$20 ; Accumulator 8-bit; falls into the tile loop
$0C:A183 A5 01 LDA $01 ; Draw loop entry: X position high byte
$0C:A185 D0 24 BNE $A1AB ; Skip the tile if the X position is off-screen (high byte non-zero)
$0C:A187 B9 36 A1 LDA.W $A136,Y ; \
$0C:A18A 9D 02 03 STA.W OAM_Tile,X ; } OAM tile = $A136[Y]
$0C:A18D A9 35 LDA.B #$35 ; \
$0C:A18F 9D 03 03 STA.W OAM_Prop,X ; } OAM property = $35 (palette 2, priority 3)
$0C:A192 A5 00 LDA $00 ; \
$0C:A194 9D 00 03 STA.W OAM_DispX,X ; } OAM X = [$00]
$0C:A197 A5 08 LDA $08 ; \
$0C:A199 9D 01 03 STA.W OAM_DispY,X ; } OAM Y = [$08]
$0C:A19C DA PHX ; \
$0C:A19D 8A TXA ; |
$0C:A19E 4A LSR ; |
$0C:A19F 4A LSR ; |
$0C:A1A0 AA TAX ; |
$0C:A1A1 A9 02 LDA.B #$02 ; |
$0C:A1A3 9D 60 04 STA.W OAM_TileSize,X ; |
$0C:A1A6 FA PLX ; } OAM size bit: tile uses large size (16x16)
$0C:A1A7 E8 INX ; \
$0C:A1A8 E8 INX ; |
$0C:A1A9 E8 INX ; |
$0C:A1AA E8 INX ; / X += 4: next OAM slot
$0C:A1AB C2 20 REP #$20 ; Accumulator 16-bit
$0C:A1AD A5 00 LDA $00 ; \
$0C:A1AF 18 CLC ; |
$0C:A1B0 69 10 00 ADC.W #$0010 ; |
$0C:A1B3 85 00 STA $00 ; } X position += $0010: next tile column
$0C:A1B5 E2 20 SEP #$20 ; Accumulator 8-bit
$0C:A1B7 98 TYA ; \
$0C:A1B8 29 07 AND.B #$07 ; |
$0C:A1BA C9 03 CMP.B #$03 ; / End of a four-tile row? ([Y] AND 7 = 3)
$0C:A1BC D0 0F BNE $A1CD ; Not at row end: next tile
$0C:A1BE A5 02 LDA $02 ; \
$0C:A1C0 85 00 STA $00 ; |
$0C:A1C2 A5 03 LDA $03 ; } Row end: $00/$01 = start X ($02/$03) again
$0C:A1C4 85 01 STA $01 ; /
$0C:A1C6 A5 08 LDA $08 ; \
$0C:A1C8 18 CLC ; |
$0C:A1C9 69 10 ADC.B #$10 ; |
$0C:A1CB 85 08 STA $08 ; } Y position += $10: next banner row
$0C:A1CD C8 INY ; Next tile index
$0C:A1CE 98 TYA ; \
$0C:A1CF 29 07 AND.B #$07 ; / Loop until the eight-tile group is done
$0C:A1D1 D0 B0 BNE $A183 ; Loop for the rest of the group
$0C:A1D3 60 RTS ; Return
$0C:A1D4 20 1F AB JSR.W $AB1F ; Update scene fade/window effect and scene timer
$0C:A1D7 AD 42 14 LDA.W $1442 ; \
$0C:A1DA 22 FA 86 00 JSL.L ExecutePtrLong ; } Jump to the scene substate routine for [$1442] (pointer table below)
;;; $A1DE: Scene substate table and substate 0 (PtrsLong0CA1DE) ;;;
;; Pointer table (long) of credits-scene substates indexed by [$1442], followed by substate 0.
;; Substate 0: after the fade-in ([$1B89] = 0) sets Mario Y = $0160, walks Mario left (actor 0, X speed $F8)
;; with Yoshi (sprite $35)
;; following $30 pixels behind, moves the line of seven actors (7-13) left, bounces them, and draws
;; everything.
;; Advances to substate 1 when actor 7 reaches X = $0030. Actor arrays: Y speed $0B05, Y pos $0B41, X speed
;; $0B14, X pos $0B50 (hi $0B6E).
$0C:A1DE ED A1 0C .dw $A1ED .db :$CODE_0CA1ED ; Substate 0: Mario and the line of characters walk in
$0C:A1E1 3C A4 0C .dw $A43C .db :$CODE_0CA43C ; Substate 1: landing pose animation
$0C:A1E4 32 A5 0C .dw $A532 .db :$CODE_0CA532 ; Substate 2: release the characters one by one
$0C:A1E7 5B A6 0C .dw $A65B .db :$CODE_0CA65B ; Substate 3
$0C:A1EA B0 A6 0C .dw $A6B0 .db :$CODE_0CA6B0 ; Substate 4: show banner and keep animating
$0C:A1ED 20 15 A3 JSR.W $A315 ; Update the hopping character and draw the trio
$0C:A1F0 AD 89 1B LDA.W $1B89 ; Scene timer/fade progress
$0C:A1F3 F0 01 BEQ $A1F6 ; Zero: scene is running, continue
$0C:A1F5 60 RTS ; Still fading in: return
$0C:A1F6 A9 60 LDA.B #$60 ; \
$0C:A1F8 85 96 STA RAM_MarioYPos ; } Mario Y position = $0160
$0C:A1FA A9 01 LDA.B #$01 ; \
$0C:A1FC 85 97 STA RAM_MarioYPosHi ; /
$0C:A1FE A2 00 LDX.B #$00 ; X = 0: actor 0 (Mario)
$0C:A200 BD 50 0B LDA.W $0B50,X ; Actor 0 X position, low byte
$0C:A203 C9 70 CMP.B #$70 ; Has Mario walked to X = $70?
$0C:A205 D0 48 BNE $A24F ; Not yet: keep walking ($A24F)
$0C:A207 9C E2 18 STZ.W $18E2 ; Clear the Mario-in-front-of-scenery flag
$0C:A20A A9 0F LDA.B #$0F ; \
$0C:A20C 8D E0 13 STA.W MarioFrame ; } Mario pose = $0F (facing the screen / entering pipe frame)
$0C:A20F 20 64 A7 JSR.W $A764 ; Clear behind-scenery flag and tick timers
$0C:A212 20 B4 A7 JSR.W $A7B4 ; Draw Mario ($E2BD)
$0C:A215 AD 42 14 LDA.W $1442 ; Substate 0?
$0C:A218 D0 13 BNE $A22D ; No: skip drawing the lead sprite
$0C:A21A A5 E4 LDA RAM_SpriteXLo ; \
$0C:A21C 85 00 STA $00 ; } $00 = Yoshi sprite X (low byte)
$0C:A21E A9 9F LDA.B #$9F ; \
$0C:A220 85 02 STA $02 ; } $02 = $9F: Y position
$0C:A222 A0 00 LDY.B #$00 ; Y = 0: first tile pair
$0C:A224 A2 B4 LDX.B #$B4 ; X = $B4: OAM index
$0C:A226 A9 01 LDA.B #$01 ; \
$0C:A228 85 0E STA $0E ; } $0E = 1: use Yoshi-side tile table
$0C:A22A 20 15 AA JSR.W $AA15 ; Draw the two-tile tall sprite
$0C:A22D 64 01 STZ $01 ; X position high byte = 0
$0C:A22F AD 50 0B LDA.W $0B50 ; \
$0C:A232 18 CLC ; |
$0C:A233 69 10 ADC.B #$10 ; |
$0C:A235 85 00 STA $00 ; } $00 = actor 0 X position + $10
$0C:A237 AD 6E 0B LDA.W $0B6E ; \
$0C:A23A 69 00 ADC.B #$00 ; |
$0C:A23C 85 01 STA $01 ; } $01 = actor 0 X position high byte (+ carry)
$0C:A23E A9 9F LDA.B #$9F ; \
$0C:A240 85 02 STA $02 ; } $02 = $9F: Y position
$0C:A242 A9 03 LDA.B #$03 ; \
$0C:A244 0A ASL ; |
$0C:A245 0A ASL ; |
$0C:A246 A8 TAY ; } Y = 3 * 4: metasprite frame 3 (standing)
$0C:A247 A2 A4 LDX.B #$A4 ; X = $A4: OAM index
$0C:A249 20 21 A8 JSR.W $A821 ; Draw the 2x2 metasprite
$0C:A24C 82 74 00 BRL $A2C3 ; Skip to the actor 7 check
$0C:A24F A9 F8 LDA.B #$F8 ; \
$0C:A251 9D 14 0B STA.W $0B14,X ; } Actor 0 X speed = $F8 (walk left, 1/2 pixel per frame)
$0C:A254 20 4F A7 JSR.W $A74F ; Move actor 0 horizontally
$0C:A257 BD 50 0B LDA.W $0B50,X ; \
$0C:A25A 85 94 STA RAM_MarioXPos ; } Mario X position = actor 0 X position
$0C:A25C BD 6E 0B LDA.W $0B6E,X ; \
$0C:A25F 85 95 STA RAM_MarioXPosHi ; /
$0C:A261 A9 01 LDA.B #$01 ; \
$0C:A263 85 19 STA RAM_MarioPowerUp ; } Mario power-up = Super (1) so the big sprite is drawn
$0C:A265 A9 08 LDA.B #$08 ; \
$0C:A267 8D 7B 00 STA.W RAM_MarioSpeedX ; } Mario X speed = 8 (animates the walk cycle)
$0C:A26A 20 5A A7 JSR.W $A75A ; Run Mario animation ($CEB1) with data bank 0
$0C:A26D AD 50 0B LDA.W $0B50 ; \
$0C:A270 18 CLC ; |
$0C:A271 69 30 ADC.B #$30 ; } Yoshi X = actor 0 X + $30 (follows behind Mario)
$0C:A273 85 E4 STA RAM_SpriteXLo ; /
$0C:A275 AD 6E 0B LDA.W $0B6E ; \
$0C:A278 69 00 ADC.B #$00 ; |
$0C:A27A 8D E0 14 STA.W RAM_SpriteXHi ; } Yoshi X high byte
$0C:A27D A9 60 LDA.B #$60 ; \
$0C:A27F 85 D8 STA RAM_SpriteYLo ; } Yoshi Y position = $0160
$0C:A281 A9 01 LDA.B #$01 ; \
$0C:A283 8D D4 14 STA.W RAM_SpriteYHi ; /
$0C:A286 A9 30 LDA.B #$30 ; \
$0C:A288 8D EA 15 STA.W RAM_SprOAMIndex ; } Yoshi OAM index = $30
$0C:A28B 20 78 A7 JSR.W $A778 ; Init and draw Yoshi (sprite $35) via $A778
$0C:A28E 64 01 STZ $01 ; X position high byte = 0
$0C:A290 AD 50 0B LDA.W $0B50 ; \
$0C:A293 18 CLC ; |
$0C:A294 69 10 ADC.B #$10 ; |
$0C:A296 85 00 STA $00 ; } $00 = actor 0 X position + $10
$0C:A298 AD 6E 0B LDA.W $0B6E ; \
$0C:A29B 69 00 ADC.B #$00 ; |
$0C:A29D 85 01 STA $01 ; } $01 = high byte
$0C:A29F A9 9F LDA.B #$9F ; \
$0C:A2A1 85 02 STA $02 ; } $02 = $9F: Y position
$0C:A2A3 CE 4E 14 DEC.W $144E ; Count down the walk-animation timer
$0C:A2A6 10 0D BPL $A2B5 ; Not expired: keep the current frame
$0C:A2A8 A9 06 LDA.B #$06 ; \
$0C:A2AA 8D 4E 14 STA.W $144E ; } Reload timer = 6 frames
$0C:A2AD AD 4F 14 LDA.W $144F ; \
$0C:A2B0 49 01 EOR.B #$01 ; |
$0C:A2B2 8D 4F 14 STA.W $144F ; } Toggle walk frame [$144F] between 0 and 1
$0C:A2B5 AD 4F 14 LDA.W $144F ; \
$0C:A2B8 18 CLC ; |
$0C:A2B9 69 03 ADC.B #$03 ; |
$0C:A2BB 0A ASL ; |
$0C:A2BC 0A ASL ; |
$0C:A2BD A8 TAY ; } Y = ([$144F] + 3) * 4: metasprite frame 3 or 4
$0C:A2BE A2 A4 LDX.B #$A4 ; X = $A4: OAM index
$0C:A2C0 20 21 A8 JSR.W $A821 ; Draw the 2x2 metasprite
$0C:A2C3 AD 57 0B LDA.W $0B57 ; \
$0C:A2C6 85 00 STA $00 ; |
$0C:A2C8 AD 75 0B LDA.W $0B75 ; |
$0C:A2CB 85 01 STA $01 ; } $00 = actor 7 X position (16-bit with high byte $0B75)
$0C:A2CD C2 20 REP #$20 ; Accumulator 16-bit
$0C:A2CF A5 00 LDA $00 ; \
$0C:A2D1 C9 30 00 CMP.W #$0030 ; / Has actor 7 (leader of the line) reached X = $0030?
$0C:A2D4 D0 0A BNE $A2E0 ; No: move the line
$0C:A2D6 AD 42 14 LDA.W $1442 ; \
$0C:A2D9 D0 21 BNE $A2FC ; / Already past substate 0?
$0C:A2DB EE 42 14 INC.W $1442 ; \
$0C:A2DE 80 1C BRA $A2FC ; } Otherwise advance to substate 1
$0C:A2E0 E2 20 SEP #$20 ; Accumulator 8-bit
$0C:A2E2 A2 0D LDX.B #$0D ; X = $0D: last actor of the line
$0C:A2E4 E0 0B CPX.B #$0B ; Actors $0B-$0D check for the stop position
$0C:A2E6 90 07 BCC $A2EF ; Actors below $0B always move
$0C:A2E8 AD 5B 0B LDA.W $0B5B ; \
$0C:A2EB C9 98 CMP.B #$98 ; |
$0C:A2ED F0 08 BEQ $A2F7 ; } Actor $0B at X = $98? Then actors $0B-$0D stop
$0C:A2EF A9 F8 LDA.B #$F8 ; \
$0C:A2F1 9D 14 0B STA.W $0B14,X ; } Actor X speed = $F8 (move left)
$0C:A2F4 20 4F A7 JSR.W $A74F ; Move actor horizontally
$0C:A2F7 CA DEX ; Next actor
$0C:A2F8 E0 06 CPX.B #$06 ; Down to actor 7 inclusive
$0C:A2FA D0 E8 BNE $A2E4 ; Loop
$0C:A2FC E2 20 SEP #$20 ; Accumulator 8-bit
$0C:A2FE A9 AF LDA.B #$AF ; \
$0C:A300 85 0E STA $0E ; } $0E = $AF: floor Y position for the bouncing actors
$0C:A302 20 A3 A8 JSR.W $A8A3 ; Apply gravity and bounce actors $0D down to 7
$0C:A305 A9 88 LDA.B #$88 ; \
$0C:A307 85 02 STA $02 ; } $02 = $88: OAM index for the line sprites
$0C:A309 20 DF A8 JSR.W $A8DF ; Draw the line of 7 actors
$0C:A30C 60 RTS ; Return
;;; $A30D..A311: Data: pose-to-frame tables ;;;
$0C:A30D .db $00,$01,$02,$01 ; Hop frame offset by pose [$1458] (0-3)
$0C:A311 .db $00,$01,$01,$01 ; Tile-size table index by pose [$1458]
;;; $A315: Update hopping character and draw trio ;;;
;; Gravity-hops actor 1 (Y speed += 1, floor at Y = $9F, bounce speed $F0), derives pose [$1458] (0-2) from
;; its vertical speed,
;; and, if [$1457] = 1, draws three characters (left X=$18, right X=$D4, centre X=$50) with frames chosen by
;; the pose.
;; Called by:
;; $0C:A1ED: Scene substate table and substate 0 (PtrsLong0CA1DE)
;; $0C:A443: Substate 1: landing pose animation
;; $0C:A6B3: Ending: eggshell fragments and Yoshi helpers
$0C:A315 A2 01 LDX.B #$01 ; X = 1: actor 1 (the hopping character)
$0C:A317 BD 05 0B LDA.W $0B05,X ; \
$0C:A31A 18 CLC ; |
$0C:A31B 69 01 ADC.B #$01 ; |
$0C:A31D 9D 05 0B STA.W $0B05,X ; } Actor 1 Y speed += 1 (gravity)
$0C:A320 20 21 A7 JSR.W $A721 ; Apply Y speed to actor 1 position
$0C:A323 BD 41 0B LDA.W $0B41,X ; \
$0C:A326 C9 9F CMP.B #$9F ; / Actor 1 Y position reached the ground ($9F)?
$0C:A328 90 0A BCC $A334 ; Still in the air
$0C:A32A A9 F0 LDA.B #$F0 ; \
$0C:A32C 9D 05 0B STA.W $0B05,X ; } Landed: Y speed = $F0 (bounce up)
$0C:A32F A9 9F LDA.B #$9F ; \
$0C:A331 9D 41 0B STA.W $0B41,X ; } Y position = $9F
$0C:A334 A0 00 LDY.B #$00 ; Y = 0: pose index
$0C:A336 AD 06 0B LDA.W $0B06 ; Actor 1 Y speed
$0C:A339 10 0E BPL $A349 ; Falling (positive): handle below
$0C:A33B C9 F4 CMP.B #$F4 ; Rising: fast
$0C:A33D 90 16 BCC $A355 ; Y = 0 when the speed is $F4 or faster upward
$0C:A33F A0 01 LDY.B #$01 ; Y = 1
$0C:A341 C9 F8 CMP.B #$F8 ; Speed $F4-$F7?
$0C:A343 90 10 BCC $A355 ; Y = 1 (medium)
$0C:A345 A0 02 LDY.B #$02 ; Y = 2 (near the top of the hop)
$0C:A347 80 00 BRA $A349 ; Continue
$0C:A349 C9 0C CMP.B #$0C ; Falling and fast ($0C+)?
$0C:A34B B0 08 BCS $A355 ; Pose 0
$0C:A34D A0 01 LDY.B #$01 ; Y = 1
$0C:A34F C9 08 CMP.B #$08 ; Speed $08-$0B?
$0C:A351 B0 02 BCS $A355 ; Pose 1
$0C:A353 A0 02 LDY.B #$02 ; Y = 2 (near the top of the hop)
$0C:A355 8C 58 14 STY.W $1458 ; Pose [$1458] = [Y]: chosen from the vertical speed of actor 1
$0C:A358 AD 57 14 LDA.W $1457 ; Characters drawing enabled?
$0C:A35B F0 56 BEQ $A3B3 ; No: return
$0C:A35D C9 01 CMP.B #$01 ; \
$0C:A35F D0 52 BNE $A3B3 ; / Only draw when [$1457] = 1
$0C:A361 A9 18 LDA.B #$18 ; \
$0C:A363 85 00 STA $00 ; } $00 = $18: X position of the left character
$0C:A365 64 01 STZ $01 ; X high byte = 0
$0C:A367 AD 42 0B LDA.W $0B42 ; \
$0C:A36A 85 02 STA $02 ; } $02 = actor 1 Y position
$0C:A36C AC 58 14 LDY.W $1458 ; Y = pose
$0C:A36F B9 0D A3 LDA.W $A30D,Y ; \
$0C:A372 18 CLC ; |
$0C:A373 69 07 ADC.B #$07 ; |
$0C:A375 0A ASL ; |
$0C:A376 0A ASL ; |
$0C:A377 A8 TAY ; } Y = ($A30D[pose] + 7) * 4: metasprite frame for the left character
$0C:A378 A2 D0 LDX.B #$D0 ; X = $D0: OAM index
$0C:A37A 20 21 A8 JSR.W $A821 ; Draw the 2x2 metasprite
$0C:A37D A9 D4 LDA.B #$D4 ; \
$0C:A37F 85 00 STA $00 ; } $00 = $D4: X position of the right character
$0C:A381 64 01 STZ $01 ; X high byte = 0
$0C:A383 AD 42 0B LDA.W $0B42 ; \
$0C:A386 85 02 STA $02 ; } $02 = actor 1 Y position
$0C:A388 AC 58 14 LDY.W $1458 ; Y = pose
$0C:A38B B9 0D A3 LDA.W $A30D,Y ; \
$0C:A38E 18 CLC ; |
$0C:A38F 69 0A ADC.B #$0A ; |
$0C:A391 0A ASL ; |
$0C:A392 0A ASL ; |
$0C:A393 A8 TAY ; } Y = ($A30D[pose] + $0A) * 4: metasprite frame for the right character
$0C:A394 A2 F0 LDX.B #$F0 ; X = $F0: OAM index
$0C:A396 20 21 A8 JSR.W $A821 ; Draw the 2x2 metasprite
$0C:A399 AC 58 14 LDY.W $1458 ; Y = pose
$0C:A39C B9 11 A3 LDA.W $A311,Y ; \
$0C:A39F 0A ASL ; |
$0C:A3A0 A8 TAY ; } Y = $A311[pose] * 2: tile pair for the centre character
$0C:A3A1 A9 50 LDA.B #$50 ; \
$0C:A3A3 85 00 STA $00 ; } $00 = $50: X position of the centre character
$0C:A3A5 AD 42 0B LDA.W $0B42 ; \
$0C:A3A8 85 02 STA $02 ; } $02 = actor 1 Y position
$0C:A3AA A2 F0 LDX.B #$F0 ; X = $F0: OAM index
$0C:A3AC A9 00 LDA.B #$00 ; \
$0C:A3AE 85 0E STA $0E ; } $0E = 0: first sprite table
$0C:A3B0 20 15 AA JSR.W $AA15 ; Draw the two-tile tall sprite
$0C:A3B3 60 RTS ; Return
;;; $A3B4..A3C2: Data: initial line actor X, Y, speed ;;;
$0C:A3B4 .db $40,$50,$60,$70,$80,$90,$A0 ; Initial X positions of line actors 7-13 (low byte; high byte is 1)
$0C:A3BB .db $AF,$AB,$AF,$AB,$AF,$AB,$AF ; Initial Y positions of line actors (alternating $AF/$AB)
$0C:A3C2 .db $F6,$00,$F6,$00,$F6,$00,$F6 ; Initial Y speeds of line actors (alternating $F6/$00)
;;; $A3C9: Initialise credits scene actors ;;;
;; Called by JSL. Resets scene state ([$1442], pose, timers $1B89/$1928 = $E2), puts actor 0 (Mario) at X =
;; $0100, actor 1 at Y = $9F,
;; starts music $0A and sets up the seven line actors 7-13 from the tables above (X high byte 1, gravity 1).
;; Called by:
;; $00:95A4: Cutscene, ending and game mode code (castle scenes, credits, game over) (CutsceneCastlePal)
$0C:A3C9 8B PHB ; Initialise credits scene actors; use JSL
$0C:A3CA 4B PHK ; \
$0C:A3CB AB PLB ; } Set data bank = program bank
$0C:A3CC A9 01 LDA.B #$01 ; \
$0C:A3CE 8D 57 14 STA.W $1457 ; } [$1457] = 1: characters drawing enabled
$0C:A3D1 64 76 STZ RAM_MarioDirection ; Mario direction = 0 (facing left)
$0C:A3D3 9C 42 14 STZ.W $1442 ; Scene substate [$1442] = 0
$0C:A3D6 A9 00 LDA.B #$00 ; \
$0C:A3D8 8D 50 0B STA.W $0B50 ; } Actor 0 (Mario) X position = $0100 (just off the right edge)
$0C:A3DB A9 01 LDA.B #$01 ; \
$0C:A3DD 8D 6E 0B STA.W $0B6E ; /
$0C:A3E0 9C 32 0B STZ.W $0B32 ; \
$0C:A3E3 9C 33 0B STZ.W $0B33 ; |
$0C:A3E6 9C 39 0B STZ.W $0B39 ; } X fractions of actors 0, 1 and 7 = 0
$0C:A3E9 A9 06 LDA.B #$06 ; \
$0C:A3EB 8D 4E 14 STA.W $144E ; } Walk animation timer = 6
$0C:A3EE 9C 4F 14 STZ.W $144F ; Walk frame = 0
$0C:A3F1 9C 58 14 STZ.W $1458 ; Pose = 0
$0C:A3F4 A9 06 LDA.B #$06 ; \
$0C:A3F6 8D 59 14 STA.W $1459 ; } Pose timer [$1459] = 6
$0C:A3F9 A9 F0 LDA.B #$F0 ; \
$0C:A3FB 8D 06 0B STA.W $0B06 ; } Actor 1 Y speed = $F0 (hopping)
$0C:A3FE A9 9F LDA.B #$9F ; \
$0C:A400 8D 42 0B STA.W $0B42 ; } Actor 1 Y position = $9F
$0C:A403 A9 E2 LDA.B #$E2 ; \
$0C:A405 8D 89 1B STA.W $1B89 ; } Scene timer [$1B89] = $E2
$0C:A408 8D 28 19 STA.W $1928 ; Second scene timer [$1928] = $E2
$0C:A40B A9 0A LDA.B #$0A ; \
$0C:A40D 8D FB 1D STA.W $1DFB ; } Change music to $0A (credits music)
$0C:A410 A2 0D LDX.B #$0D ; X = $0D: first line actor
$0C:A412 A0 06 LDY.B #$06 ; Y = 6: table index
$0C:A414 B9 BB A3 LDA.W $A3BB,Y ; \
$0C:A417 9D 41 0B STA.W $0B41,X ; } Actor X Y position = $A3BB[Y]
$0C:A41A 9E 5F 0B STZ.W $0B5F,X ; Actor Y position high byte = 0
$0C:A41D B9 B4 A3 LDA.W $A3B4,Y ; \
$0C:A420 9D 50 0B STA.W $0B50,X ; } Actor X position = $A3B4[Y]
$0C:A423 B9 C2 A3 LDA.W $A3C2,Y ; \
$0C:A426 9D 05 0B STA.W $0B05,X ; } Actor Y speed = $A3C2[Y]
$0C:A429 A9 01 LDA.B #$01 ; \
$0C:A42B 9D F6 0A STA.W $0AF6,X ; } Actor gravity = 1
$0C:A42E 9D 6E 0B STA.W $0B6E,X ; Actor X position high byte = 1
$0C:A431 88 DEY ; Next table entry
$0C:A432 CA DEX ; Next actor
$0C:A433 E0 06 CPX.B #$06 ; \
$0C:A435 D0 DD BNE $A414 ; / Loop until actor 7 is done
$0C:A437 AB PLB ; Restore data bank
$0C:A438 6B RTL ; Return
;;; $A439..A439: Data: pose to centre-sprite index ;;;
$0C:A439 .db $00,$02,$02 ; Pose to centre-sprite index: 0, 2, 2
;;; $A43C: Substate 1: landing pose animation ;;;
;; While pose [$1458] < 8 runs the hopping routine; when the hop ends on pose 0 at the ground it starts pose
;; 8. Poses 8-$0A step every 6 frames;
;; reaching $0B holds $0A and moves to substate 2. Draws the left/right/centre characters per pose, then joins
;; the substate 0 drawing at $0CA1F6.
$0C:A43C AD 58 14 LDA.W $1458 ; Pose [$1458]
$0C:A43F C9 08 CMP.B #$08 ; Pose >= 8?
$0C:A441 B0 19 BCS $A45C ; Yes: landing animation
$0C:A443 20 15 A3 JSR.W $A315 ; Update the hopping character
$0C:A446 AD 58 14 LDA.W $1458 ; Pose
$0C:A449 D0 0C BNE $A457 ; Not 0: no change
$0C:A44B AD 42 0B LDA.W $0B42 ; \
$0C:A44E C9 9F CMP.B #$9F ; / Actor 1 Y position at the ground ($9F)?
$0C:A450 D0 05 BNE $A457 ; No
$0C:A452 A9 08 LDA.B #$08 ; \
$0C:A454 8D 58 14 STA.W $1458 ; } Landed on pose 0: start the landing animation (pose 8)
$0C:A457 A0 00 LDY.B #$00 ; Y = 0
$0C:A459 82 B4 00 BRL $A510 ; Go draw only the lead sprite
$0C:A45C CE 59 14 DEC.W $1459 ; Pose timer -1
$0C:A45F 10 17 BPL $A478 ; Not expired
$0C:A461 A9 06 LDA.B #$06 ; \
$0C:A463 8D 59 14 STA.W $1459 ; } Reload pose timer = 6
$0C:A466 EE 58 14 INC.W $1458 ; Next pose
$0C:A469 AD 58 14 LDA.W $1458 ; \
$0C:A46C C9 0B CMP.B #$0B ; / Pose reached $0B?
$0C:A46E D0 08 BNE $A478 ; No
$0C:A470 A9 0A LDA.B #$0A ; \
$0C:A472 8D 58 14 STA.W $1458 ; } Pose = $0A (hold the last pose)
$0C:A475 EE 42 14 INC.W $1442 ; Advance scene substate to 2
$0C:A478 AD 58 14 LDA.W $1458 ; Pose
$0C:A47B 29 03 AND.B #$03 ; Pose AND 3 = 0?
$0C:A47D D0 37 BNE $A4B6 ; No: draw the other pose group
$0C:A47F A9 18 LDA.B #$18 ; \
$0C:A481 85 00 STA $00 ; } $00 = $18: X position of the left character
$0C:A483 64 01 STZ $01 ; X high byte = 0
$0C:A485 A9 9F LDA.B #$9F ; \
$0C:A487 85 02 STA $02 ; } $02 = $9F: Y position
$0C:A489 AD 58 14 LDA.W $1458 ; \
$0C:A48C 29 03 AND.B #$03 ; |
$0C:A48E 18 CLC ; |
$0C:A48F 69 07 ADC.B #$07 ; |
$0C:A491 0A ASL ; |
$0C:A492 0A ASL ; |
$0C:A493 A8 TAY ; } Y = ((pose AND 3) + 7) * 4: metasprite frame
$0C:A494 A2 D0 LDX.B #$D0 ; X = $D0: OAM index
$0C:A496 20 21 A8 JSR.W $A821 ; Draw the 2x2 metasprite
$0C:A499 A9 D4 LDA.B #$D4 ; \
$0C:A49B 85 00 STA $00 ; } $00 = $D4: X position of the right character
$0C:A49D 64 01 STZ $01 ; X high byte = 0
$0C:A49F A9 9F LDA.B #$9F ; \
$0C:A4A1 85 02 STA $02 ; } $02 = $9F: Y position
$0C:A4A3 AD 58 14 LDA.W $1458 ; \
$0C:A4A6 29 03 AND.B #$03 ; |
$0C:A4A8 18 CLC ; |
$0C:A4A9 69 0A ADC.B #$0A ; |
$0C:A4AB 0A ASL ; |
$0C:A4AC 0A ASL ; |
$0C:A4AD A8 TAY ; } Y = ((pose AND 3) + $0A) * 4: metasprite frame
$0C:A4AE A2 F0 LDX.B #$F0 ; X = $F0: OAM index
$0C:A4B0 20 21 A8 JSR.W $A821 ; Draw the 2x2 metasprite
$0C:A4B3 82 33 00 BRL $A4E9 ; Go draw the centre character
$0C:A4B6 A9 18 LDA.B #$18 ; \
$0C:A4B8 85 00 STA $00 ; } $00 = $18: X position of the left character
$0C:A4BA 64 01 STZ $01 ; X high byte = 0
$0C:A4BC A9 A7 LDA.B #$A7 ; \
$0C:A4BE 85 02 STA $02 ; } $02 = $A7: Y position
$0C:A4C0 AD 58 14 LDA.W $1458 ; \
$0C:A4C3 29 03 AND.B #$03 ; |
$0C:A4C5 3A DEC A ; |
$0C:A4C6 0A ASL ; |
$0C:A4C7 0A ASL ; |
$0C:A4C8 A8 TAY ; } Y = (pose AND 3 - 1) * 4: pair-sprite frame
$0C:A4C9 A2 C0 LDX.B #$C0 ; X = $C0: OAM index
$0C:A4CB 20 9E A9 JSR.W $A99E ; Draw the two-part sprite ($A99E)
$0C:A4CE A9 CC LDA.B #$CC ; \
$0C:A4D0 85 00 STA $00 ; } $00 = $CC: X position of the right character
$0C:A4D2 64 01 STZ $01 ; X high byte = 0
$0C:A4D4 A9 A7 LDA.B #$A7 ; \
$0C:A4D6 85 02 STA $02 ; } $02 = $A7: Y position
$0C:A4D8 AD 58 14 LDA.W $1458 ; \
$0C:A4DB 29 03 AND.B #$03 ; |
$0C:A4DD 3A DEC A ; |
$0C:A4DE 18 CLC ; |
$0C:A4DF 69 02 ADC.B #$02 ; |
$0C:A4E1 0A ASL ; |
$0C:A4E2 0A ASL ; |
$0C:A4E3 A8 TAY ; } Y = ((pose AND 3) - 1 + 2) * 4: pair-sprite frame
$0C:A4E4 A2 D8 LDX.B #$D8 ; X = $D8: OAM index
$0C:A4E6 20 9E A9 JSR.W $A99E ; Draw the two-part sprite ($A99E)
$0C:A4E9 AD 58 14 LDA.W $1458 ; \
$0C:A4EC 29 03 AND.B #$03 ; |
$0C:A4EE A8 TAY ; } Y = pose AND 3
$0C:A4EF B9 39 A4 LDA.W $A439,Y ; \
$0C:A4F2 0A ASL ; |
$0C:A4F3 A8 TAY ; } Y = $A439[Y] * 2: tile pair for the centre character
$0C:A4F4 A9 50 LDA.B #$50 ; \
$0C:A4F6 85 00 STA $00 ; } $00 = $50: X position of the centre character
$0C:A4F8 A9 9F LDA.B #$9F ; \
$0C:A4FA 85 02 STA $02 ; } $02 = $9F: Y position
$0C:A4FC A2 F0 LDX.B #$F0 ; X = $F0: OAM index
$0C:A4FE A9 00 LDA.B #$00 ; \
$0C:A500 85 0E STA $0E ; } $0E = 0: first sprite table
$0C:A502 20 15 AA JSR.W $AA15 ; Draw the two-tile tall sprite
$0C:A505 AD 58 14 LDA.W $1458 ; \
$0C:A508 29 03 AND.B #$03 ; |
$0C:A50A A8 TAY ; |
$0C:A50B B9 39 A4 LDA.W $A439,Y ; |
$0C:A50E 0A ASL ; |
$0C:A50F A8 TAY ; } Y = $A439[pose AND 3] * 2: tile pair for the lead sprite
$0C:A510 A5 E4 LDA RAM_SpriteXLo ; \
$0C:A512 85 00 STA $00 ; } $00 = Yoshi sprite X (low byte)
$0C:A514 A9 9F LDA.B #$9F ; \
$0C:A516 85 02 STA $02 ; } $02 = $9F: Y position
$0C:A518 A2 B4 LDX.B #$B4 ; X = $B4: OAM index
$0C:A51A A9 01 LDA.B #$01 ; \
$0C:A51C 85 0E STA $0E ; } $0E = 1: Yoshi-side tile table
$0C:A51E 20 15 AA JSR.W $AA15 ; Draw the two-tile tall sprite
$0C:A521 82 D2 FC BRL $A1F6 ; Continue at the common Mario/Yoshi drawing code of substate 0
;;; $A524..A52B: Data: release bit masks and order ;;;
$0C:A524 .db $20,$01,$10,$40,$08,$02,$04 ; Bit masks of the seven line actors, in release order
$0C:A52B .db $10,$60,$20,$00,$30,$50,$40 ; Release order: line actor index * 16
;;; $A532: Substate 2: release the seven actors ;;;
;; One actor per call ([$145C] = 0): launches line actor 7+X upward (speed $C0, gravity 4), spawns four
;; particle actors 3-6 at its position,
;; sets its bit in the visible mask [$145A], plays sound $0A. After the 8th ([$145B]) sets actor 2 X = $80,
;; changes music to $0B and goes to substate 3.
;; Otherwise runs $A5DE (outside this chunk) and redraws via $0CA4B6.
$0C:A532 AD 5C 14 LDA.W $145C ; [$145C]: release in progress?
$0C:A535 F0 03 BEQ $A53A ; Zero: start the next release
$0C:A537 82 91 00 BRL $A5CB ; Busy: just draw
$0C:A53A A9 98 LDA.B #$98 ; \
$0C:A53C 8D 08 0B STA.W $0B08 ; |
$0C:A53F 8D 09 0B STA.W $0B09 ; } Y speeds of actors 3 and 4 = $98
$0C:A542 A9 D4 LDA.B #$D4 ; \
$0C:A544 8D 0A 0B STA.W $0B0A ; |
$0C:A547 8D 0B 0B STA.W $0B0B ; } Y speeds of actors 5 and 6 = $D4
$0C:A54A AC 5B 14 LDY.W $145B ; Y = number of actors released so far
$0C:A54D B9 2B A5 LDA.W $A52B,Y ; \
$0C:A550 4A LSR ; |
$0C:A551 4A LSR ; |
$0C:A552 4A LSR ; |
$0C:A553 4A LSR ; } X = $A52B[Y] >> 4: which line actor to release (0-6)
$0C:A554 AA TAX ; X = line actor index
$0C:A555 1A INC A ; A = X + 1
$0C:A556 8D 5C 14 STA.W $145C ; [$145C] = X + 1: release in progress
$0C:A559 A9 C0 LDA.B #$C0 ; \
$0C:A55B 9D 0C 0B STA.W $0B0C,X ; } Y speed of actor 7+X = $C0 (launch upward)
$0C:A55E A9 04 LDA.B #$04 ; \
$0C:A560 9D FD 0A STA.W $0AFD,X ; } Gravity of actor 7+X = 4
$0C:A563 BD 48 0B LDA.W $0B48,X ; \
$0C:A566 8D 44 0B STA.W $0B44 ; |
$0C:A569 8D 45 0B STA.W $0B45 ; } Y positions of actors 3 and 4 = Y position of actor 7+X
$0C:A56C 18 CLC ; \
$0C:A56D 69 08 ADC.B #$08 ; |
$0C:A56F 8D 46 0B STA.W $0B46 ; |
$0C:A572 8D 47 0B STA.W $0B47 ; } Y positions of actors 5 and 6 = that Y position + 8
$0C:A575 9C 62 0B STZ.W $0B62 ; \
$0C:A578 9C 63 0B STZ.W $0B63 ; |
$0C:A57B 9C 64 0B STZ.W $0B64 ; |
$0C:A57E 9C 65 0B STZ.W $0B65 ; } Clear Y high bytes of actors 3-6
$0C:A581 BD 57 0B LDA.W $0B57,X ; \
$0C:A584 8D 53 0B STA.W $0B53 ; |
$0C:A587 8D 55 0B STA.W $0B55 ; } X positions of actors 3 and 5 = X position of actor 7+X
$0C:A58A 18 CLC ; \
$0C:A58B 69 08 ADC.B #$08 ; |
$0C:A58D 8D 54 0B STA.W $0B54 ; |
$0C:A590 8D 56 0B STA.W $0B56 ; } X positions of actors 4 and 6 = that X position + 8
$0C:A593 9C 71 0B STZ.W $0B71 ; \
$0C:A596 9C 72 0B STZ.W $0B72 ; |
$0C:A599 9C 73 0B STZ.W $0B73 ; |
$0C:A59C 9C 74 0B STZ.W $0B74 ; } Clear X high bytes of actors 3-6
$0C:A59F B9 24 A5 LDA.W $A524,Y ; \
$0C:A5A2 0C 5A 14 TSB.W $145A ; } Set this actor's bit in the visible mask [$145A]
$0C:A5A5 EE 5B 14 INC.W $145B ; Next release
$0C:A5A8 AD 5B 14 LDA.W $145B ; \
$0C:A5AB C9 08 CMP.B #$08 ; / All seven released?
$0C:A5AD F0 07 BEQ $A5B6 ; Yes: finish
$0C:A5AF A9 0A LDA.B #$0A ; \
$0C:A5B1 8D FC 1D STA.W $1DFC ; } Sound effect $0A on $1DFC
$0C:A5B4 80 15 BRA $A5CB ; Go draw
$0C:A5B6 9C 70 0B STZ.W $0B70 ; X high byte of actor 2 = 0
$0C:A5B9 A9 80 LDA.B #$80 ; \
$0C:A5BB 8D 52 0B STA.W $0B52 ; } X position of actor 2 = $80
$0C:A5BE 9C 16 0B STZ.W $0B16 ; X speed of actor 2 = 0
$0C:A5C1 A9 0B LDA.B #$0B ; \
$0C:A5C3 8D FB 1D STA.W $1DFB ; } Change music to $0B
$0C:A5C6 EE 42 14 INC.W $1442 ; Advance scene substate to 3
$0C:A5C9 80 03 BRA $A5CE ; Go draw
$0C:A5CB 20 DE A5 JSR.W $A5DE ; Update the released actors ($A5DE)
$0C:A5CE 20 B6 A4 JSR.W $A4B6 ; Draw the second pose group
$0C:A5D1 60 RTS ; Return
;;; $A5D2..A5DA: Data: small 4-entry tables ;;;
$0C:A5D2 .db $C8,$C8,$D8,$D8 ; Data: four values $C8,$C8,$D8,$D8 (purpose unclear)
$0C:A5D6 .db $26,$66,$26,$66 ; Data: OAM properties $26,$66,$26,$66 (alternating no flip / X flip)
$0C:A5DA .db $E8,$18,$F4,$0C ; Data: four values $E8,$18,$F4,$0C (probably X offsets)
;;; $A5DE: Ending: eggshell fragments and Yoshi helpers ;;;
;; Code for the Yoshi egg-hatching ending scene (credits engine): scene stages 3 and 4, the fragment
;; update/draw routine,
;; fixed-point motion helper, Mario-on-Yoshi setup. Object arrays at $0B05-$0B80: Y speed $0B05, Y subpixel
;; $0B23, Y pos $0B41/$0B5F,
;; X speed $0B14, X subpixel $0B32, X pos $0B50/$0B6E (X-direction entries are the Y entries + $0F).
;; Slots 3-6 are four flying fragments (probably eggshell pieces); slots 7-13 are the seven eggs / hatched
;; Yoshis.
;; Stage dispatch is by [$1442] (PtrsLong0CA1DE). Interpretation of the scene is partly guessed.
;; Called by:
;; $0C:A5CB: Substate 2: release the seven actors
$0C:A5DE AD 5C 14 LDA.W $145C ; \
$0C:A5E1 F0 77 BEQ $A65A ; } Return if the shell effect is inactive ([$145C] = 0)
$0C:A5E3 A2 06 LDX.B #$06 ; X = 6: loop over the four fragments, X = 6..3
$0C:A5E5 BD 05 0B LDA.W $0B05,X ; \
$0C:A5E8 18 CLC ; |
$0C:A5E9 69 06 ADC.B #$06 ; |
$0C:A5EB C9 70 CMP.B #$70 ; |
$0C:A5ED F0 03 BEQ $A5F2 ; } Fall speed [$0B05+X] += 6, but not stored if it would reach $70 (terminal speed)
$0C:A5EF 9D 05 0B STA.W $0B05,X ; /
$0C:A5F2 8A TXA ; \
$0C:A5F3 38 SEC ; |
$0C:A5F4 E9 03 SBC.B #$03 ; } Y = X - 3: fragment number 0-3
$0C:A5F6 A8 TAY ; /
$0C:A5F7 B9 DA A5 LDA.W $A5DA,Y ; \
$0C:A5FA 9D 14 0B STA.W $0B14,X ; } X speed of fragment = [DATA_0CA5DA+Y] ($E8, $18, $F4, $0C)
$0C:A5FD 20 21 A7 JSR.W $A721 ; Apply Y speed to fragment Y position
$0C:A600 20 4F A7 JSR.W $A74F ; Apply X speed to fragment X position
$0C:A603 CA DEX ; \
$0C:A604 E0 02 CPX.B #$02 ; } Next fragment until X = 2
$0C:A606 D0 DD BNE $A5E5 ; /
$0C:A608 AD 44 0B LDA.W $0B44 ; \
$0C:A60B 29 F0 AND.B #$F0 ; |
$0C:A60D C9 F0 CMP.B #$F0 ; |
$0C:A60F D0 03 BNE $A614 ; } If fragment 0 (slot 3) Y position is $F0+ (fell off screen), end the effect: [$145C] = 0
$0C:A611 9C 5C 14 STZ.W $145C ; /
$0C:A614 A2 00 LDX.B #$00 ; X = 0: OAM offset
$0C:A616 A0 06 LDY.B #$06 ; Y = 6: draw loop over fragments Y = 6..3
$0C:A618 B9 6E 0B LDA.W $0B6E,Y ; \
$0C:A61B D0 38 BNE $A655 ; } Skip fragments whose X high byte is nonzero (off screen)
$0C:A61D B9 5F 0B LDA.W $0B5F,Y ; \
$0C:A620 D0 33 BNE $A655 ; } Skip fragments whose Y high byte is nonzero
$0C:A622 B9 41 0B LDA.W $0B41,Y ; \
$0C:A625 C9 F0 CMP.B #$F0 ; } Skip fragments whose Y position is $F0 or more
$0C:A627 B0 2C BCS $A655 ; /
$0C:A629 B9 50 0B LDA.W $0B50,Y ; \
$0C:A62C 9D 00 02 STA.W OAM_ExtendedDispX,X ; } OAM X = fragment X position
$0C:A62F B9 41 0B LDA.W $0B41,Y ; \
$0C:A632 9D 01 02 STA.W OAM_ExtendedDispY,X ; } OAM Y = fragment Y position
$0C:A635 5A PHY ; \
$0C:A636 98 TYA ; |
$0C:A637 38 SEC ; |
$0C:A638 E9 03 SBC.B #$03 ; } Y = Y - 3: fragment number 0-3 (index preserved on the stack)
$0C:A63A A8 TAY ; /
$0C:A63B B9 D2 A5 LDA.W $A5D2,Y ; \
$0C:A63E 9D 02 02 STA.W OAM_ExtendedTile,X ; } OAM tile = [DATA_0CA5D2+Y] ($C8, $C8, $D8, $D8)
$0C:A641 B9 D6 A5 LDA.W $A5D6,Y ; \
$0C:A644 9D 03 02 STA.W OAM_ExtendedProp,X ; } OAM property = [DATA_0CA5D6+Y]: palette 3, X-flip on odd fragments
$0C:A647 7A PLY ; Restore fragment index
$0C:A648 DA PHX ; \
$0C:A649 8A TXA ; |
$0C:A64A 4A LSR ; |
$0C:A64B 4A LSR ; |
$0C:A64C AA TAX ; |
$0C:A64D 9E 20 04 STZ.W $0420,X ; } High OAM table entry = 0: small tile, X bit 8 clear
$0C:A650 FA PLX ; /
$0C:A651 E8 INX ; \
$0C:A652 E8 INX ; |
$0C:A653 E8 INX ; } OAM offset += 4
$0C:A654 E8 INX ; /
$0C:A655 88 DEY ; \
$0C:A656 C0 02 CPY.B #$02 ; } Next fragment until Y = 2
$0C:A658 D0 BE BNE $A618 ; /
$0C:A65A 60 RTS ; Return
$0C:A65B A2 02 LDX.B #$02 ; Scene stage 3: object 2 (X = 2) runs off to the left
$0C:A65D BD 14 0B LDA.W $0B14,X ; \
$0C:A660 38 SEC ; |
$0C:A661 E9 04 SBC.B #$04 ; } X speed [$0B14+X] -= 4 (accelerate leftwards)
$0C:A663 9D 14 0B STA.W $0B14,X ; /
$0C:A666 20 4F A7 JSR.W $A74F ; Apply X speed to object X position
$0C:A669 BD 50 0B LDA.W $0B50,X ; \
$0C:A66C C9 F8 CMP.B #$F8 ; } If X position < $F8 keep it, else it has left the screen:
$0C:A66E 90 0A BCC $A67A ; /
$0C:A670 EE 42 14 INC.W $1442 ; [$1442] += 1: advance to the next scene stage
$0C:A673 A9 F0 LDA.B #$F0 ; \
$0C:A675 8D 5D 14 STA.W $145D ; } [$145D] = $F0: delay timer before the next stage
$0C:A678 A9 00 LDA.B #$00 ; A = 0: draw the picture at X position 0
$0C:A67A 85 00 STA $00 ; \
$0C:A67C 85 02 STA $02 ; } Picture column X positions $00, $02, $04 = object X position
$0C:A67E 85 04 STA $04 ; /
$0C:A680 64 01 STZ $01 ; \
$0C:A682 64 03 STZ $03 ; } Clear their high bytes ($01, $03, $05)
$0C:A684 64 05 STZ $05 ; /
$0C:A686 A9 3F LDA.B #$3F ; \
$0C:A688 85 08 STA $08 ; } Picture Y positions $08 and $0A = $3F
$0C:A68A 85 0A STA $0A ; /
$0C:A68C A0 00 LDY.B #$00 ; Y = 0: first tile of the picture
$0C:A68E A2 50 LDX.B #$50 ; X = $50: OAM offset
$0C:A690 20 59 A1 JSR.W $A159 ; Draw the large-tile picture at the object position
$0C:A693 CE 59 14 DEC.W $1459 ; \
$0C:A696 10 14 BPL $A6AC ; } Count down [$1459] frame sub-counter
$0C:A698 A9 06 LDA.B #$06 ; \
$0C:A69A 8D 59 14 STA.W $1459 ; } Reload [$1459] = 6
$0C:A69D CE 58 14 DEC.W $1458 ; [$1458] -= 1: scene animation phase
$0C:A6A0 AD 58 14 LDA.W $1458 ; \
$0C:A6A3 C9 07 CMP.B #$07 ; |
$0C:A6A5 D0 05 BNE $A6AC ; |
$0C:A6A7 A9 08 LDA.B #$08 ; } When [$1458] reaches 7 it is forced back to 8 (floor at 8)
$0C:A6A9 8D 58 14 STA.W $1458 ; /
$0C:A6AC 20 78 A4 JSR.W $A478 ; Draw the scene characters for phase [$1458]
$0C:A6AF 60 RTS ; Return
$0C:A6B0 20 46 A1 JSR.W $A146 ; Scene stage 4: final pose, Mario on Yoshi waving
$0C:A6B3 20 15 A3 JSR.W $A315 ; Scene helper ($A315)
$0C:A6B6 20 FC A2 JSR.W $A2FC ; Scene helper ($A2FC)
$0C:A6B9 A9 60 LDA.B #$60 ; \
$0C:A6BB 85 96 STA RAM_MarioYPos ; |
$0C:A6BD A9 01 LDA.B #$01 ; } Mario Y position = $0160
$0C:A6BF 85 97 STA RAM_MarioYPosHi ; /
$0C:A6C1 9C E2 18 STZ.W $18E2 ; [$18E2] = 0: no Yoshi under Mario
$0C:A6C4 A9 26 LDA.B #$26 ; \
$0C:A6C6 8D E0 13 STA.W MarioFrame ; } Mario's image = peace sign ($26)
$0C:A6C9 20 64 A7 JSR.W $A764 ; Reset behind-scenery flag, tick down timers
$0C:A6CC 20 B4 A7 JSR.W $A7B4 ; Draw Mario (GFX assembly)
$0C:A6CF AC 58 14 LDY.W $1458 ; \
$0C:A6D2 B9 11 A3 LDA.W $A311,Y ; |
$0C:A6D5 0A ASL ; } Y = [DATA_0CA311+[$1458]] * 2: sprite pair index for the current phase
$0C:A6D6 A8 TAY ; /
$0C:A6D7 A5 E4 LDA RAM_SpriteXLo ; \
$0C:A6D9 85 00 STA $00 ; |
$0C:A6DB AD 42 0B LDA.W $0B42 ; } $00 = Yoshi sprite X low, $02 = [$0B42] (probably the tall sprite Y)
$0C:A6DE 85 02 STA $02 ; /
$0C:A6E0 A2 B4 LDX.B #$B4 ; X = $B4: OAM offset
$0C:A6E2 A9 01 LDA.B #$01 ; \
$0C:A6E4 85 0E STA $0E ; } $0E = 1: property set 1 for the tall sprite
$0C:A6E6 20 15 AA JSR.W $AA15 ; Draw the 16x32 two-tile sprite
$0C:A6E9 64 01 STZ $01 ; $01 = 0: X high byte
$0C:A6EB AD 50 0B LDA.W $0B50 ; \
$0C:A6EE 18 CLC ; |
$0C:A6EF 69 10 ADC.B #$10 ; |
$0C:A6F1 85 00 STA $00 ; |
$0C:A6F3 AD 6E 0B LDA.W $0B6E ; |
$0C:A6F6 69 00 ADC.B #$00 ; } $00/$01 = [$0B50]/[$0B6E] + $10: X position of the second sprite
$0C:A6F8 85 01 STA $01 ; /
$0C:A6FA A9 9F LDA.B #$9F ; \
$0C:A6FC 85 02 STA $02 ; } $02 = $9F: Y position
$0C:A6FE A5 13 LDA RAM_FrameCounter ; \
$0C:A700 29 08 AND.B #$08 ; |
$0C:A702 4A LSR ; |
$0C:A703 4A LSR ; |
$0C:A704 4A LSR ; |
$0C:A705 18 CLC ; |
$0C:A706 69 05 ADC.B #$05 ; |
$0C:A708 0A ASL ; |
$0C:A709 0A ASL ; } Y = (([$13] & 8) / 8 + 5) * 4: toggle animation frame every 8 frames
$0C:A70A A8 TAY ; /
$0C:A70B A2 A4 LDX.B #$A4 ; X = $A4: OAM offset
$0C:A70D 20 21 A8 JSR.W $A821 ; Draw 32x32 sprite ($A821)
$0C:A710 CE 5D 14 DEC.W $145D ; \
$0C:A713 AD 5D 14 LDA.W $145D ; } [$145D] -= 1: stage timer; when it hits 0 go to the next game mode
$0C:A716 D0 08 BNE $A720 ; /
$0C:A718 EE 00 01 INC.W RAM_GameMode ; \
$0C:A71B A9 40 LDA.B #$40 ; } Game mode += 1; [$145B] = $40
$0C:A71D 8D 5B 14 STA.W $145B ; /
$0C:A720 60 RTS ; Return
$0C:A721 BD 05 0B LDA.W $0B05,X ; \
$0C:A724 0A ASL ; |
$0C:A725 0A ASL ; |
$0C:A726 0A ASL ; } A = (Y speed & $0F) * 16: fractional part of the speed
$0C:A727 0A ASL ; /
$0C:A728 18 CLC ; \
$0C:A729 7D 23 0B ADC.W $0B23,X ; } Y subpixel [$0B23+X] += fraction; carry kept for the position add
$0C:A72C 9D 23 0B STA.W $0B23,X ; /
$0C:A72F 08 PHP ; Save carry
$0C:A730 BD 05 0B LDA.W $0B05,X ; \
$0C:A733 4A LSR ; |
$0C:A734 4A LSR ; |
$0C:A735 4A LSR ; } A = Y speed / 16: integer part
$0C:A736 4A LSR ; /
$0C:A737 C9 08 CMP.B #$08 ; \
$0C:A739 A0 00 LDY.B #$00 ; |
$0C:A73B 90 03 BCC $A740 ; |
$0C:A73D 09 F0 ORA.B #$F0 ; } If integer part >= 8 (negative) sign-extend: A |= $F0, Y = $FF; else Y = 0
$0C:A73F 88 DEY ; /
$0C:A740 28 PLP ; Restore carry
$0C:A741 7D 41 0B ADC.W $0B41,X ; \
$0C:A744 9D 41 0B STA.W $0B41,X ; } Y position low [$0B41+X] += integer part + carry
$0C:A747 98 TYA ; \
$0C:A748 7D 5F 0B ADC.W $0B5F,X ; } Y position high [$0B5F+X] += sign byte + carry
$0C:A74B 9D 5F 0B STA.W $0B5F,X ; /
$0C:A74E 60 RTS ; Return
$0C:A74F DA PHX ; \
$0C:A750 8A TXA ; |
$0C:A751 18 CLC ; |
$0C:A752 69 0F ADC.B #$0F ; |
$0C:A754 AA TAX ; |
$0C:A755 20 21 A7 JSR.W $A721 ; } Same motion for the X-direction arrays (X + $0F: $0B14, $0B32, $0B50, $0B6E)
$0C:A758 FA PLX ; /
$0C:A759 60 RTS ; Return
$0C:A75A 8B PHB ; Save data bank
$0C:A75B A9 00 LDA.B #$00 ; \
$0C:A75D 48 PHA ; } Data bank = 0
$0C:A75E AB PLB ; /
$0C:A75F 22 B1 CE 00 JSL.L $CEB1 ; Cape animation update ($CEB1)
$0C:A763 AB PLB ; Restore data bank
$0C:A764 9C F9 13 STZ.W RAM_IsBehindScenery ; Clear behind-scenery flag
$0C:A767 AD 96 14 LDA.W $1496 ; \
$0C:A76A F0 03 BEQ $A76F ; } Tick down timer [$1496] if nonzero
$0C:A76C CE 96 14 DEC.W $1496 ; /
$0C:A76F AD A2 14 LDA.W $14A2 ; \
$0C:A772 F0 03 BEQ $A777 ; } Tick down cape timer [$14A2] if nonzero
$0C:A774 CE A2 14 DEC.W $14A2 ; /
$0C:A777 60 RTS ; Return
$0C:A778 A2 00 LDX.B #$00 ; X = 0: sprite slot 0
$0C:A77A 8E E9 15 STX.W $15E9 ; Current sprite slot = 0
$0C:A77D A9 35 LDA.B #$35 ; \
$0C:A77F 85 9E STA RAM_SpriteNum ; } Sprite number = $35 (Yoshi)
$0C:A781 AD 02 16 LDA.W $1602 ; \
$0C:A784 48 PHA ; } Preserve Yoshi animation frame [$1602] across the init
$0C:A785 22 D2 F7 07 JSL.L InitSpriteTables ; Initialise sprite tables for slot 0
$0C:A789 68 PLA ; \
$0C:A78A 8D 02 16 STA.W $1602 ; } Restore [$1602]
$0C:A78D A9 02 LDA.B #$02 ; \
$0C:A78F 85 C2 STA RAM_SpriteState ; } Sprite state = 2
$0C:A791 A9 01 LDA.B #$01 ; \
$0C:A793 8D 7C 15 STA.W RAM_SpriteDir ; } Sprite direction = 1
$0C:A796 AD 56 14 LDA.W $1456 ; \
$0C:A799 18 CLC ; |
$0C:A79A 69 38 ADC.B #$38 ; } [$1456] += $38: animation sub-timer
$0C:A79C 8D 56 14 STA.W $1456 ; /
$0C:A79F 90 0E BCC $A7AF ; Skip frame step unless the timer overflowed
$0C:A7A1 AD 02 16 LDA.W $1602 ; \
$0C:A7A4 1A INC A ; |
$0C:A7A5 8D 02 16 STA.W $1602 ; |
$0C:A7A8 C9 03 CMP.B #$03 ; |
$0C:A7AA 90 03 BCC $A7AF ; } On overflow, [$1602] += 1 and wrap at 3 (Yoshi animation frame 0-2)
$0C:A7AC 9C 02 16 STZ.W $1602 ; /
$0C:A7AF A9 01 LDA.B #$01 ; \
$0C:A7B1 8D E2 18 STA.W $18E2 ; } [$18E2] = 1: Mario is riding Yoshi
$0C:A7B4 22 BD E2 00 JSL.L $E2BD ; Assemble Mario's GFX (OAM)
$0C:A7B8 60 RTS ; Return
;;; $A7B9..A7EA: Table: tiles for 32x32 sprite ;;;
;; Tile numbers for $A821: 4 bytes per frame, 2 rows of (left, right).
$0C:A7B9 .db $63 ; Tile pairs for the 32x32 sprite: per frame (left, right) x 2 rows; first byte
$0C:A7BA .db $64,$68,$69,$63,$64,$68,$69,$4B ; Tiles (continued)
$0C:A7C2 .db $4C,$6B,$6C,$8A,$8B,$AA,$68,$8D ; Tiles (continued)
$0C:A7CA .db $8E,$AD,$AE,$8A,$00,$AA,$44,$8A ; Tiles (continued)
$0C:A7D2 .db $0E,$AA,$2E,$81,$80,$A1,$A0,$84 ; Tiles (continued)
$0C:A7DA .db $83,$A4,$A3,$87,$86,$A7,$A6,$80 ; Tiles (continued)
$0C:A7E2 .db $81,$A0,$A1,$83,$84,$A3,$A4,$86 ; Tiles (continued)
$0C:A7EA .db $87,$A6,$A7 ; Tiles (continued)
;;; $A7ED..A81E: Table: properties for 32x32 sprite ;;;
;; OAM property bytes matching the tile table above, same layout.
$0C:A7ED .db $21 ; Property bytes for the 32x32 sprite; first byte
$0C:A7EE .db $21,$21,$21,$21,$21,$21,$21,$21 ; Properties: $21 / $20 = Yoshi, $78 / $34 = other palettes
$0C:A7F6 .db $21,$21,$21,$21,$21,$21,$21,$20 ; Properties: $21 / $20 = Yoshi, $78 / $34 = other palettes
$0C:A7FE .db $20,$20,$20,$21,$21,$21,$21,$21 ; Properties: $21 / $20 = Yoshi, $78 / $34 = other palettes
$0C:A806 .db $21,$21,$21,$78,$78,$78,$78,$78 ; Properties: $21 / $20 = Yoshi, $78 / $34 = other palettes
$0C:A80E .db $78,$78,$78,$78,$78,$78,$78,$34 ; Properties: $21 / $20 = Yoshi, $78 / $34 = other palettes
$0C:A816 .db $34,$34,$34,$34,$34,$34,$34,$34 ; Properties: $21 / $20 = Yoshi, $78 / $34 = other palettes
$0C:A81E .db $34,$34,$34 ; Properties: $21 / $20 = Yoshi, $78 / $34 = other palettes
;;; $A821: Draw 32x32 sprite from 16x16 tiles ;;;
;; Draws 2 rows of 2 large tiles (32x32 total) into OAM, using the tile and property tables at
;; $0CA7B9/$0CA7ED.
;; Parameters: X: OAM offset, Y: frame index (4 bytes per frame), $00/$01: X position, $02: Y position.
;; Skips drawing if the X high byte is nonzero. Y >= $28 selects the upper OAM block (offset + $100).
;; Called by:
;; $0C:A031: Draw Mario and Yoshi in the credits
;; $0C:A249: Scene substate table and substate 0 (PtrsLong0CA1DE)
;; $0C:A2C0: Scene substate table and substate 0 (PtrsLong0CA1DE)
;; $0C:A37A: Update hopping character and draw trio
;; $0C:A396: Update hopping character and draw trio
;; $0C:A496: Substate 1: landing pose animation
;; $0C:A4B0: Substate 1: landing pose animation
;; $0C:A70D: Ending: eggshell fragments and Yoshi helpers
$0C:A821 C2 30 REP #$30 ; \
$0C:A823 8A TXA ; |
$0C:A824 29 FF 00 AND.W #$00FF ; } X = X & $FF (OAM offset)
$0C:A827 AA TAX ; /
$0C:A828 98 TYA ; \
$0C:A829 29 FF 00 AND.W #$00FF ; |
$0C:A82C C9 28 00 CMP.W #$0028 ; |
$0C:A82F 90 05 BCC $A836 ; |
$0C:A831 8A TXA ; |
$0C:A832 09 00 01 ORA.W #$0100 ; } If frame index [Y] >= $28, use the upper OAM block: X |= $100
$0C:A835 AA TAX ; /
$0C:A836 E2 20 SEP #$20 ; 8-bit accumulator
$0C:A838 A9 01 LDA.B #$01 ; \
$0C:A83A 85 04 STA $04 ; } $04 = 1: draw two rows
$0C:A83C A5 01 LDA $01 ; \
$0C:A83E D0 60 BNE $A8A0 ; } Skip if X high byte [$01] is nonzero (off screen)
$0C:A840 A9 02 LDA.B #$02 ; \
$0C:A842 85 0A STA $0A ; } $0A = 2: large size, X bit 8 clear
$0C:A844 A5 00 LDA $00 ; \
$0C:A846 9D 04 02 STA.W $0204,X ; } Second tile X = [$00]
$0C:A849 18 CLC ; \
$0C:A84A 69 08 ADC.B #$08 ; } First tile X = [$00] + 8
$0C:A84C 9D 00 02 STA.W OAM_ExtendedDispX,X ; /
$0C:A84F 90 04 BCC $A855 ; \
$0C:A851 A9 01 LDA.B #$01 ; } If the X add carried: $0A = 1 (X bit 8 set for the first tile)
$0C:A853 85 0A STA $0A ; /
$0C:A855 A5 02 LDA $02 ; \
$0C:A857 9D 01 02 STA.W OAM_ExtendedDispY,X ; } Both tiles Y = [$02]
$0C:A85A 9D 05 02 STA.W $0205,X ; /
$0C:A85D B9 B9 A7 LDA.W $A7B9,Y ; \
$0C:A860 9D 06 02 STA.W $0206,X ; } Second tile number = [DATA_0CA7B9+Y]
$0C:A863 B9 BA A7 LDA.W $A7BA,Y ; \
$0C:A866 9D 02 02 STA.W OAM_ExtendedTile,X ; } First tile number = [DATA_0CA7BA+Y]
$0C:A869 B9 ED A7 LDA.W $A7ED,Y ; \
$0C:A86C 9D 07 02 STA.W $0207,X ; } Second tile property = [DATA_0CA7ED+Y]
$0C:A86F B9 EE A7 LDA.W $A7EE,Y ; \
$0C:A872 9D 03 02 STA.W OAM_ExtendedProp,X ; } First tile property = [DATA_0CA7EE+Y]
$0C:A875 A5 02 LDA $02 ; \
$0C:A877 18 CLC ; |
$0C:A878 69 10 ADC.B #$10 ; } $02 += $10: next row
$0C:A87A 85 02 STA $02 ; /
$0C:A87C DA PHX ; Save OAM offset
$0C:A87D C2 20 REP #$20 ; \
$0C:A87F 8A TXA ; |
$0C:A880 4A LSR ; |
$0C:A881 4A LSR ; |
$0C:A882 AA TAX ; } X = OAM offset / 4: index into the high OAM table
$0C:A883 E2 20 SEP #$20 ; /
$0C:A885 A9 02 LDA.B #$02 ; \
$0C:A887 9D 21 04 STA.W $0421,X ; } Second tile: large size
$0C:A88A A5 0A LDA $0A ; \
$0C:A88C 9D 20 04 STA.W $0420,X ; } First tile: high bits = [$0A]
$0C:A88F FA PLX ; Restore OAM offset
$0C:A890 C2 20 REP #$20 ; \
$0C:A892 8A TXA ; |
$0C:A893 18 CLC ; |
$0C:A894 69 08 00 ADC.W #$0008 ; |
$0C:A897 AA TAX ; } OAM offset += 8: next two tiles
$0C:A898 E2 20 SEP #$20 ; /
$0C:A89A C8 INY ; \
$0C:A89B C8 INY ; } Y += 2: next table entries
$0C:A89C C6 04 DEC $04 ; \
$0C:A89E 10 9C BPL $A83C ; } Repeat for the second row
$0C:A8A0 E2 30 SEP #$30 ; 8-bit A and index
$0C:A8A2 60 RTS ; Return
$0C:A8A3 A2 0D LDX.B #$0D ; X = $0D: loop over seven hatched Yoshis, X = $0D..7
$0C:A8A5 BD 05 0B LDA.W $0B05,X ; \
$0C:A8A8 18 CLC ; |
$0C:A8A9 7D F6 0A ADC.W $0AF6,X ; } Y speed [$0B05+X] += gravity [$0AF6+X]
$0C:A8AC 9D 05 0B STA.W $0B05,X ; /
$0C:A8AF 20 21 A7 JSR.W $A721 ; Apply Y speed to Y position
$0C:A8B2 BD 41 0B LDA.W $0B41,X ; \
$0C:A8B5 C5 0E CMP $0E ; } If Y position >= floor [$0E]: bounce
$0C:A8B7 90 12 BCC $A8CB ; /
$0C:A8B9 9E 23 0B STZ.W $0B23,X ; Clear Y subpixel
$0C:A8BC A9 F6 LDA.B #$F6 ; \
$0C:A8BE 9D 05 0B STA.W $0B05,X ; } Bounce speed = $F6 (upward)
$0C:A8C1 A9 01 LDA.B #$01 ; \
$0C:A8C3 9D F6 0A STA.W $0AF6,X ; } Gravity = 1
$0C:A8C6 A5 0E LDA $0E ; \
$0C:A8C8 9D 41 0B STA.W $0B41,X ; } Y position = floor
$0C:A8CB CA DEX ; \
$0C:A8CC E0 06 CPX.B #$06 ; } Next Yoshi until X = 6
$0C:A8CE D0 D5 BNE $A8A5 ; /
$0C:A8D0 60 RTS ; Return
;;; $A8D1..A8D8: Table: hatched Yoshi properties ;;;
;; $0CA8D1: seven bytes $00-$60, no reference found (unused?). $0CA8D8: OAM properties (palette/flip) for the
;; seven hatched Yoshis.
$0C:A8D1 .db $00,$10,$20,$30,$40,$50,$60 ; Unreferenced? Offsets $00-$60 step $10 (seven entries)
$0C:A8D8 .db $68,$26,$24,$6A,$28,$64,$26 ; Hatched Yoshi sprite properties per slot (palette / flip), seven entries
;;; $A8DF: Draw eggs and hatched Yoshis ;;;
;; Walks slots $0D..7. For each on-screen slot writes an OAM entry at [$02]: tile $86 for unhatched (bit in
;; [$145A] clear),
;; tile $EA with a per-slot property from $A8D8 once hatched. Reads positions from $0B50/$0B41. Large
;; (16x16) tiles.
;; Called by:
;; $0C:A03F: Draw Mario and Yoshi in the credits
;; $0C:A309: Scene substate table and substate 0 (PtrsLong0CA1DE)
$0C:A8DF AD 5A 14 LDA.W $145A ; \
$0C:A8E2 85 0E STA $0E ; } $0E = hatched-egg bit mask [$145A]
$0C:A8E4 A0 0D LDY.B #$0D ; Y = $0D: loop over the seven slots, Y = $0D..7
$0C:A8E6 B9 6E 0B LDA.W $0B6E,Y ; \
$0C:A8E9 D0 49 BNE $A934 ; } Skip slots whose X high byte is nonzero
$0C:A8EB B9 50 0B LDA.W $0B50,Y ; \
$0C:A8EE 85 00 STA $00 ; } $00 = slot X position
$0C:A8F0 B9 41 0B LDA.W $0B41,Y ; \
$0C:A8F3 85 01 STA $01 ; } $01 = slot Y position
$0C:A8F5 A6 02 LDX $02 ; X = OAM offset [$02]
$0C:A8F7 A5 00 LDA $00 ; \
$0C:A8F9 9D 00 02 STA.W OAM_ExtendedDispX,X ; } OAM X = slot X position
$0C:A8FC A5 01 LDA $01 ; \
$0C:A8FE 9D 01 02 STA.W OAM_ExtendedDispY,X ; } OAM Y = slot Y position
$0C:A901 46 0E LSR $0E ; \
$0C:A903 B0 0C BCS $A911 ; } Next hatch bit; carry set = this slot has hatched
$0C:A905 A9 86 LDA.B #$86 ; \
$0C:A907 9D 02 02 STA.W OAM_ExtendedTile,X ; |
$0C:A90A A9 21 LDA.B #$21 ; } Unhatched: tile $86, property $21 (egg)
$0C:A90C 9D 03 02 STA.W OAM_ExtendedProp,X ; /
$0C:A90F 80 12 BRA $A923 ; Continue to size setup
$0C:A911 5A PHY ; Save slot index
$0C:A912 98 TYA ; \
$0C:A913 38 SEC ; |
$0C:A914 E9 07 SBC.B #$07 ; } Y = Y - 7: slot number 0-6
$0C:A916 A8 TAY ; /
$0C:A917 A9 EA LDA.B #$EA ; \
$0C:A919 9D 02 02 STA.W OAM_ExtendedTile,X ; |
$0C:A91C B9 D8 A8 LDA.W $A8D8,Y ; } Hatched: tile $EA, property = [DATA_0CA8D8+Y] (per-slot palette)
$0C:A91F 9D 03 02 STA.W OAM_ExtendedProp,X ; /
$0C:A922 7A PLY ; Restore slot index
$0C:A923 8A TXA ; \
$0C:A924 4A LSR ; |
$0C:A925 4A LSR ; |
$0C:A926 AA TAX ; |
$0C:A927 A9 02 LDA.B #$02 ; } High OAM table entry = 2: large tile
$0C:A929 9D 20 04 STA.W $0420,X ; /
$0C:A92C E6 02 INC $02 ; \
$0C:A92E E6 02 INC $02 ; |
$0C:A930 E6 02 INC $02 ; } OAM offset [$02] += 4
$0C:A932 E6 02 INC $02 ; /
$0C:A934 88 DEY ; \
$0C:A935 C0 06 CPY.B #$06 ; } Next slot until Y = 6
$0C:A937 D0 AD BNE $A8E6 ; /
$0C:A939 60 RTS ; Return
;;; $A93A..A94B: Table: tiles for 6-tile sprite ;;;
;; 4 frames x 6 tiles (first pair large, rest small).
$0C:A93A .db $BB ; Tile numbers for the 6-tile sprite; first byte
$0C:A93B .db $B9,$DC,$DB,$DA,$D9,$8B,$89,$AC ; Tiles: 4 frames x 6 (2 large on top, 4 small below)
$0C:A943 .db $AB,$AA,$A9,$B9,$BB,$D9,$DA,$DB ; Tiles (continued)
$0C:A94B .db $DC,$89,$8B,$A9,$AA,$AB,$AC ; Tiles (continued)
;;; $A952..A963: Table: properties for 6-tile sprite ;;;
$0C:A952 .db $78 ; Properties for the 6-tile sprite; first byte
$0C:A953 .db $78,$78,$78,$78,$78,$78,$78,$78 ; Properties: $78 for frames 0-1, $34 for frames 2-3
$0C:A95B .db $78,$78,$78,$34,$34,$34,$34,$34 ; Properties (continued)
$0C:A963 .db $34,$34,$34,$34,$34,$34,$34 ; Properties (continued)
;;; $A96A..A97B: Table: X offsets for 6-tile sprite ;;;
$0C:A96A .db $00 ; X offsets for the 6-tile sprite; first byte
$0C:A96B .db $10,$00,$08,$10,$18,$00,$10,$00 ; X offsets: 4 frames x 6
$0C:A973 .db $08,$10,$18,$00,$10,$00,$08,$10 ; X offsets (continued)
$0C:A97B .db $18,$00,$10,$00,$08,$10,$18 ; X offsets (continued)
;;; $A982..A993: Table: Y offsets for 6-tile sprite ;;;
$0C:A982 .db $00 ; Y offsets for the 6-tile sprite; first byte
$0C:A983 .db $00,$10,$10,$10,$10,$00,$00,$10 ; Y offsets: 0 for the top pair, $10 for the lower four
$0C:A98B .db $10,$10,$10,$00,$00,$10,$10,$10 ; Y offsets (continued)
$0C:A993 .db $10,$00,$00,$10,$10,$10,$10 ; Y offsets (continued)
;;; $A99A..A99A: Table: frame offsets for 6-tile sprite ;;;
;; Offset of each frame in the 6-tile tables: 0, 6, 12, 18.
$0C:A99A .db $00,$06,$0C,$12 ; Offset of each frame in the 6-tile tables: 0, 6, 12, 18
;;; $A99E: Draw 6-tile animated sprite ;;;
;; Draws two 16x16 tiles on top and four 8x8 tiles below, offsets/tiles/props from the tables at
;; $0CA93A-$0CA982.
;; Parameters: Y: frame number * 4, X: OAM offset, $00/$02: X/Y position.
;; Called by:
;; $0C:A4CB: Substate 1: landing pose animation
;; $0C:A4E6: Substate 1: landing pose animation
$0C:A99E 98 TYA ; \
$0C:A99F 4A LSR ; |
$0C:A9A0 4A LSR ; |
$0C:A9A1 A8 TAY ; |
$0C:A9A2 B9 9A A9 LDA.W $A99A,Y ; } Y = frame index / 4 * 6 via $A99A (offset of the frame in the tables)
$0C:A9A5 A8 TAY ; /
$0C:A9A6 A9 02 LDA.B #$02 ; \
$0C:A9A8 85 04 STA $04 ; } $04 = 2: three pairs of tiles to draw
$0C:A9AA B9 6A A9 LDA.W $A96A,Y ; \
$0C:A9AD 18 CLC ; |
$0C:A9AE 65 00 ADC $00 ; } OAM X (tile 1) = X offset [DATA_0CA96A+Y] + [$00]
$0C:A9B0 9D 00 02 STA.W OAM_ExtendedDispX,X ; /
$0C:A9B3 B9 6B A9 LDA.W $A96B,Y ; \
$0C:A9B6 18 CLC ; |
$0C:A9B7 65 00 ADC $00 ; } OAM X (tile 2) = X offset [DATA_0CA96B+Y] + [$00]
$0C:A9B9 9D 04 02 STA.W $0204,X ; /
$0C:A9BC B9 82 A9 LDA.W $A982,Y ; \
$0C:A9BF 18 CLC ; |
$0C:A9C0 65 02 ADC $02 ; } OAM Y (tile 1) = Y offset [DATA_0CA982+Y] + [$02]
$0C:A9C2 9D 01 02 STA.W OAM_ExtendedDispY,X ; /
$0C:A9C5 B9 83 A9 LDA.W $A983,Y ; \
$0C:A9C8 18 CLC ; |
$0C:A9C9 65 02 ADC $02 ; } OAM Y (tile 2) = Y offset [DATA_0CA983+Y] + [$02]
$0C:A9CB 9D 05 02 STA.W $0205,X ; /
$0C:A9CE B9 3A A9 LDA.W $A93A,Y ; \
$0C:A9D1 9D 02 02 STA.W OAM_ExtendedTile,X ; } Tile 1 number = [DATA_0CA93A+Y]
$0C:A9D4 B9 3B A9 LDA.W $A93B,Y ; \
$0C:A9D7 9D 06 02 STA.W $0206,X ; } Tile 2 number = [DATA_0CA93B+Y]
$0C:A9DA B9 52 A9 LDA.W $A952,Y ; \
$0C:A9DD 9D 03 02 STA.W OAM_ExtendedProp,X ; } Tile 1 property = [DATA_0CA952+Y]
$0C:A9E0 B9 53 A9 LDA.W $A953,Y ; \
$0C:A9E3 9D 07 02 STA.W $0207,X ; } Tile 2 property = [DATA_0CA953+Y]
$0C:A9E6 5A PHY ; Save frame index
$0C:A9E7 DA PHX ; \
$0C:A9E8 8A TXA ; |
$0C:A9E9 4A LSR ; |
$0C:A9EA 4A LSR ; } X = OAM offset / 4
$0C:A9EB AA TAX ; /
$0C:A9EC A0 02 LDY.B #$02 ; \
$0C:A9EE A5 04 LDA $04 ; |
$0C:A9F0 29 02 AND.B #$02 ; |
$0C:A9F2 D0 02 BNE $A9F6 ; } Size = large (2) for the first pair ($04 = 2), small (0) for the others
$0C:A9F4 A0 00 LDY.B #$00 ; /
$0C:A9F6 98 TYA ; \
$0C:A9F7 9D 20 04 STA.W $0420,X ; } Write size to both tiles' high OAM entries
$0C:A9FA 9D 21 04 STA.W $0421,X ; /
$0C:A9FD FA PLX ; Restore OAM offset
$0C:A9FE 7A PLY ; Restore frame index
$0C:A9FF 8A TXA ; \
$0C:AA00 18 CLC ; |
$0C:AA01 69 08 ADC.B #$08 ; } OAM offset += 8
$0C:AA03 AA TAX ; /
$0C:AA04 C8 INY ; \
$0C:AA05 C8 INY ; } Y += 2 table entries
$0C:AA06 C6 04 DEC $04 ; \
$0C:AA08 10 A0 BPL $A9AA ; } Next pair until $04 < 0
$0C:AA0A 60 RTS ; Return
;;; $AA0B..AA12: Table: tiles and properties for 16x32 sprite ;;;
$0C:AA0B .db $C4 ; Tile numbers for the 16x32 sprite: top, bottom of three pairs; first byte
$0C:AA0C .db $E4,$E6,$E8,$CE,$EE ; Tiles: $E4, ($E6, $E8), ($CE, $EE)
$0C:AA11 .db $36 ; Properties for the 16x32 sprite; first byte
$0C:AA12 .db $36,$3A,$3A ; Properties: $36, $36 / $3A, $3A, indexed by [$0E] * 2
;;; $AA15: Draw 16x32 sprite from two tiles ;;;
;; Two stacked 16x16 tiles (second at Y + $10).
;; Parameters: Y: tile pair offset, X: OAM offset, $0E: property pair index, $00/$02: X/Y position.
;; Called by:
;; $0C:A22A: Scene substate table and substate 0 (PtrsLong0CA1DE)
;; $0C:A3B0: Update hopping character and draw trio
;; $0C:A502: Substate 1: landing pose animation
;; $0C:A51E: Substate 1: landing pose animation
;; $0C:A6E6: Ending: eggshell fragments and Yoshi helpers
$0C:AA15 5A PHY ; \
$0C:AA16 A5 0E LDA $0E ; |
$0C:AA18 0A ASL ; } Y = [$0E] * 2 (property pair index), pair index kept on the stack
$0C:AA19 A8 TAY ; /
$0C:AA1A B9 11 AA LDA.W $AA11,Y ; \
$0C:AA1D 9D 03 02 STA.W OAM_ExtendedProp,X ; } Top tile property = [DATA_0CAA11+Y]
$0C:AA20 B9 12 AA LDA.W $AA12,Y ; \
$0C:AA23 9D 07 02 STA.W $0207,X ; } Bottom tile property = [DATA_0CAA12+Y]
$0C:AA26 7A PLY ; Restore pair index
$0C:AA27 A5 00 LDA $00 ; \
$0C:AA29 9D 00 02 STA.W OAM_ExtendedDispX,X ; } Both tiles X = [$00]
$0C:AA2C 9D 04 02 STA.W $0204,X ; /
$0C:AA2F A5 02 LDA $02 ; \
$0C:AA31 9D 01 02 STA.W OAM_ExtendedDispY,X ; } Top tile Y = [$02]
$0C:AA34 18 CLC ; \
$0C:AA35 69 10 ADC.B #$10 ; } Bottom tile Y = [$02] + $10
$0C:AA37 9D 05 02 STA.W $0205,X ; /
$0C:AA3A B9 0B AA LDA.W $AA0B,Y ; \
$0C:AA3D 9D 02 02 STA.W OAM_ExtendedTile,X ; } Top tile number = [DATA_0CAA0B+Y]
$0C:AA40 B9 0C AA LDA.W $AA0C,Y ; \
$0C:AA43 9D 06 02 STA.W $0206,X ; } Bottom tile number = [DATA_0CAA0C+Y]
$0C:AA46 8A TXA ; \
$0C:AA47 4A LSR ; |
$0C:AA48 4A LSR ; } X = OAM offset / 4
$0C:AA49 AA TAX ; /
$0C:AA4A A9 02 LDA.B #$02 ; \
$0C:AA4C 9D 20 04 STA.W $0420,X ; } Both tiles: large size
$0C:AA4F 9D 21 04 STA.W $0421,X ; /
$0C:AA52 60 RTS ; Return
;;; $AA53..AADE: Data: static picture sprite records ;;;
;; 35 four-byte OAM records (X, Y, tile, property) drawn by $AADF. Rows below are decoded; #n = record
;; number.
$0C:AA53 .db $53 ; #0 X=53
$0C:AA54 .db $6A ; #0 Y=6A
$0C:AA55 .db $80 ; #0 T=80
$0C:AA56 .db $3C,$63,$6A,$82,$3C,$53,$7A,$A0 ; #0 P=3C; #1 X=63 Y=6A T=82 P=3C; #2 X=53 Y=7A T=A0
$0C:AA5E .db $3C,$63,$7A,$A2,$3C,$53,$8A,$84 ; #2 P=3C; #3 X=63 Y=7A T=A2 P=3C; #4 X=53 Y=8A T=84
$0C:AA66 .db $3C,$63,$8A,$86,$3C,$53,$9A,$A4 ; #4 P=3C; #5 X=63 Y=8A T=86 P=3C; #6 X=53 Y=9A T=A4
$0C:AA6E .db $3C,$63,$9A,$A6,$3C,$53,$AA,$88 ; #6 P=3C; #7 X=63 Y=9A T=A6 P=3C; #8 X=53 Y=AA T=88
$0C:AA76 .db $3C,$63,$AA,$8A,$3C,$8D,$5A,$A8 ; #8 P=3C; #9 X=63 Y=AA T=8A P=3C; #10 X=8D Y=5A T=A8
$0C:AA7E .db $3A,$9D,$5A,$AA,$3A,$8D,$6A,$8C ; #10 P=3A; #11 X=9D Y=5A T=AA P=3A; #12 X=8D Y=6A T=8C
$0C:AA86 .db $3A,$9D,$6A,$8E,$3A,$8D,$7A,$AC ; #12 P=3A; #13 X=9D Y=6A T=8E P=3A; #14 X=8D Y=7A T=AC
$0C:AA8E .db $3A,$9D,$7A,$AE,$3A,$8D,$8A,$63 ; #14 P=3A; #15 X=9D Y=7A T=AE P=3A; #16 X=8D Y=8A T=63
$0C:AA96 .db $3A,$9D,$8A,$65,$3A,$8D,$9A,$48 ; #16 P=3A; #17 X=9D Y=8A T=65 P=3A; #18 X=8D Y=9A T=48
$0C:AA9E .db $3A,$9D,$9A,$68,$3A,$8D,$AA,$6B ; #18 P=3A; #19 X=9D Y=9A T=68 P=3A; #20 X=8D Y=AA T=6B
$0C:AAA6 .db $3A,$9D,$AA,$6D,$3A,$78,$58,$4D ; #20 P=3A; #21 X=9D Y=AA T=6D P=3A; #22 X=78 Y=58 T=4D
$0C:AAAE .db $3E,$70,$68,$E0,$3F,$80,$68,$C4 ; #22 P=3E; #23 X=70 Y=68 T=E0 P=3F; #24 X=80 Y=68 T=C4
$0C:AAB6 .db $3F,$70,$78,$4A,$3F,$80,$78,$4C ; #24 P=3F; #25 X=70 Y=78 T=4A P=3F; #26 X=80 Y=78 T=4C
$0C:AABE .db $3F,$70,$88,$6A,$3F,$80,$88,$6C ; #26 P=3F; #27 X=70 Y=88 T=6A P=3F; #28 X=80 Y=88 T=6C
$0C:AAC6 .db $3F,$68,$98,$AB,$3F,$78,$98,$C8 ; #28 P=3F; #29 X=68 Y=98 T=AB P=3F; #30 X=78 Y=98 T=C8
$0C:AACE .db $3F,$88,$98,$E6,$3F,$68,$A8,$E8 ; #30 P=3F; #31 X=88 Y=98 T=E6 P=3F; #32 X=68 Y=A8 T=E8
$0C:AAD6 .db $3F,$78,$A8,$EA,$3F,$88,$A8,$EC ; #32 P=3F; #33 X=78 Y=A8 T=EA P=3F; #34 X=88 Y=A8 T=EC
$0C:AADE .db $3F ; #34 P=3F
;;; $AADF: Draw static 35-sprite picture; screen wipe ;;;
;; $AADF (JSL from the credits-screen setup at $00967F) copies the 35 records into OAM as large sprites.
;; $AB13 is a JSL wrapper for $AB1F, the screen wipe: it steps [$1B89] by 2 toward $0 or $E0,
;; advances the scene
;; phase [$1928] and loads its palette when the wipe ends, and builds a per-scanline window table at $04A0 for
;; HDMA channel 7.
;; Called by:
;; $00:967F: Cutscene, ending and game mode code (castle scenes, credits, game over) (CutsceneCastlePal)
$0C:AADF 8B PHB ; \
$0C:AAE0 4B PHK ; } Data bank = program bank
$0C:AAE1 AB PLB ; /
$0C:AAE2 A2 00 LDX.B #$00 ; X = 0: OAM offset
$0C:AAE4 9B TXY ; Y = 0: offset into the sprite records
$0C:AAE5 B9 53 AA LDA.W $AA53,Y ; \
$0C:AAE8 9D 00 02 STA.W OAM_ExtendedDispX,X ; } OAM X = record X
$0C:AAEB B9 54 AA LDA.W $AA54,Y ; \
$0C:AAEE 9D 01 02 STA.W OAM_ExtendedDispY,X ; } OAM Y = record Y
$0C:AAF1 B9 55 AA LDA.W $AA55,Y ; \
$0C:AAF4 9D 02 02 STA.W OAM_ExtendedTile,X ; } OAM tile = record tile
$0C:AAF7 B9 56 AA LDA.W $AA56,Y ; \
$0C:AAFA 9D 03 02 STA.W OAM_ExtendedProp,X ; } OAM property = record property
$0C:AAFD DA PHX ; \
$0C:AAFE 8A TXA ; |
$0C:AAFF 4A LSR ; |
$0C:AB00 4A LSR ; |
$0C:AB01 AA TAX ; |
$0C:AB02 A9 02 LDA.B #$02 ; |
$0C:AB04 9D 20 04 STA.W $0420,X ; } High OAM entry = 2 (large tile)
$0C:AB07 FA PLX ; /
$0C:AB08 E8 INX ; \
$0C:AB09 E8 INX ; |
$0C:AB0A E8 INX ; |
$0C:AB0B E8 INX ; } Next record: OAM offset and record offset += 4
$0C:AB0C 9B TXY ; /
$0C:AB0D C0 8C CPY.B #$8C ; \
$0C:AB0F D0 D4 BNE $AAE5 ; } Repeat until $8C bytes (35 sprites) are done
$0C:AB11 AB PLB ; Restore data bank
$0C:AB12 6B RTL ; Return
$0C:AB13 8B PHB ; \
$0C:AB14 4B PHK ; |
$0C:AB15 AB PLB ; |
$0C:AB16 20 1F AB JSR.W $AB1F ; } Wrapper: run the wipe update with the data bank set
$0C:AB19 AB PLB ; /
$0C:AB1A 6B RTL ; Return
;;; $AB1B..AB1D: Table: wipe step and end values ;;;
;; $0CAB1B: step -2 / +2. $0CAB1D: end values $00 / $E0.
$0C:AB1B .db $FE,$02 ; Wipe speed per frame: -2 (closing) / +2 (opening)
$0C:AB1D .db $00,$E0 ; Wipe end values: $00 / $E0
;;; $AB1F: Screen wipe update (window HDMA) ;;;
;; Updates [$1B89] (wipe size) by [DATA_0CAB1B+X], rebuilds the window HDMA tables ($04A0/$057E, 112 lines
;; each half).
;; On reaching $E0 it flips the direction, advances [$1928] and loads the next palette ($ABB2); phase >=
;; 6 advances the game mode.
;; Parameters: X: [$1B88] direction, Y: [$1928] scene phase. Writes $41, $43, $44, $212E/$212F, $0D9F (HDMA
;; channel 7).
;; Called by:
;; $0C:9395: Ending mode entry points
;; $0C:A1D4: Draw banner; dispatch scene substate
;; $0C:AB16: Draw static 35-sprite picture; screen wipe
$0C:AB1F AE 88 1B LDX.W $1B88 ; X = [$1B88] wipe direction (1 = grow toward $E0, 0 = shrink to 0)
$0C:AB22 A9 33 LDA.B #$33 ; \
$0C:AB24 85 41 STA $41 ; } $41 = $33: window mask for BG1/BG2 (window 1 enabled, inverted)
$0C:AB26 AC 28 19 LDY.W $1928 ; Y = [$1928]: scene phase
$0C:AB29 D0 04 BNE $AB2F ; \
$0C:AB2B E0 00 CPX.B #$00 ; } Phase 0 with direction 0 keeps $43 = $33
$0C:AB2D F0 0C BEQ $AB3B ; /
$0C:AB2F C0 06 CPY.B #$06 ; \
$0C:AB31 90 06 BCC $AB39 ; |
$0C:AB33 D0 06 BNE $AB3B ; |
$0C:AB35 E0 00 CPX.B #$00 ; |
$0C:AB37 D0 02 BNE $AB3B ; } Phases 1-5 (or 6 with direction 0): $43 = $30
$0C:AB39 A9 30 LDA.B #$30 ; /
$0C:AB3B 85 43 STA $43 ; Window mask for sprites/color [$43]
$0C:AB3D AD 89 1B LDA.W $1B89 ; \
$0C:AB40 DD 1D AB CMP.W $AB1D,X ; } A = wipe size [$1B89]; compare with the end value for this direction
$0C:AB43 D0 1F BNE $AB64 ; Not at the end value yet: keep stepping
$0C:AB45 E0 00 CPX.B #$00 ; \
$0C:AB47 F0 22 BEQ $AB6B ; } If direction is 0 (closed already) skip to table build
$0C:AB49 A2 00 LDX.B #$00 ; \
$0C:AB4B 8E 88 1B STX.W $1B88 ; } Opening finished: direction = 0
$0C:AB4E C0 06 CPY.B #$06 ; \
$0C:AB50 90 05 BCC $AB57 ; } If phase >= 6, move on to the next game mode
$0C:AB52 EE 00 01 INC.W RAM_GameMode ; /
$0C:AB55 80 14 BRA $AB6B ; Return to table build
$0C:AB57 48 PHA ; \
$0C:AB58 DA PHX ; } Save size and direction
$0C:AB59 EE FE 1F INC.W $1FFE ; [$1FFE] += 1: request a palette reload
$0C:AB5C EE 28 19 INC.W $1928 ; [$1928] += 1: next scene phase
$0C:AB5F 20 B2 AB JSR.W $ABB2 ; Load the new phase's palette
$0C:AB62 FA PLX ; \
$0C:AB63 68 PLA ; } Restore direction and size
$0C:AB64 18 CLC ; \
$0C:AB65 7D 1B AB ADC.W $AB1B,X ; } [$1B89] += step [DATA_0CAB1B+X]
$0C:AB68 8D 89 1B STA.W $1B89 ; /
$0C:AB6B C2 20 REP #$20 ; 16-bit A: build the window HDMA tables
$0C:AB6D A2 00 LDX.B #$00 ; \
$0C:AB6F A0 E0 LDY.B #$E0 ; } X = 0, Y = $E0
$0C:AB71 A9 FF 00 LDA.W #$00FF ; A = $00FF: empty window on this line
$0C:AB74 EC 89 1B CPX.W $1B89 ; \
$0C:AB77 90 03 BCC $AB7C ; } A = $FF00 (full window) once X >= [$1B89]
$0C:AB79 A9 00 FF LDA.W #$FF00 ; /
$0C:AB7C 9D A0 04 STA.W $04A0,X ; Top half scanline entry at $04A0+X
$0C:AB7F 99 7E 05 STA.W $057E,Y ; Bottom half scanline entry at $057E+Y (mirrored)
$0C:AB82 E8 INX ; \
$0C:AB83 E8 INX ; |
$0C:AB84 88 DEY ; } X += 2, Y -= 2
$0C:AB85 88 DEY ; /
$0C:AB86 D0 EC BNE $AB74 ; Loop for 112 lines
$0C:AB88 E2 20 SEP #$20 ; 8-bit A
$0C:AB8A A9 13 LDA.B #$13 ; \
$0C:AB8C 8D 2E 21 STA.W $212E ; } Window mask main and sub screen = $13 (BG1, BG2, OBJ)
$0C:AB8F 8D 2F 21 STA.W $212F ; /
$0C:AB92 A9 22 LDA.B #$22 ; \
$0C:AB94 85 44 STA $44 ; } [$44] = $22 (color math window control mirror, probably)
$0C:AB96 A9 80 LDA.B #$80 ; \
$0C:AB98 8D 9F 0D STA.W $0D9F ; } Enable HDMA channel 7 (window table)
$0C:AB9B 60 RTS ; Return
;;; $AB9C..ABAB: Table: palette selection per scene phase ;;;
;; $0CAB9C: palette block offsets. $0CABA4: backdrop color index per phase. $0CABAB: block number per phase.
$0C:AB9C .db $00,$18,$30,$48,$60,$78,$90,$A8 ; Palette block offsets (24 bytes each) from $00:B0B0
$0C:ABA4 .db $06,$00,$00,$02,$05,$06,$00 ; Per-phase backdrop color index into $00:B0A0 (7 phases)
$0C:ABAB .db $03,$03,$07,$00,$01,$02,$00 ; Per-phase palette block number (7 phases)
;;; $ABB2: Load scene phase palette ;;;
;; Builds two palette-upload entries at $0682/$0690 (length $0C, CGRAM $02/$12, six colors each) from
;; $00:B0B0+block, and
;; sets color 0 in the palette buffer ($0701) from $00:B0A0. Parameters: [$1928]: scene phase.
;; Called by:
;; $0C:AB5F: Screen wipe update (window HDMA)
$0C:ABB2 E2 30 SEP #$30 ; 8-bit A and index
$0C:ABB4 A9 0C LDA.B #$0C ; \
$0C:ABB6 8D 82 06 STA.W $0682 ; |
$0C:ABB9 8D 90 06 STA.W $0690 ; \
$0C:ABBC A9 02 LDA.B #$02 ; } Palette upload entry 1: length $0C, CGRAM address $02
$0C:ABBE 8D 83 06 STA.W $0683 ; /
$0C:ABC1 A9 12 LDA.B #$12 ; |
$0C:ABC3 8D 91 06 STA.W $0691 ; } Palette upload entry 2: length $0C, CGRAM address $12
$0C:ABC6 C2 30 REP #$30 ; /
$0C:ABC8 AD 28 19 LDA.W $1928 ; Y = [$1928] phase
$0C:ABCB 29 FF 00 AND.W #$00FF ; ...
$0C:ABCE A8 TAY ; Y = phase
$0C:ABCF B9 A4 AB LDA.W $ABA4,Y ; \
$0C:ABD2 29 0F 00 AND.W #$000F ; |
$0C:ABD5 0A ASL ; } X = ([DATA_0CABA4+Y] & $F) * 2
$0C:ABD6 AA TAX ; /
$0C:ABD7 BF A0 B0 00 LDA.L Palettes?,X ; A = backdrop color word from $00:B0A0
$0C:ABDB 8D 01 07 STA.W $0701 ; Palette buffer color word [$0701]
$0C:ABDE A9 B0 B0 LDA.W #$B0B0 ; \
$0C:ABE1 85 00 STA $00 ; |
$0C:ABE3 B9 AB AB LDA.W $ABAB,Y ; |
$0C:ABE6 29 0F 00 AND.W #$000F ; |
$0C:ABE9 AA TAX ; |
$0C:ABEA BD 9C AB LDA.W $AB9C,X ; |
$0C:ABED 29 FF 00 AND.W #$00FF ; |
$0C:ABF0 18 CLC ; |
$0C:ABF1 65 00 ADC $00 ; } $00 = $B0B0 + [DATA_0CAB9C+[DATA_0CABAB+Y]]: source palette block
$0C:ABF3 85 00 STA $00 ; /
$0C:ABF5 64 02 STZ $02 ; $02 = 0: source bank 0
$0C:ABF7 A9 00 00 LDA.W #$0000 ; \
$0C:ABFA 85 04 STA $04 ; } $04 = 0: buffer offset
$0C:ABFC A9 01 00 LDA.W #$0001 ; \
$0C:ABFF 85 08 STA $08 ; } $08 = 1: two blocks
$0C:AC01 A6 04 LDX $04 ; X = buffer offset
$0C:AC03 A0 05 00 LDY.W #$0005 ; Y = 5: six colors per block
$0C:AC06 A7 00 LDA [$00] ; \
$0C:AC08 9D 84 06 STA.W $0684,X ; } Copy a color word [[$00]] into $0684+X
$0C:AC0B E6 00 INC $00 ; \
$0C:AC0D E6 00 INC $00 ; |
$0C:AC0F E8 INX ; } Source += 2, destination += 2
$0C:AC10 E8 INX ; /
$0C:AC11 88 DEY ; \
$0C:AC12 10 F2 BPL $AC06 ; } Next color until Y < 0
$0C:AC14 A5 04 LDA $04 ; \
$0C:AC16 18 CLC ; |
$0C:AC17 69 0E 00 ADC.W #$000E ; } Next block: $04 += $0E
$0C:AC1A 85 04 STA $04 ; /
$0C:AC1C C6 08 DEC $08 ; \
$0C:AC1E 10 E1 BPL $AC01 ; } Repeat for the second block
$0C:AC20 A9 00 00 LDA.W #$0000 ; \
$0C:AC23 9D 84 06 STA.W $0684,X ; } Terminate the upload table with 0
$0C:AC26 E2 30 SEP #$30 ; 8-bit A and index
$0C:AC28 60 RTS ; Return
;;; $AC29..AD51: Data: credits scene layer 1 object streams ;;;
;; 13 streams (one per credits scene, pointers at $0CAD58). Each: 5-byte level header (see
;; LEVEL_PIPELINE_NOTES), 3-byte objects, $FF end.
$0C:AC29 .db $E0,$00,$00,$00,$00,$26,$2B,$41 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 0 starts at +0
$0C:AC31 .db $0A,$F4,$10,$26,$3B,$51,$2B,$37 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC39 .db $00,$2C,$40,$3F,$FF,$00,$20,$05 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 1 starts at +5
$0C:AC41 .db $01,$00,$26,$3A,$57,$26,$4B,$54 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC49 .db $0C,$F3,$30,$2C,$38,$33,$2C,$49 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC51 .db $36,$FF,$40,$40,$05,$00,$00,$04 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 2 starts at +2
$0C:AC59 .db $92,$02,$26,$4B,$94,$28,$49,$71 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC61 .db $26,$3A,$1B,$27,$40,$53,$27,$34 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC69 .db $58,$28,$38,$57,$2B,$16,$10,$2D ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC71 .db $40,$27,$2D,$38,$25,$FF,$20,$C0 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 3 starts at +6
$0C:AC79 .db $08,$07,$07,$05,$96,$01,$23,$2C ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC81 .db $21,$23,$3C,$C1,$26,$3A,$60,$07 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC89 .db $6B,$90,$2B,$32,$47,$2B,$43,$40 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC91 .db $2B,$34,$48,$2D,$38,$27,$2D,$49 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AC99 .db $21,$2D,$3B,$28,$FF,$00,$20,$0A ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 4 starts at +5
$0C:ACA1 .db $01,$00,$23,$2C,$21,$23,$3C,$81 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:ACA9 .db $26,$3A,$50,$07,$6B,$40,$25,$23 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:ACB1 .db $10,$25,$34,$11,$27,$31,$40,$08 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:ACB9 .db $62,$31,$27,$34,$47,$27,$45,$40 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:ACC1 .db $27,$36,$48,$2C,$40,$3F,$FF,$C0 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 5 starts at +7
$0C:ACC9 .db $60,$03,$22,$03,$21,$26,$46,$6C ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:ACD1 .db $A6,$39,$64,$61,$12,$6A,$60,$55 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:ACD9 .db $FF,$80,$40,$04,$1A,$09,$60,$68 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 6 starts at +1
$0C:ACE1 .db $24,$65,$68,$14,$08,$0B,$7F,$09 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:ACE9 .db $08,$7F,$6C,$60,$33,$FF,$60,$40 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 7 starts at +6
$0C:ACF1 .db $07,$2C,$05,$65,$83,$09,$6A,$8A ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:ACF9 .db $02,$66,$94,$91,$66,$99,$91,$6B ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AD01 .db $9B,$71,$FF,$C0,$80,$01,$0B,$01 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 8 starts at +3
$0C:AD09 .db $60,$C8,$22,$63,$CD,$42,$64,$C1 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AD11 .db $24,$65,$C6,$21,$65,$CA,$22,$69 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AD19 .db $C3,$11,$6B,$CA,$24,$FF,$60,$A0 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 9 starts at +6
$0C:AD21 .db $01,$0B,$01,$60,$C3,$22,$64,$C9 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AD29 .db $23,$69,$C1,$42,$2A,$84,$3B,$FF ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AD31 .db $C0,$20,$01,$13,$01,$29,$C0,$0F ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 10 starts at +0
$0C:AD39 .db $2C,$A0,$3F,$FF,$A0,$60,$0C,$0B ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 11 starts at +4
$0C:AD41 .db $01,$28,$40,$76,$28,$37,$75,$29 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AD49 .db $A8,$61,$28,$3A,$73,$28,$4B,$74 ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end
$0C:AD51 .db $FF,$01,$60,$00,$20,$01,$FF ; Credits scene layer 1 data: 5-byte header, 3-byte objects, $FF end; scene 12 starts at +1
;;; $AD58..AD70: Pointer table: layer 1 stream per scene ;;;
;; 13 words, bank $0C. Read by $AD8C into $65/$66.
$0C:AD58 .db $29,$AC,$3E,$AC,$53,$AC,$77,$AC ; Pointers to layer 1 object streams per credits scene (13 words)
$0C:AD60 .db $9E,$AC,$C8,$AC,$DA,$AC,$EF,$AC ; Layer 1 stream pointers (continued)
$0C:AD68 .db $04,$AD,$1F,$AD,$31,$AD,$3D,$AD ; Layer 1 stream pointers (continued)
$0C:AD70 .db $52,$AD ; Layer 1 stream pointers (continued)
;;; $AD72..AD8A: Pointer table: layer 2 data per scene ;;;
;; 13 words, bank $0C. Read by $AD8C into $68/$69.
$0C:AD72 .db $82,$EC,$44,$DD,$59,$DF,$00,$D9 ; Pointers to layer 2 data per credits scene (13 words, bank $0C)
$0C:AD7A .db $54,$DE,$FE,$E8,$B9,$DA,$80,$EF ; Layer 2 pointers (continued)
$0C:AD82 .db $5A,$F4,$03,$E1,$5A,$F4,$03,$E1 ; Layer 2 pointers (continued)
$0C:AD8A .db $52,$AD ; Last scene: layer 2 stream is empty ($AD52)
;;; $AD8C: Set credits scene layer data pointers ;;;
;; Increments the scene number [$1DE9], then sets the layer 1 pointer $65-$67 (bank $0C) and layer 2 pointer
;; $68-$6A.
;; Layer 2 bank byte is $FF except for scene 12 ($0C). Called from the credits setup at $0095CA.
;; Called by:
;; $00:95CA: Cutscene, ending and game mode code (castle scenes, credits, game over) (CutsceneCastlePal)
$0C:AD8C 8B PHB ; \
$0C:AD8D 4B PHK ; } Data bank = program bank
$0C:AD8E AB PLB ; /
$0C:AD8F EE E9 1D INC.W $1DE9 ; Credits scene number [$1DE9] += 1
$0C:AD92 A2 FF LDX.B #$FF ; X = $FF: layer 2 bank byte for scenes 0-11
$0C:AD94 AD E9 1D LDA.W $1DE9 ; \
$0C:AD97 C9 0C CMP.B #$0C ; |
$0C:AD99 D0 02 BNE $AD9D ; } Scene 12 ($0C): layer 2 bank byte X = $0C
$0C:AD9B A2 0C LDX.B #$0C ; /
$0C:AD9D 0A ASL ; Y = scene * 2
$0C:AD9E A8 TAY
$0C:AD9F A9 0C LDA.B #$0C ; \
$0C:ADA1 85 67 STA $67 ; } $67 = $0C: layer 1 data bank
$0C:ADA3 86 6A STX $6A ; $6A = layer 2 data bank
$0C:ADA5 C2 20 REP #$20 ; 16-bit A
$0C:ADA7 B9 58 AD LDA.W $AD58,Y ; \
$0C:ADAA 85 65 STA $65 ; } $65/$66 = layer 1 pointer [DATA_0CAD58+Y]
$0C:ADAC B9 72 AD LDA.W $AD72,Y ; \
$0C:ADAF 85 68 STA $68 ; } $68/$69 = layer 2 pointer [DATA_0CAD72+Y]
$0C:ADB1 E2 20 SEP #$20 ; 8-bit A
$0C:ADB3 AB PLB ; Restore data bank
$0C:ADB4 6B RTL ; Return
;;; $ADB5..ADBD: Table: window edge per credits scene ;;;
;; 13 bytes, probably the window edge X written to HDMA table entries at $04A3 etc. (right edge = $88 -
;; value).
$0C:ADB5 .db $28,$28,$44,$28,$38,$20,$28,$20 ; Window edge per credits scene (13 bytes)
$0C:ADBD .db $08,$28,$7C,$68,$28 ; Window edge (continued)
;;; $ADC2..ADDA: Table: layer 2 Y position per scene ;;;
;; 13 words, copied to [$20] by the scene setup that follows this table.
$0C:ADC2 .db $00,$00,$88,$00,$E0,$00,$C0,$00 ; Layer 2 Y position per credits scene, written to [$20] (13 words)
$0C:ADCA .db $E8,$00,$00,$00,$A0,$00,$50,$00 ; Layer 2 Y positions (continued)
$0C:ADD2 .db $B0,$00,$E0,$00,$18,$00,$E0,$00 ; Layer 2 Y positions (continued)
$0C:ADDA .db $00,$00 ; Layer 2 Y positions (continued)
;;; $ADDC..ADF5: Pointer table: scene data in bank 0D ;;;
;; 13 words pointing into bank $0D (copied as VRAM stripe data into $7F837D until $FFFF).
$0C:ADDC .db $49 ; Pointers to credits scene data in bank $0D (13 words), scene 0
$0C:ADDD .db $FE,$4B,$FE,$5F,$FE,$71,$FE,$73 ; Bank $0D pointers (continued)
$0C:ADE5 .db $FE,$8F,$FE,$91,$FE,$93,$FE,$95 ; Bank $0D pointers (continued)
$0C:ADED .db $FE,$97,$FE,$99,$FE,$9B,$FE,$9D ; Bank $0D pointers (continued)
$0C:ADF5 .db $FE ; Last bank $0D pointer: $FE9D
;;; $ADF6: Ending enemy scene: set up and slide layers ;;;
;; Two routines for the ending enemy parade ([$1DE9] = scene 0 Lakitu ... 12 Bowser). $0CADF6 (JSL from game
;; mode $23) uploads the scene's enemy-name screen image
;; (ImagePointers entry 72 + scene), appends an extra image when [$1EEB] bit 7 is set (post-Special World
;; flag), sets the window HDMA band split
;; ($04A0/$04AA/$04B4 entries 2 and 3 = $ADB5[scene] and $88 minus that) and Layer 2 Y from $ADC2,
;; starts the layers off-screen and sets [$145B] = $FF hold time.
;; $0CAEAD (JSR from $93A5, game mode $25) runs each frame: Layer 1/3 move right 2 px, the opposite-
;; moving mirror ($1462/$146A) left 2 px, Layer 2 at 1 px; they pause
;; for [$145B] frames when they meet at 0, then slide out; then the game mode advances ($26 for Bowser, else
;; $22 to fade to the next enemy). Bowser (scene 12) does not slide, it just waits. Ends by jumping to
;; $B5BC.
;; Called by:
;; $00:95F6: Cutscene, ending and game mode code (castle scenes, credits, game over) (CutsceneCastlePal)
$0C:ADF6 8B PHB ; Save data bank
$0C:ADF7 4B PHK ; \
$0C:ADF8 AB PLB ; / Data bank = program bank ($0C)
$0C:ADF9 AD E9 1D LDA.W $1DE9 ; A = [$1DE9]: ending enemy scene (0 = Lakitu ... 12 = Bowser)
$0C:ADFC A8 TAY ; Y = scene
$0C:ADFD 0A ASL ; \
$0C:ADFE AA TAX ; / X = scene * 2 (index into the word tables)
$0C:ADFF 18 CLC ; \
$0C:AE00 6D E9 1D ADC.W $1DE9 ; |
$0C:AE03 18 CLC ; |
$0C:AE04 69 D8 ADC.B #$D8 ; |
$0C:AE06 85 12 STA $12 ; / [$12] = scene * 3 + $D8: ImagePointers entry 72 + scene (the enemy name screen image)
$0C:AE08 5A PHY ; Save scene
$0C:AE09 DA PHX ; Save scene * 2
$0C:AE0A 22 C8 84 00 JSL.L $84C8 ; Upload screen image [$12] to VRAM (LoadScrnImage)
$0C:AE0E AD EB 1E LDA.W $1EEB ; A = [$1EEB]
$0C:AE11 10 35 BPL $AE48 ; Bit 7 clear (Special World not completed): skip the extra image
$0C:AE13 AD E9 1D LDA.W $1DE9 ; \
$0C:AE16 0A ASL ; |
$0C:AE17 A8 TAY ; / Y = scene * 2
$0C:AE18 B9 DC AD LDA.W $ADDC,Y ; A = pointer low byte (word table $ADDC, one entry per scene)
$0C:AE1B 8D 00 00 STA.W $0000 ; [$00] = pointer low
$0C:AE1E B9 DD AD LDA.W $ADDD,Y ; A = pointer high byte
$0C:AE21 8D 01 00 STA.W $0001 ; [$01] = pointer high
$0C:AE24 A9 0D LDA.B #$0D ; \
$0C:AE26 8D 02 00 STA.W $0002 ; / [$02] = bank $0D: [$00] points at an extra screen image in bank $0D
$0C:AE29 A0 00 LDY.B #$00 ; Y = 0: source index
$0C:AE2B AF 7B 83 7F LDA.L $7F837B ; A = current length of the screen image buffer
$0C:AE2F AA TAX ; X = write index into the buffer at $7F837D
$0C:AE30 C2 20 REP #$20 ; A = 16-bit
$0C:AE32 B7 00 LDA [$00],Y ; \
$0C:AE34 9F 7D 83 7F STA.L $7F837D,X ; |
$0C:AE38 C8 INY ; |
$0C:AE39 C8 INY ; |
$0C:AE3A E8 INX ; |
$0C:AE3B E8 INX ; |
$0C:AE3C C9 FF FF CMP.W #$FFFF ; |
$0C:AE3F D0 EF BNE $AE30 ; / Copy the extra image onto the end of the buffer, word by word, up to a $FFFF word
$0C:AE41 8A TXA ; \
$0C:AE42 8F 7B 83 7F STA.L $7F837B ; / Store the new buffer length
$0C:AE46 E2 20 SEP #$20 ; A = 8-bit
$0C:AE48 FA PLX ; X = scene * 2
$0C:AE49 7A PLY ; Y = scene
$0C:AE4A B9 B5 AD LDA.W $ADB5,Y ; A = scanline count of the first window band for this scene ($ADB5)
$0C:AE4D 8D A3 04 STA.W $04A3 ; Window HDMA table 1 ($04A0): scanline count of entry 2
$0C:AE50 8D AD 04 STA.W $04AD ; Window HDMA table 2 ($04AA): scanline count of entry 2
$0C:AE53 8D B7 04 STA.W $04B7 ; Window HDMA table 3 ($04B4): scanline count of entry 2
$0C:AE56 A9 88 LDA.B #$88 ; \
$0C:AE58 38 SEC ; |
$0C:AE59 F9 B5 AD SBC.W $ADB5,Y ; / A = $88 - first band = remaining scanlines of the window area
$0C:AE5C 8D A6 04 STA.W $04A6 ; Window HDMA table 1: scanline count of entry 3
$0C:AE5F 8D B0 04 STA.W $04B0 ; Window HDMA table 2: scanline count of entry 3
$0C:AE62 8D BA 04 STA.W $04BA ; Window HDMA table 3: scanline count of entry 3
$0C:AE65 C2 20 REP #$20 ; A = 16-bit
$0C:AE67 BD C2 AD LDA.W $ADC2,X ; A = Layer 2 Y position for this scene (word table $ADC2)
$0C:AE6A 85 20 STA $20 ; [$20] = Layer 2 Y position
$0C:AE6C AD E9 1D LDA.W $1DE9 ; \
$0C:AE6F 29 FF 00 AND.W #$00FF ; |
$0C:AE72 C9 0C 00 CMP.W #$000C ; / Is the scene $0C (Bowser)?
$0C:AE75 D0 11 BNE $AE88 ; No: set up the sliding layers instead
$0C:AE77 64 1A STZ RAM_ScreenBndryXLo ; Layer 1 X = 0 (the Bowser scene does not slide)
$0C:AE79 64 1E STZ $1E ; Layer 2 X = 0
$0C:AE7B 64 22 STZ $22 ; Layer 3 X = 0
$0C:AE7D 9C 62 14 STZ.W $1462 ; Opposite-direction scroll X $1462 (used by sprites with prop bit 5) = 0
$0C:AE80 9C 66 14 STZ.W $1466 ; Layer 2 mirror X $1466 = 0
$0C:AE83 9C 6A 14 STZ.W $146A ; Mirror X $146A = 0
$0C:AE86 80 1B BRA $AEA3 ; Skip the sliding-layer setup
$0C:AE88 A9 00 FF LDA.W #$FF00 ; \
$0C:AE8B 85 1A STA RAM_ScreenBndryXLo ; / Layer 1 X = $FF00 (starts $100 pixels to the left)
$0C:AE8D 85 22 STA $22 ; Layer 3 X = $FF00
$0C:AE8F A9 00 01 LDA.W #$0100 ; \
$0C:AE92 8D 62 14 STA.W $1462 ; / Mirror X $1462 = $0100 (starts $100 pixels to the right, moves the other way)
$0C:AE95 8D 6A 14 STA.W $146A ; Mirror X $146A = $0100
$0C:AE98 A9 80 FF LDA.W #$FF80 ; \
$0C:AE9B 85 1E STA $1E ; / Layer 2 X = $FF80
$0C:AE9D A9 80 00 LDA.W #$0080 ; \
$0C:AEA0 8D 66 14 STA.W $1466 ; / Layer 2 mirror X $1466 = $0080
$0C:AEA3 A9 FF 00 LDA.W #$00FF ; \
$0C:AEA6 8D 5B 14 STA.W $145B ; / [$145B] = $00FF: hold time in frames once the layers have met
$0C:AEA9 E2 20 SEP #$20 ; A = 8-bit
$0C:AEAB AB PLB ; Restore data bank
$0C:AEAC 6B RTL ; Return
$0C:AEAD E2 20 SEP #$20 ; A = 8-bit. Per-frame update of the enemy scene (game mode $25)
$0C:AEAF AD E9 1D LDA.W $1DE9 ; \
$0C:AEB2 C9 0C CMP.B #$0C ; / Is the scene $0C (Bowser)?
$0C:AEB4 D0 06 BNE $AEBC ; No: slide the layers
$0C:AEB6 CE 5B 14 DEC.W $145B ; Bowser: only count down the hold timer
$0C:AEB9 4C F8 AE JMP.W $AEF8 ; Go and check whether the scene is over
$0C:AEBC C2 20 REP #$20 ; A = 16-bit
$0C:AEBE A5 1A LDA RAM_ScreenBndryXLo ; \
$0C:AEC0 CD 62 14 CMP.W $1462 ; / Has Layer 1 X reached the opposite-moving X (layers met at 0)?
$0C:AEC3 D0 0B BNE $AED0 ; No: keep sliding
$0C:AEC5 AD 5B 14 LDA.W $145B ; \
$0C:AEC8 F0 06 BEQ $AED0 ; / Hold timer already at 0: slide on
$0C:AECA CE 5B 14 DEC.W $145B ; Layers met: count down the hold timer
$0C:AECD 4C 0C AF JMP.W $AF0C ; Skip the sliding this frame
$0C:AED0 A5 1A LDA RAM_ScreenBndryXLo ; \
$0C:AED2 18 CLC ; |
$0C:AED3 69 02 00 ADC.W #$0002 ; |
$0C:AED6 85 1A STA RAM_ScreenBndryXLo ; |
$0C:AED8 85 22 STA $22 ; / Layer 1 X += 2; Layer 3 X = Layer 1 X
$0C:AEDA AD 62 14 LDA.W $1462 ; \
$0C:AEDD 38 SEC ; |
$0C:AEDE E9 02 00 SBC.W #$0002 ; |
$0C:AEE1 8D 62 14 STA.W $1462 ; |
$0C:AEE4 8D 6A 14 STA.W $146A ; / Mirror X $1462 -= 2; $146A = $1462 (moves the opposite way)
$0C:AEE7 E6 1E INC $1E ; Layer 2 X += 1
$0C:AEE9 CE 66 14 DEC.W $1466 ; Layer 2 mirror X $1466 -= 1
$0C:AEEC A5 1A LDA RAM_ScreenBndryXLo ; \
$0C:AEEE 2D 62 14 AND.W $1462 ; |
$0C:AEF1 29 FF 00 AND.W #$00FF ; / Low byte of ([$1A] AND [$1462]) is 0 only when both are at an end of travel (0 or $100)
$0C:AEF4 E2 20 SEP #$20 ; A = 8-bit
$0C:AEF6 D0 14 BNE $AF0C ; Not at an end of travel: keep going
$0C:AEF8 AD 5B 14 LDA.W $145B ; \
$0C:AEFB D0 0F BNE $AF0C ; / Hold timer still running: wait
$0C:AEFD EE 00 01 INC.W RAM_GameMode ; Next game mode (normally $25 to $26: fade to THE END)
$0C:AF00 AD E9 1D LDA.W $1DE9 ; \
$0C:AF03 C9 0C CMP.B #$0C ; |
$0C:AF05 F0 05 BEQ $AF0C ; / Bowser scene: leave game mode at $26
$0C:AF07 A9 22 LDA.B #$22 ; \
$0C:AF09 8D 00 01 STA.W RAM_GameMode ; / Any other scene: game mode $22 (fade to the next enemy)
$0C:AF0C E2 20 SEP #$20 ; A = 8-bit
$0C:AF0E 4C BC B5 JMP.W $B5BC ; Draw this scene's background sprites
;;; $AF11..B59C: Ending scene background sprite lists ;;;
;; 13 FF-terminated lists (one per ending enemy scene) of 4-byte entries: X, Y, tile, properties. $B5A2
;; gives each scene's list offset from $0CAF11.
;; Properties: bit 7/6 = flips, bits 3-1 = palette, bit 0 = name table, bit 4 = large (16x16) size, bit 5 =
;; scroll with [$1462] instead of [$1A].
;; Bits 4 and 5 are replaced by the priority bits when drawn (see $B5BC). Rows below show 's<scene>: x y
;; tile prop' for entries starting in the row.
$0C:AF11 .db $29 ; Scene 4 (Dino-Rhino) sprite 0: X = $29
$0C:AF12 .db $3C ; Y = $3C
$0C:AF13 .db $C2 ; Tile = $C2
$0C:AF14 .db $5F,$39,$3C,$C0,$5F,$5B,$34,$88 ; s4: x39 y3C tC0 p5F; s4: x5B y34 t88 p59
$0C:AF1C .db $59,$5B,$40,$8A,$55,$29,$4C,$E2 ; s4: x5B y40 t8A p55; s4: x29 y4C tE2 p5F
$0C:AF24 .db $5F,$39,$4C,$E0,$5F,$5B,$4C,$8C ; s4: x39 y4C tE0 p5F; s4: x5B y4C t8C p55
$0C:AF2C .db $55,$5B,$58,$8E,$55,$5C,$60,$C6 ; s4: x5B y58 t8E p55; s4: x5C y60 tC6 p1F
$0C:AF34 .db $1F,$60,$A0,$82,$34,$60,$B0,$A2 ; s4: x60 yA0 t82 p34; s4: x60 yB0 tA2 p34
$0C:AF3C .db $34,$A0,$B0,$A4,$38,$80,$A0,$82 ; s4: xA0 yB0 tA4 p38; s4: x80 yA0 t82 p36
$0C:AF44 .db $36,$C0,$A0,$82,$78,$80,$B0,$A0 ; s4: xC0 yA0 t82 p78; s4: x80 yB0 tA0 p36
$0C:AF4C .db $36,$C0,$B0,$A2,$7A,$A0,$A0,$84 ; s4: xC0 yB0 tA2 p7A; s4: xA0 yA0 t84 p38
$0C:AF54 .db $38,$FF,$92,$A3,$A2,$35,$A2,$A3 ; End of scene 4 list ($FF); s5: x92 yA3 tA2 p35; s5: xA2 yA3 tA4 p35
$0C:AF5C .db $A4,$35,$80,$A9,$D7,$25,$86,$AC ; s5: x80 yA9 tD7 p25; s5: x86 yAC tD6 p25
$0C:AF64 .db $D6,$25,$B5,$AF,$C7,$25,$BD,$B2 ; s5: xB5 yAF tC7 p25; s5: xBD yB2 tC6 p25
$0C:AF6C .db $C6,$25,$92,$B3,$E6,$35,$A2,$B3 ; s5: x92 yB3 tE6 p35; s5: xA2 yB3 tC8 p35
$0C:AF74 .db $C8,$35,$B2,$B3,$A6,$35,$63,$B4 ; s5: xB2 yB3 tA6 p35; s5: x63 yB4 tE0 p33
$0C:AF7C .db $E0,$33,$73,$B4,$E0,$33,$83,$B4 ; s5: x73 yB4 tE0 p33; s5: x83 yB4 tE0 p33
$0C:AF84 .db $E0,$33,$93,$B4,$E0,$33,$17,$2F ; s5: x93 yB4 tE0 p33; s5: x17 y2F t8C p19
$0C:AF8C .db $8C,$19,$37,$37,$8E,$19,$3F,$47 ; s5: x37 y37 t8E p19; s5: x3F y47 tAA p19
$0C:AF94 .db $AA,$19,$1F,$5F,$EC,$99,$38,$8F ; s5: x1F y5F tEC p99; s5: x38 y8F t80 p3D
$0C:AF9C .db $80,$3D,$50,$8F,$82,$7D,$90,$3C ; s5: x50 y8F t82 p7D; s5: x90 y3C tAE p1B
$0C:AFA4 .db $AE,$1B,$A6,$45,$AE,$1B,$78,$54 ; s5: xA6 y45 tAE p1B; s5: x78 y54 tC0 p1B
$0C:AFAC .db $C0,$1B,$FF,$43,$1E,$82,$5D,$30 ; End of scene 5 list ($FF); s8: x43 y1E t82 p5D; s8: x30 y22 t64 p5D
$0C:AFB4 .db $22,$64,$5D,$72,$23,$0A,$15,$27 ; s8: x72 y23 t0A p15; s8: x27 y30 t66 p5D
$0C:AFBC .db $30,$66,$5D,$AD,$40,$AA,$1D,$84 ; s8: xAD y40 tAA p1D; s8: x84 y6A t8E p33
$0C:AFC4 .db $6A,$8E,$33,$8C,$6A,$8E,$73,$84 ; s8: x8C y6A t8E p73; s8: x84 y7A tAE p33
$0C:AFCC .db $7A,$AE,$33,$8C,$7A,$AE,$73,$BC ; s8: x8C y7A tAE p73; s8: xBC y92 tA2 p23
$0C:AFD4 .db $92,$A2,$23,$C4,$92,$A2,$63,$BC ; s8: xC4 y92 tA2 p63; s8: xBC y9A tB2 p23
$0C:AFDC .db $9A,$B2,$23,$C4,$9A,$B2,$63,$48 ; s8: xC4 y9A tB2 p63; s8: x48 y93 t0C p35
$0C:AFE4 .db $93,$0C,$35,$58,$93,$0E,$35,$50 ; s8: x58 y93 t0E p35; s8: x50 y9A t09 p25
$0C:AFEC .db $9A,$09,$25,$48,$A3,$0E,$F5,$58 ; s8: x48 yA3 t0E pF5; s8: x58 yA3 t0C pF5
$0C:AFF4 .db $A3,$0C,$F5,$FF,$6B,$67,$41,$5B ; End of scene 8 list ($FF); s11: x6B y67 t41 p5B
$0C:AFFC .db $73,$67,$40,$5B,$A6,$67,$40,$1B ; s11: x73 y67 t40 p5B; s11: xA6 y67 t40 p1B
$0C:B004 .db $AE,$67,$41,$1B,$57,$6E,$72,$0B ; s11: xAE y67 t41 p1B; s11: x57 y6E t72 p0B
$0C:B00C .db $66,$6E,$71,$4B,$BB,$6E,$70,$0B ; s11: x66 y6E t71 p4B; s11: xBB y6E t70 p0B
$0C:B014 .db $42,$6F,$00,$1B,$4A,$6F,$01,$1B ; s11: x42 y6F t00 p1B; s11: x4A y6F t01 p1B
$0C:B01C .db $6B,$6F,$51,$5B,$AE,$6F,$0A,$1B ; s11: x6B y6F t51 p5B; s11: xAE y6F t0A p1B
$0C:B024 .db $7B,$77,$60,$4B,$A6,$77,$60,$0B ; s11: x7B y77 t60 p4B; s11: xA6 y77 t60 p0B
$0C:B02C .db $FF,$20,$37,$6D,$57,$38,$37,$5A ; End of scene 11 list ($FF); s1: x20 y37 t6D p57; s1: x38 y37 t5A p07
$0C:B034 .db $07,$40,$37,$4A,$07,$30,$3F,$46 ; s1: x40 y37 t4A p07; s1: x30 y3F t46 p17
$0C:B03C .db $17,$40,$3F,$48,$17,$20,$47,$C6 ; s1: x40 y3F t48 p17; s1: x20 y47 tC6 p56
$0C:B044 .db $56,$50,$47,$C6,$16,$30,$4F,$2E ; s1: x50 y47 tC6 p16; s1: x30 y4F t2E p12
$0C:B04C .db $12,$40,$4F,$2E,$12,$90,$9C,$B6 ; s1: x40 y4F t2E p12; s1: x90 y9C tB6 p29
$0C:B054 .db $29,$99,$9C,$B6,$29,$86,$A0,$B6 ; s1: x99 y9C tB6 p29; s1: x86 yA0 tB6 p29
$0C:B05C .db $29,$A3,$A0,$B6,$29,$CB,$A4,$06 ; s1: xA3 yA0 tB6 p29; s1: xCB yA4 t06 p77
$0C:B064 .db $77,$C0,$A7,$1D,$67,$C8,$A7,$1C ; s1: xC0 yA7 t1D p67; s1: xC8 yA7 t1C p67
$0C:B06C .db $67,$88,$AF,$CE,$3B,$90,$AF,$E2 ; s1: x88 yAF tCE p3B; s1: x90 yAF tE2 p29
$0C:B074 .db $29,$98,$AF,$E3,$29,$98,$AF,$CE ; s1: x98 yAF tE3 p29; s1: x98 yAF tCE p7B
$0C:B07C .db $7B,$C0,$AF,$21,$77,$C8,$AF,$20 ; s1: xC0 yAF t21 p77; s1: xC8 yAF t20 p77
$0C:B084 .db $77,$38,$8F,$AE,$38,$38,$9F,$C5 ; s1: x38 y8F tAE p38; s1: x38 y9F tC5 p2A
$0C:B08C .db $2A,$40,$9F,$C5,$6A,$8C,$1F,$E0 ; s1: x40 y9F tC5 p6A; s1: x8C y1F tE0 p1B
$0C:B094 .db $1B,$94,$22,$E4,$09,$9C,$22,$E5 ; s1: x94 y22 tE4 p09; s1: x9C y22 tE5 p09
$0C:B09C .db $09,$9C,$27,$F2,$0B,$B4,$27,$E0 ; s1: x9C y27 tF2 p0B; s1: xB4 y27 tE0 p1B
$0C:B0A4 .db $1B,$BC,$2A,$F4,$05,$C4,$2A,$F5 ; s1: xBC y2A tF4 p05; s1: xC4 y2A tF5 p05
$0C:B0AC .db $05,$C4,$2F,$F2,$09,$94,$3F,$E0 ; s1: xC4 y2F tF2 p09; s1: x94 y3F tE0 p1B
$0C:B0B4 .db $1B,$9C,$42,$E4,$09,$A4,$42,$E5 ; s1: x9C y42 tE4 p09; s1: xA4 y42 tE5 p09
$0C:B0BC .db $09,$A4,$47,$F2,$0B,$B4,$4F,$E2 ; s1: xA4 y47 tF2 p0B; s1: xB4 y4F tE2 p18
$0C:B0C4 .db $18,$BC,$4F,$C9,$05,$BC,$57,$D9 ; s1: xBC y4F tC9 p05; s1: xBC y57 tD9 p05
$0C:B0CC .db $05,$C4,$57,$C0,$05,$FF,$2C,$27 ; s1: xC4 y57 tC0 p05; End of scene 1 list ($FF); s2: x2C y27 tEE p15
$0C:B0D4 .db $EE,$15,$28,$2F,$C5,$15,$30,$2F ; s2: x28 y2F tC5 p15; s2: x30 y2F tC6 p15
$0C:B0DC .db $C6,$15,$20,$3F,$2E,$10,$30,$3F ; s2: x20 y3F t2E p10; s2: x30 y3F t2E p10
$0C:B0E4 .db $2E,$10,$40,$3F,$2E,$10,$30,$4F ; s2: x40 y3F t2E p10; s2: x30 y4F tCC p15
$0C:B0EC .db $CC,$15,$20,$5F,$CC,$15,$30,$5F ; s2: x20 y5F tCC p15; s2: x30 y5F tEC p15
$0C:B0F4 .db $EC,$15,$40,$5F,$CC,$15,$89,$3F ; s2: x40 y5F tCC p15; s2: x89 y3F t8A p15
$0C:B0FC .db $8A,$15,$BA,$43,$86,$11,$CB,$47 ; s2: xBA y43 t86 p11; s2: xCB y47 t3D p00
$0C:B104 .db $3D,$00,$AE,$48,$3D,$00,$8A,$4F ; s2: xAE y48 t3D p00; s2: x8A y4F tE8 p15
$0C:B10C .db $E8,$15,$8A,$4F,$E8,$15,$D6,$4F ; s2: x8A y4F tE8 p15; s2: xD6 y4F t84 p51
$0C:B114 .db $84,$51,$B7,$54,$3D,$00,$C8,$55 ; s2: xB7 y54 t3D p00; s2: xC8 y55 t3D p00
$0C:B11C .db $3D,$00,$89,$5F,$E8,$15,$89,$5F ; s2: x89 y5F tE8 p15; s2: x89 y5F tE8 p15
$0C:B124 .db $E8,$15,$8A,$6F,$E8,$15,$74,$AF ; s2: x8A y6F tE8 p15; s2: x74 yAF t62 p30
$0C:B12C .db $62,$30,$84,$AF,$A6,$72,$FF,$80 ; s2: x84 yAF tA6 p72; End of scene 2 list ($FF); s3: x80 y8F t80 p33
$0C:B134 .db $8F,$80,$33,$90,$8F,$82,$33,$A0 ; s3: x90 y8F t82 p33; s3: xA0 y8F t84 p33
$0C:B13C .db $8F,$84,$33,$B0,$8F,$86,$33,$80 ; s3: xB0 y8F t86 p33; s3: x80 y9F tA0 p33
$0C:B144 .db $9F,$A0,$33,$90,$9F,$88,$33,$A0 ; s3: x90 y9F t88 p33; s3: xA0 y9F tCE p33
$0C:B14C .db $9F,$CE,$33,$B0,$9F,$EE,$33,$80 ; s3: xB0 y9F tEE p33; s3: x80 yAF tC0 p33
$0C:B154 .db $AF,$C0,$33,$90,$AF,$C2,$33,$A0 ; s3: x90 yAF tC2 p33; s3: xA0 yAF tCE p33
$0C:B15C .db $AF,$CE,$33,$B0,$AF,$EE,$33,$80 ; s3: xB0 yAF tEE p33; s3: x80 yBF t8E p33
$0C:B164 .db $BF,$8E,$33,$90,$BF,$AE,$33,$A0 ; s3: x90 yBF tAE p33; s3: xA0 yBF t84 pB3
$0C:B16C .db $BF,$84,$B3,$B0,$BF,$86,$B3,$6C ; s3: xB0 yBF t86 pB3; s3: x6C y2F t8A p57
$0C:B174 .db $2F,$8A,$57,$67,$3F,$AA,$57,$A4 ; s3: x67 y3F tAA p57; s3: xA4 y4F t66 p00
$0C:B17C .db $4F,$66,$00,$A0,$53,$64,$00,$8C ; s3: xA0 y53 t64 p00; s3: x8C y57 tA8 p17
$0C:B184 .db $57,$A8,$17,$9C,$57,$62,$00,$30 ; s3: x9C y57 t62 p00; s3: x30 y8F tCC p71
$0C:B18C .db $8F,$CC,$71,$40,$8F,$CA,$71,$30 ; s3: x40 y8F tCA p71; s3: x30 y9F tEC p71
$0C:B194 .db $9F,$EC,$71,$40,$9F,$EA,$71,$FF ; s3: x40 y9F tEA p71; End of scene 3 list ($FF)
$0C:B19C .db $30,$27,$EC,$1B,$28,$37,$EC,$1B ; s6: x30 y27 tEC p1B; s6: x28 y37 tEC p1B
$0C:B1A4 .db $50,$40,$C0,$5D,$60,$40,$86,$5D ; s6: x50 y40 tC0 p5D; s6: x60 y40 t86 p5D
$0C:B1AC .db $30,$47,$EC,$1B,$50,$50,$C2,$5D ; s6: x30 y47 tEC p1B; s6: x50 y50 tC2 p5D
$0C:B1B4 .db $60,$50,$A6,$5D,$98,$2F,$C8,$17 ; s6: x60 y50 tA6 p5D; s6: x98 y2F tC8 p17
$0C:B1BC .db $A8,$2F,$C8,$57,$A0,$37,$CA,$17 ; s6: xA8 y2F tC8 p57; s6: xA0 y37 tCA p17
$0C:B1C4 .db $98,$3F,$C8,$97,$A8,$3F,$C8,$D7 ; s6: x98 y3F tC8 p97; s6: xA8 y3F tC8 pD7
$0C:B1CC .db $44,$8F,$AC,$37,$22,$94,$F1,$2B ; s6: x44 y8F tAC p37; s6: x22 y94 tF1 p2B
$0C:B1D4 .db $20,$9C,$F0,$2B,$25,$A4,$E1,$2B ; s6: x20 y9C tF0 p2B; s6: x25 yA4 tE1 p2B
$0C:B1DC .db $4C,$A7,$AE,$77,$24,$AB,$E0,$2B ; s6: x4C yA7 tAE p77; s6: x24 yAB tE0 p2B
$0C:B1E4 .db $24,$AF,$8C,$37,$B2,$A7,$A0,$77 ; s6: x24 yAF t8C p37; s6: xB2 yA7 tA0 p77
$0C:B1EC .db $C2,$A7,$80,$77,$BA,$9E,$84,$77 ; s6: xC2 yA7 t80 p77; s6: xBA y9E t84 p77
$0C:B1F4 .db $88,$AF,$A4,$77,$88,$BF,$66,$76 ; s6: x88 yAF tA4 p77; s6: x88 yBF t66 p76
$0C:B1FC .db $90,$BF,$64,$76,$98,$BF,$62,$76 ; s6: x90 yBF t64 p76; s6: x98 yBF t62 p76
$0C:B204 .db $A8,$BF,$82,$77,$B8,$BF,$80,$77 ; s6: xA8 yBF t82 p77; s6: xB8 yBF t80 p77
$0C:B20C .db $FF,$28,$26,$E6,$57,$20,$36,$C2 ; End of scene 6 list ($FF); s0: x28 y26 tE6 p57; s0: x20 y36 tC2 p51
$0C:B214 .db $51,$48,$36,$E6,$17,$51,$45,$E8 ; s0: x48 y36 tE6 p17; s0: x51 y45 tE8 p1B
$0C:B21C .db $1B,$A8,$4A,$60,$14,$B0,$4A,$60 ; s0: xA8 y4A t60 p14; s0: xB0 y4A t60 p14
$0C:B224 .db $14,$AC,$3E,$A8,$1B,$AA,$4E,$60 ; s0: xAC y3E tA8 p1B; s0: xAA y4E t60 p14
$0C:B22C .db $14,$AE,$4E,$60,$14,$AF,$51,$4D ; s0: xAE y4E t60 p14; s0: xAF y51 t4D p09
$0C:B234 .db $09,$9F,$33,$84,$07,$A7,$33,$84 ; s0: x9F y33 t84 p07; s0: xA7 y33 t84 p47
$0C:B23C .db $47,$9F,$3B,$84,$87,$A7,$3B,$84 ; s0: x9F y3B t84 p87; s0: xA7 y3B t84 pC7
$0C:B244 .db $C7,$B7,$2B,$60,$54,$BF,$2B,$60 ; s0: xB7 y2B t60 p54; s0: xBF y2B t60 p54
$0C:B24C .db $54,$BB,$1F,$EC,$5B,$C9,$21,$AA ; s0: xBB y1F tEC p5B; s0: xC9 y21 tAA p55
$0C:B254 .db $55,$B9,$2F,$60,$54,$BD,$2F,$60 ; s0: xB9 y2F t60 p54; s0: xBD y2F t60 p54
$0C:B25C .db $54,$C0,$32,$4D,$49,$D9,$21,$89 ; s0: xC0 y32 t4D p49; s0: xD9 y21 t89 p49
$0C:B264 .db $49,$D9,$29,$89,$49,$D9,$31,$89 ; s0: xD9 y29 t89 p49; s0: xD9 y31 t89 p49
$0C:B26C .db $49,$D9,$39,$89,$49,$D9,$41,$89 ; s0: xD9 y39 t89 p49; s0: xD9 y41 t89 p49
$0C:B274 .db $49,$D9,$49,$89,$49,$D9,$51,$89 ; s0: xD9 y49 t89 p49; s0: xD9 y51 t89 p49
$0C:B27C .db $49,$D9,$59,$89,$49,$D1,$61,$24 ; s0: xD9 y59 t89 p49; s0: xD1 y61 t24 p5A
$0C:B284 .db $5A,$48,$8F,$82,$79,$7F,$AE,$CC ; s0: x48 y8F t82 p79; s0: x7F yAE tCC p35
$0C:B28C .db $35,$B8,$AF,$C6,$35,$B0,$AF,$C4 ; s0: xB8 yAF tC6 p35; s0: xB0 yAF tC4 p35
$0C:B294 .db $35,$A8,$AE,$C8,$35,$A0,$AF,$C6 ; s0: xA8 yAE tC8 p35; s0: xA0 yAF tC6 p35
$0C:B29C .db $35,$98,$AF,$8C,$35,$9E,$A7,$98 ; s0: x98 yAF t8C p35; s0: x9E yA7 t98 p2B
$0C:B2A4 .db $2B,$FF,$41,$56,$8C,$1F,$46,$46 ; End of scene 0 list ($FF); s7: x41 y56 t8C p1F; s7: x46 y46 tAE p1F
$0C:B2AC .db $AE,$1F,$50,$36,$88,$1F,$5C,$29 ; s7: x50 y36 t88 p1F; s7: x5C y29 tA8 p1F
$0C:B2B4 .db $A8,$1F,$AB,$50,$60,$54,$B5,$50 ; s7: xAB y50 t60 p54; s7: xB5 y50 t60 p54
$0C:B2BC .db $60,$54,$B0,$45,$64,$5D,$BE,$48 ; s7: xB0 y45 t64 p5D; s7: xBE y48 t8A p59
$0C:B2C4 .db $8A,$59,$AD,$54,$60,$54,$B3,$54 ; s7: xAD y54 t60 p54; s7: xB3 y54 t60 p54
$0C:B2CC .db $60,$54,$C6,$58,$AC,$5D,$C6,$68 ; s7: xC6 y58 tAC p5D; s7: xC6 y68 tAC p5D
$0C:B2D4 .db $AC,$5D,$C6,$7C,$AC,$7D,$C6,$8A ; s7: xC6 y7C tAC p7D; s7: xC6 y8A tCE p77
$0C:B2DC .db $CE,$77,$B2,$90,$6A,$3D,$A0,$8A ; s7: xB2 y90 t6A p3D; s7: xA0 y8A tED p3D
$0C:B2E4 .db $ED,$3D,$8E,$8F,$6A,$3D,$22,$95 ; s7: x8E y8F t6A p3D; s7: x22 y95 t86 p7D
$0C:B2EC .db $86,$7D,$32,$95,$84,$7D,$42,$95 ; s7: x32 y95 t84 p7D; s7: x42 y95 t82 p7D
$0C:B2F4 .db $82,$7D,$52,$95,$80,$7D,$22,$A5 ; s7: x52 y95 t80 p7D; s7: x22 yA5 tA6 p7D
$0C:B2FC .db $A6,$7D,$32,$A5,$A4,$7D,$42,$A5 ; s7: x32 yA5 tA4 p7D; s7: x42 yA5 tA2 p7D
$0C:B304 .db $A2,$7D,$59,$A5,$E8,$7D,$52,$A5 ; s7: x59 yA5 tE8 p7D; s7: x52 yA5 tA0 p7D
$0C:B30C .db $A0,$7D,$22,$B5,$C6,$7D,$32,$B5 ; s7: x22 yB5 tC6 p7D; s7: x32 yB5 tC4 p7D
$0C:B314 .db $C4,$7D,$42,$B5,$A2,$7D,$52,$B5 ; s7: x42 yB5 tA2 p7D; s7: x52 yB5 tA0 pFD
$0C:B31C .db $A0,$FD,$22,$C5,$E6,$7D,$32,$C5 ; s7: x22 yC5 tE6 p7D; s7: x32 yC5 tE4 p7D
$0C:B324 .db $E4,$7D,$42,$C5,$82,$FD,$52,$C5 ; s7: x42 yC5 t82 pFD; s7: x52 yC5 t80 pFD
$0C:B32C .db $80,$FD,$30,$A6,$E8,$3D,$4B,$A3 ; s7: x30 yA6 tE8 p3D; s7: x4B yA3 tC0 p7D
$0C:B334 .db $C0,$7D,$4B,$B3,$E0,$7D,$FF,$5C ; s7: x4B yB3 tE0 p7D; End of scene 7 list ($FF); s9: x5C y47 tEA p13
$0C:B33C .db $47,$EA,$13,$6C,$47,$EA,$53,$5C ; s9: x6C y47 tEA p53; s9: x5C y57 tEA p93
$0C:B344 .db $57,$EA,$93,$6C,$57,$EA,$D3,$54 ; s9: x6C y57 tEA pD3; s9: x54 y3F tE8 p13
$0C:B34C .db $3F,$E8,$13,$49,$34,$E8,$13,$3E ; s9: x49 y34 tE8 p13; s9: x3E y29 tE8 p13
$0C:B354 .db $29,$E8,$13,$7B,$2E,$6C,$13,$8B ; s9: x7B y2E t6C p13; s9: x8B y2E t6C p53
$0C:B35C .db $2E,$6C,$53,$7B,$3E,$6C,$93,$8B ; s9: x7B y3E t6C p93; s9: x8B y3E t6C pD3
$0C:B364 .db $3E,$6C,$D3,$70,$A7,$A8,$3D,$80 ; s9: x70 yA7 tA8 p3D; s9: x80 yA7 tA3 p2D
$0C:B36C .db $A7,$A3,$2D,$80,$AF,$A3,$AD,$A8 ; s9: x80 yAF tA3 pAD; s9: xA8 yAC tA6 p3D
$0C:B374 .db $AC,$A6,$3D,$B8,$AC,$A3,$2D,$B8 ; s9: xB8 yAC tA3 p2D; s9: xB8 yB4 tA3 pAD
$0C:B37C .db $B4,$A3,$AD,$50,$AF,$A6,$3D,$60 ; s9: x50 yAF tA6 p3D; s9: x60 yAF tA3 p2D
$0C:B384 .db $AF,$A3,$2D,$60,$B7,$A3,$AD,$86 ; s9: x60 yB7 tA3 pAD; s9: x86 yAF tA6 p3D
$0C:B38C .db $AF,$A6,$3D,$96,$AF,$B3,$2D,$96 ; s9: x96 yAF tB3 p2D; s9: x96 yB7 tB3 pAD
$0C:B394 .db $B7,$B3,$AD,$78,$BF,$A6,$3D,$88 ; s9: x78 yBF tA6 p3D; s9: x88 yBF tB3 p2D
$0C:B39C .db $BF,$B3,$2D,$88,$C7,$B3,$AD,$FF ; s9: x88 yC7 tB3 pAD; End of scene 9 list ($FF)
$0C:B3A4 .db $70,$1E,$44,$1F,$80,$1E,$46,$1F ; s10: x70 y1E t44 p1F; s10: x80 y1E t46 p1F
$0C:B3AC .db $60,$2E,$26,$D5,$70,$2E,$64,$1F ; s10: x60 y2E t26 pD5; s10: x70 y2E t64 p1F
$0C:B3B4 .db $80,$2E,$66,$1F,$70,$3E,$4E,$11 ; s10: x80 y2E t66 p1F; s10: x70 y3E t4E p11
$0C:B3BC .db $80,$3E,$4E,$51,$48,$3F,$40,$1F ; s10: x80 y3E t4E p51; s10: x48 y3F t40 p1F
$0C:B3C4 .db $58,$3F,$42,$1F,$98,$3F,$42,$5F ; s10: x58 y3F t42 p1F; s10: x98 y3F t42 p5F
$0C:B3CC .db $A8,$3F,$40,$5F,$48,$4F,$60,$1F ; s10: xA8 y3F t40 p5F; s10: x48 y4F t60 p1F
$0C:B3D4 .db $58,$4F,$62,$1F,$98,$4F,$62,$5F ; s10: x58 y4F t62 p1F; s10: x98 y4F t62 p5F
$0C:B3DC .db $A8,$4F,$60,$5F,$48,$5F,$4E,$11 ; s10: xA8 y4F t60 p5F; s10: x48 y5F t4E p11
$0C:B3E4 .db $58,$5F,$4E,$51,$98,$5F,$4E,$11 ; s10: x58 y5F t4E p51; s10: x98 y5F t4E p11
$0C:B3EC .db $A8,$5F,$4E,$51,$70,$66,$46,$5F ; s10: xA8 y5F t4E p51; s10: x70 y66 t46 p5F
$0C:B3F4 .db $80,$66,$44,$5F,$70,$76,$66,$5F ; s10: x80 y66 t44 p5F; s10: x70 y76 t66 p5F
$0C:B3FC .db $80,$76,$64,$5F,$70,$86,$4E,$11 ; s10: x80 y76 t64 p5F; s10: x70 y86 t4E p11
$0C:B404 .db $80,$86,$4E,$51,$A0,$8E,$26,$15 ; s10: x80 y86 t4E p51; s10: xA0 y8E t26 p15
$0C:B40C .db $FF,$6C,$1A,$48,$10,$7C,$1A,$4A ; End of scene 10 list ($FF); s12: x6C y1A t48 p10; s12: x7C y1A t4A p10
$0C:B414 .db $10,$8C,$22,$1C,$00,$6C,$2A,$68 ; s12: x8C y22 t1C p00; s12: x6C y2A t68 p10
$0C:B41C .db $10,$7C,$2A,$6A,$10,$8C,$2A,$2C ; s12: x7C y2A t6A p10; s12: x8C y2A t2C p10
$0C:B424 .db $10,$64,$3A,$08,$00,$6C,$3A,$09 ; s12: x64 y3A t08 p00; s12: x6C y3A t09 p00
$0C:B42C .db $00,$74,$3A,$0A,$00,$7C,$3A,$0B ; s12: x74 y3A t0A p00; s12: x7C y3A t0B p00
$0C:B434 .db $00,$84,$3A,$0C,$00,$8C,$3A,$0D ; s12: x84 y3A t0C p00; s12: x8C y3A t0D p00
$0C:B43C .db $00,$94,$3A,$0E,$00,$9C,$3A,$0F ; s12: x94 y3A t0E p00; s12: x9C y3A t0F p00
$0C:B444 .db $00,$64,$42,$40,$10,$74,$42,$41 ; s12: x64 y42 t40 p10; s12: x74 y42 t41 p40
$0C:B44C .db $40,$7C,$42,$45,$00,$84,$42,$41 ; s12: x7C y42 t45 p00; s12: x84 y42 t41 p00
$0C:B454 .db $00,$8C,$42,$41,$40,$94,$42,$46 ; s12: x8C y42 t41 p40; s12: x94 y42 t46 p10
$0C:B45C .db $10,$74,$4A,$51,$40,$7C,$4A,$62 ; s12: x74 y4A t51 p40; s12: x7C y4A t62 p00
$0C:B464 .db $00,$84,$4A,$51,$00,$8C,$4A,$51 ; s12: x84 y4A t51 p00; s12: x8C y4A t51 p40
$0C:B46C .db $40,$64,$52,$60,$10,$74,$52,$62 ; s12: x64 y52 t60 p10; s12: x74 y52 t62 p00
$0C:B474 .db $00,$7C,$52,$62,$00,$84,$52,$62 ; s12: x7C y52 t62 p00; s12: x84 y52 t62 p00
$0C:B47C .db $00,$8C,$52,$65,$00,$94,$52,$66 ; s12: x8C y52 t65 p00; s12: x94 y52 t66 p10
$0C:B484 .db $10,$74,$5A,$72,$00,$7C,$5A,$73 ; s12: x74 y5A t72 p00; s12: x7C y5A t73 p00
$0C:B48C .db $00,$84,$5A,$74,$00,$8C,$5A,$75 ; s12: x84 y5A t74 p00; s12: x8C y5A t75 p00
$0C:B494 .db $00,$64,$62,$20,$00,$6C,$62,$21 ; s12: x64 y62 t20 p00; s12: x6C y62 t21 p00
$0C:B49C .db $00,$74,$62,$22,$10,$84,$62,$24 ; s12: x74 y62 t22 p10; s12: x84 y62 t24 p10
$0C:B4A4 .db $10,$94,$62,$26,$00,$9C,$62,$27 ; s12: x94 y62 t26 p00; s12: x9C y62 t27 p00
$0C:B4AC .db $00,$6C,$6A,$31,$00,$94,$6A,$36 ; s12: x6C y6A t31 p00; s12: x94 y6A t36 p00
$0C:B4B4 .db $00,$6C,$72,$37,$00,$74,$72,$38 ; s12: x6C y72 t37 p00; s12: x74 y72 t38 p00
$0C:B4BC .db $00,$7C,$72,$39,$00,$84,$72,$3A ; s12: x7C y72 t39 p00; s12: x84 y72 t3A p00
$0C:B4C4 .db $00,$8C,$72,$3B,$00,$94,$72,$2B ; s12: x8C y72 t3B p00; s12: x94 y72 t2B p00
$0C:B4CC .db $00,$31,$2C,$83,$4C,$39,$2C,$DA ; s12: x31 y2C t83 p4C; s12: x39 y2C tDA p4C
$0C:B4D4 .db $4C,$41,$2C,$D9,$4C,$31,$34,$86 ; s12: x41 y2C tD9 p4C; s12: x31 y34 t86 p4C
$0C:B4DC .db $4C,$39,$34,$EA,$4C,$41,$34,$E9 ; s12: x39 y34 tEA p4C; s12: x41 y34 tE9 p4C
$0C:B4E4 .db $4C,$31,$3C,$8D,$4C,$39,$3C,$8C ; s12: x31 y3C t8D p4C; s12: x39 y3C t8C p4C
$0C:B4EC .db $4C,$41,$3C,$87,$4C,$B2,$2C,$B2 ; s12: x41 y3C t87 p4C; s12: xB2 y2C tB2 p0E
$0C:B4F4 .db $0E,$BA,$2C,$B3,$0E,$C2,$2C,$91 ; s12: xBA y2C tB3 p0E; s12: xC2 y2C t91 p0E
$0C:B4FC .db $0E,$B2,$34,$92,$0E,$BA,$34,$93 ; s12: xB2 y34 t92 p0E; s12: xBA y34 t93 p0E
$0C:B504 .db $0E,$C2,$34,$94,$0E,$BA,$3C,$95 ; s12: xC2 y34 t94 p0E; s12: xBA y3C t95 p0E
$0C:B50C .db $0E,$C2,$3C,$96,$0E,$1A,$6C,$A8 ; s12: xC2 y3C t96 p0E; s12: x1A y6C tA8 p15
$0C:B514 .db $15,$12,$7C,$EC,$1B,$22,$7C,$EE ; s12: x12 y7C tEC p1B; s12: x22 y7C tEE p1B
$0C:B51C .db $1B,$15,$5C,$92,$05,$1D,$5C,$92 ; s12: x15 y5C t92 p05; s12: x1D y5C t92 p45
$0C:B524 .db $45,$15,$64,$84,$15,$CD,$6C,$A0 ; s12: x15 y64 t84 p15; s12: xCD y6C tA0 p19
$0C:B52C .db $19,$DD,$6C,$A0,$59,$CD,$7C,$EC ; s12: xDD y6C tA0 p59; s12: xCD y7C tEC p1B
$0C:B534 .db $1B,$DD,$7C,$EE,$1B,$D5,$5F,$9F ; s12: xDD y7C tEE p1B; s12: xD5 y5F t9F p49
$0C:B53C .db $49,$DD,$5F,$9E,$49,$D5,$67,$CC ; s12: xDD y5F t9E p49; s12: xD5 y67 tCC p59
$0C:B544 .db $59,$34,$AA,$24,$57,$3C,$9A,$1B ; s12: x34 yAA t24 p57; s12: x3C y9A t1B p47
$0C:B54C .db $47,$3C,$A2,$08,$57,$70,$A9,$CC ; s12: x3C yA2 t08 p57; s12: x70 yA9 tCC p02
$0C:B554 .db $02,$78,$A9,$CD,$02,$80,$A9,$CD ; s12: x78 yA9 tCD p02; s12: x80 yA9 tCD p42
$0C:B55C .db $42,$88,$A9,$CC,$42,$70,$B1,$99 ; s12: x88 yA9 tCC p42; s12: x70 yB1 t99 p02
$0C:B564 .db $02,$78,$B1,$9A,$02,$80,$B1,$9A ; s12: x78 yB1 t9A p02; s12: x80 yB1 t9A p42
$0C:B56C .db $42,$88,$B1,$99,$42,$70,$B9,$9B ; s12: x88 yB1 t99 p42; s12: x70 yB9 t9B p02
$0C:B574 .db $02,$78,$B9,$9C,$02,$80,$B9,$9C ; s12: x78 yB9 t9C p02; s12: x80 yB9 t9C p42
$0C:B57C .db $42,$88,$B9,$9B,$42,$70,$C1,$9D ; s12: x88 yB9 t9B p42; s12: x70 yC1 t9D p02
$0C:B584 .db $02,$78,$C1,$9E,$02,$80,$C1,$9E ; s12: x78 yC1 t9E p02; s12: x80 yC1 t9E p42
$0C:B58C .db $42,$88,$C1,$9D,$42,$BD,$9E,$0C ; s12: x88 yC1 t9D p42; s12: xBD y9E t0C p0B
$0C:B594 .db $0B,$B4,$A6,$00,$1B,$BD,$AB,$02 ; s12: xB4 yA6 t00 p1B; s12: xBD yAB t02 p1B
$0C:B59C .db $1B,$B5,$B4,$0A,$0B,$FF ; s12: xB5 yB4 t0A p0B; End of scene 12 list ($FF)
;;; $B5A2..B5BA: Table: scene sprite list offsets ;;;
;; 13 words, one per ending enemy scene: offset of that scene's sprite list from $0CAF11. Lists are not stored
;; in scene order.
$0C:B5A2 .db $FC,$02,$1C,$01,$C1,$01,$22,$02 ; sc 0 (Lakitu): $02FC; sc 1 (Hammer Bro.): $011C; sc 2 (Pokey): $01C1; sc 3 (Rex): $0222
$0C:B5AA .db $00,$00,$45,$00,$8B,$02,$95,$03 ; sc 4 (Dino-Rhino): $0000; sc 5 (Blargg): $0045; sc 6 (Urchin): $028B; sc 7 (Boo): $0395
$0C:B5B2 .db $9E,$00,$2A,$04,$93,$04,$E7,$00 ; sc 8 (Dry Bones): $009E; sc 9 (Grinder): $042A; sc 10 (Reznor): $493; sc 11 (Mecha): $E7
$0C:B5BA .db $FC,$04 ; scene 12 (Bowser): $04FC
;;; $B5BC: Draw ending scene background sprites ;;;
;; Builds extended OAM from the current scene's list in $AF11 (offset from $B5A2[[$1DE9]]),
;; filling slots 127 downwards until an X of $FF.
;; Each sprite's X is reduced by the layer scroll ([$1A], or [$1462] if properties bit 5 is set); X bit 8 and
;; the size bit go into the high table at $0420+slot.
;; Priority bits come from [$00]: $20, or $30 for scene 5.
;; Called by:
;; $0C:AF0E: Ending enemy scene: set up and slide layers
$0C:B5BC A9 00 LDA.B #$00 ; \
$0C:B5BE EB XBA ; / A = 0, hidden high byte B = 0
$0C:B5BF A0 20 LDY.B #$20 ; Y = $20: OAM priority bits for the scene's sprites
$0C:B5C1 AD E9 1D LDA.W $1DE9 ; A = scene
$0C:B5C4 C9 05 CMP.B #$05 ; Scene 5?
$0C:B5C6 D0 02 BNE $B5CA ; No: keep $20
$0C:B5C8 A0 30 LDY.B #$30 ; Yes: use $30 (priority 3) instead
$0C:B5CA 84 00 STY $00 ; [$00] = priority bits to merge into each sprite's properties
$0C:B5CC 0A ASL ; A = scene * 2
$0C:B5CD C2 10 REP #$10 ; X and Y = 16-bit
$0C:B5CF A8 TAY ; Y = scene * 2
$0C:B5D0 BE A2 B5 LDX.W $B5A2,Y ; X = offset of this scene's sprite list within $AF11
$0C:B5D3 A0 7F 00 LDY.W #$007F ; \
$0C:B5D6 84 01 STY $01 ; / [$01] = $7F: next OAM high-table slot (counts down from 127)
$0C:B5D8 A0 FC 01 LDY.W #$01FC ; Y = $01FC: OAM offset of slot 127 (filled backwards)
$0C:B5DB 5A PHY ; Save the OAM offset
$0C:B5DC A4 1A LDY RAM_ScreenBndryXLo ; Y = [$1A]: Layer 1 X scroll
$0C:B5DE BD 14 AF LDA.W $AF14,X ; \
$0C:B5E1 29 20 AND.B #$20 ; |
$0C:B5E3 F0 03 BEQ $B5E8 ; / Sprite properties bit 5 set?
$0C:B5E5 AC 62 14 LDY.W $1462 ; Yes: scroll with [$1462] (the opposite-moving group) instead
$0C:B5E8 84 03 STY $03 ; [$03] = X scroll used for this sprite (16-bit)
$0C:B5EA 7A PLY ; Restore the OAM offset
$0C:B5EB BD 11 AF LDA.W $AF11,X ; A = sprite X from the list
$0C:B5EE C9 FF CMP.B #$FF ; \
$0C:B5F0 F0 41 BEQ $B633 ; / $FF = end of this scene's list
$0C:B5F2 38 SEC ; \
$0C:B5F3 E5 03 SBC $03 ; / A = X - scroll (low byte)
$0C:B5F5 99 00 02 STA.W OAM_ExtendedDispX,Y ; OAM X = screen X
$0C:B5F8 A9 00 LDA.B #$00 ; \
$0C:B5FA E5 04 SBC $04 ; |
$0C:B5FC 29 01 AND.B #$01 ; |
$0C:B5FE 85 04 STA $04 ; / [$04] = OAM X bit 8: borrow from the 16-bit subtraction
$0C:B600 BD 14 AF LDA.W $AF14,X ; \
$0C:B603 29 10 AND.B #$10 ; |
$0C:B605 4A LSR ; |
$0C:B606 4A LSR ; |
$0C:B607 4A LSR ; |
$0C:B608 05 04 ORA $04 ; / A = X bit 8 | size bit (prop bit 4 moved to bit 1)
$0C:B60A 5A PHY ; \
$0C:B60B A4 01 LDY $01 ; |
$0C:B60D 99 20 04 STA.W $0420,Y ; } Store in the OAM high table entry [$0420 + [$01]]
$0C:B610 7A PLY ; /
$0C:B611 BD 12 AF LDA.W $AF12,X ; A = sprite Y from the list
$0C:B614 99 01 02 STA.W OAM_ExtendedDispY,Y ; OAM Y
$0C:B617 BD 13 AF LDA.W $AF13,X ; A = tile from the list
$0C:B61A 99 02 02 STA.W OAM_ExtendedTile,Y ; OAM tile
$0C:B61D BD 14 AF LDA.W $AF14,X ; \
$0C:B620 29 CF AND.B #$CF ; |
$0C:B622 05 00 ORA $00 ; |
$0C:B624 99 03 02 STA.W OAM_ExtendedProp,Y ; / OAM properties = list properties with bits 4-5 replaced by [$00]
$0C:B627 88 DEY ; \
$0C:B628 88 DEY ; |
$0C:B629 88 DEY ; |
$0C:B62A 88 DEY ; / Y -= 4: previous OAM slot
$0C:B62B E8 INX ; \
$0C:B62C E8 INX ; |
$0C:B62D E8 INX ; |
$0C:B62E E8 INX ; / X += 4: next sprite in the list
$0C:B62F C6 01 DEC $01 ; Previous high-table slot
$0C:B631 80 A8 BRA $B5DB ; Next sprite
$0C:B633 E2 10 SEP #$10 ; X and Y = 8-bit
$0C:B635 60 RTS ; Return
;;; $B636..B7FE: Screen image: THE END ;;;
;; Two 12-tile rows at VRAM $50EA and $510A (Layer 3): 'T H E E N D' as tops (tiles $Cx/$E3) and bottoms
;; (+$10), with tile $FC as the spaces.
;; Screen image format (read by LoadScrnImage, $0085D2): blocks of VRAM word address (high, low), flags/length
;; high (bit 7 = write down a column,
;; bit 6 = RLE, bits 5-0 = length high), length low; length = byte count - 1. Then tile/attribute byte pairs,
;; or for RLE one tile and one attribute that are repeated. A $FF byte ends the image.
;; Followed by $FF padding up to $0CB7FF.
$0C:B636 .db $50,$EA,$00,$17,$E3,$20,$FC,$20 ; VRAM $50EA: 12 tiles; top row of "THE END": T(top) space
$0C:B63E .db $C7,$20,$FC,$20,$C4,$20,$FC,$20 ; H(top) space E(top) space
$0C:B646 .db $FC,$20,$C4,$20,$FC,$20,$CD,$20 ; space E(top) space N(top)
$0C:B64E .db $FC,$20,$C3,$20,$51,$0A,$00,$17 ; space D(top); VRAM $510A: 12 tiles (bottom row)
$0C:B656 .db $F3,$20,$FC,$20,$D7,$20,$FC,$20 ; T(bottom) space H(bottom) space
$0C:B65E .db $D4,$20,$FC,$20,$FC,$20,$D4,$20 ; E(bottom) space space E(bottom)
$0C:B666 .db $FC,$20,$DD,$20,$FC,$20,$D3,$20 ; space N(bottom) space D(bottom)
$0C:B66E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF ; End of image ($FF)
$0C:B676 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B67E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B686 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B68E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B696 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B69E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6A6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6AE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6B6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6BE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6C6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6CE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6D6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6DE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6E6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6EE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6F6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B6FE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B706 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B70E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B716 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B71E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B726 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B72E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B736 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B73E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B746 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B74E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B756 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B75E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B766 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B76E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B776 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B77E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B786 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B78E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B796 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B79E .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7A6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7AE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7B6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7BE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7C6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7CE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7D6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7DE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7E6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7EE .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7F6 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:B7FE .db $FF,$FF
;;; $B800..B9B8: Screen image: cutscene 4 background ;;;
;; Background tilemap for cutscene 4 (Ludwig), ImagePointers entry 5 (chosen through $9460 in bank 00).
;; Clears VRAM $3000+ with tile $FA, paints rows of tile $F8 (47-tile runs from $3064 down) and then single
;; tiles (e.g. $B6, $F1) and ground rows at $31E4/$3204 (tiles $8A, $9A).
$0C:B800 .db $30,$00,$5F,$FE,$FA,$28,$30,$64 ; VRAM $3000: RLE fill 8191 tiles; fill tile $FA attr $28; VRAM $3064: RLE fill 47 tiles
$0C:B808 .db $40,$2E,$F8,$00,$30,$76,$00,$03 ; fill tile $F8 attr $00; VRAM $3076: 2 tiles
$0C:B810 .db $B6,$11,$B6,$51,$30,$84,$40,$2E ; tile:attr B6:11 B6:51; VRAM $3084: RLE fill 47 tiles
$0C:B818 .db $F8,$00,$30,$84,$00,$03,$B6,$11 ; fill tile $F8 attr $00; VRAM $3084: 2 tiles; tile:attr B6:11
$0C:B820 .db $B6,$51,$30,$A4,$40,$2E,$F8,$00 ; tile:attr B6:51; VRAM $30A4: RLE fill 47 tiles; fill tile $F8 attr $00
$0C:B828 .db $30,$AF,$00,$03,$B6,$11,$B6,$51 ; VRAM $30AF: 2 tiles; tile:attr B6:11 B6:51
$0C:B830 .db $30,$C4,$40,$2E,$F8,$00,$30,$DB ; VRAM $30C4: RLE fill 47 tiles; fill tile $F8 attr $00; VRAM $30DB: 1 tiles
$0C:B838 .db $00,$01,$F1,$11,$30,$E4,$40,$2E ; tile:attr F1:11; VRAM $30E4: RLE fill 47 tiles
$0C:B840 .db $F8,$00,$30,$F8,$00,$07,$F1,$11 ; fill tile $F8 attr $00; VRAM $30F8: 4 tiles; tile:attr F1:11
$0C:B848 .db $F1,$51,$F1,$11,$F2,$11,$31,$04 ; tile:attr F1:51 F1:11 F2:11; VRAM $3104: RLE fill 47 tiles
$0C:B850 .db $40,$2E,$F8,$00,$31,$06,$00,$03 ; fill tile $F8 attr $00; VRAM $3106: 2 tiles
$0C:B858 .db $B6,$11,$B6,$51,$31,$17,$00,$09 ; tile:attr B6:11 B6:51; VRAM $3117: 5 tiles
$0C:B860 .db $F1,$11,$F2,$11,$F2,$51,$F2,$11 ; tile:attr F1:11 F2:11 F2:51 F2:11
$0C:B868 .db $F9,$08,$31,$24,$40,$2E,$F8,$00 ; tile:attr F9:08; VRAM $3124: RLE fill 47 tiles; fill tile $F8 attr $00
$0C:B870 .db $31,$2A,$00,$03,$F1,$11,$F1,$51 ; VRAM $312A: 2 tiles; tile:attr F1:11 F1:51
$0C:B878 .db $31,$36,$00,$0B,$F1,$11,$F2,$11 ; VRAM $3136: 6 tiles; tile:attr F1:11 F2:11
$0C:B880 .db $F9,$08,$F9,$08,$F0,$11,$F0,$51 ; tile:attr F9:08 F9:08 F0:11 F0:51
$0C:B888 .db $31,$44,$40,$2E,$F8,$00,$31,$49 ; VRAM $3144: RLE fill 47 tiles; fill tile $F8 attr $00; VRAM $3149: 4 tiles
$0C:B890 .db $00,$07,$F1,$11,$F2,$11,$F2,$51 ; tile:attr F1:11 F2:11 F2:51
$0C:B898 .db $F1,$51,$31,$52,$00,$03,$B6,$11 ; tile:attr F1:51; VRAM $3152: 2 tiles; tile:attr B6:11
$0C:B8A0 .db $B6,$51,$31,$56,$00,$0B,$F1,$91 ; tile:attr B6:51; VRAM $3156: 6 tiles; tile:attr F1:91
$0C:B8A8 .db $F2,$91,$F9,$08,$F0,$11,$F2,$11 ; tile:attr F2:91 F9:08 F0:11 F2:11
$0C:B8B0 .db $F2,$51,$31,$64,$00,$2F,$F1,$11 ; tile:attr F2:51; VRAM $3164: 24 tiles; tile:attr F1:11
$0C:B8B8 .db $F1,$51,$F8,$08,$F8,$08,$F1,$11 ; tile:attr F1:51 F8:08 F8:08 F1:11
$0C:B8C0 .db $F2,$11,$F9,$08,$F2,$D1,$F1,$D1 ; tile:attr F2:11 F9:08 F2:D1 F1:D1
$0C:B8C8 .db $AA,$0D,$AB,$0D,$AC,$0D,$AD,$0D ; tile:attr AA:0D AB:0D AC:0D AD:0D
$0C:B8D0 .db $AE,$0D,$AF,$0D,$F8,$08,$F8,$08 ; tile:attr AE:0D AF:0D F8:08 F8:08
$0C:B8D8 .db $F8,$08,$F1,$11,$F2,$11,$F9,$08 ; tile:attr F8:08 F1:11 F2:11 F9:08
$0C:B8E0 .db $F0,$91,$F2,$91,$F9,$08,$31,$84 ; tile:attr F0:91 F2:91 F9:08; VRAM $3184: 24 tiles
$0C:B8E8 .db $00,$2F,$F2,$11,$F2,$51,$F1,$51 ; tile:attr F2:11 F2:51 F1:51
$0C:B8F0 .db $F1,$11,$F2,$11,$F9,$08,$F9,$08 ; tile:attr F1:11 F2:11 F9:08 F9:08
$0C:B8F8 .db $F2,$51,$F1,$51,$BA,$0D,$BB,$0D ; tile:attr F2:51 F1:51 BA:0D BB:0D
$0C:B900 .db $BC,$0D,$BD,$0D,$DC,$0D,$BF,$0D ; tile:attr BC:0D BD:0D DC:0D BF:0D
$0C:B908 .db $F8,$08,$F8,$08,$F1,$11,$F2,$11 ; tile:attr F8:08 F8:08 F1:11 F2:11
$0C:B910 .db $F0,$11,$F0,$51,$F0,$11,$F2,$11 ; tile:attr F0:11 F0:51 F0:11 F2:11
$0C:B918 .db $F9,$08,$31,$A4,$00,$2F,$86,$1D ; tile:attr F9:08; VRAM $31A4: 24 tiles; tile:attr 86:1D
$0C:B920 .db $87,$1D,$86,$1D,$87,$1D,$86,$1D ; tile:attr 87:1D 86:1D 87:1D 86:1D
$0C:B928 .db $87,$1D,$86,$1D,$87,$1D,$86,$1D ; tile:attr 87:1D 86:1D 87:1D 86:1D
$0C:B930 .db $CA,$0D,$CB,$0D,$DC,$0D,$DB,$0D ; tile:attr CA:0D CB:0D DC:0D DB:0D
$0C:B938 .db $DC,$0D,$CF,$0D,$86,$1D,$87,$1D ; tile:attr DC:0D CF:0D 86:1D 87:1D
$0C:B940 .db $86,$1D,$87,$1D,$86,$1D,$87,$1D ; tile:attr 86:1D 87:1D 86:1D 87:1D
$0C:B948 .db $86,$1D,$87,$1D,$86,$1D,$31,$C4 ; tile:attr 86:1D 87:1D 86:1D; VRAM $31C4: 24 tiles
$0C:B950 .db $00,$2F,$9E,$1D,$9F,$1D,$9E,$1D ; tile:attr 9E:1D 9F:1D 9E:1D
$0C:B958 .db $9F,$1D,$9E,$1D,$9F,$1D,$9E,$1D ; tile:attr 9F:1D 9E:1D 9F:1D 9E:1D
$0C:B960 .db $9F,$1D,$9E,$1D,$EA,$0D,$DB,$0D ; tile:attr 9F:1D 9E:1D EA:0D DB:0D
$0C:B968 .db $DC,$0D,$DB,$0D,$DC,$0D,$DF,$0D ; tile:attr DC:0D DB:0D DC:0D DF:0D
$0C:B970 .db $9E,$1D,$9F,$1D,$9E,$1D,$9F,$1D ; tile:attr 9E:1D 9F:1D 9E:1D 9F:1D
$0C:B978 .db $9E,$1D,$9F,$1D,$9E,$1D,$9F,$1D ; tile:attr 9E:1D 9F:1D 9E:1D 9F:1D
$0C:B980 .db $9E,$1D,$31,$E4,$40,$2E,$8A,$35 ; tile:attr 9E:1D; VRAM $31E4: RLE fill 47 tiles; fill tile $8A attr $35
$0C:B988 .db $31,$E4,$00,$01,$B8,$35,$31,$E9 ; VRAM $31E4: 1 tiles; tile:attr B8:35; VRAM $31E9: 1 tiles
$0C:B990 .db $00,$01,$B8,$35,$31,$F2,$00,$01 ; tile:attr B8:35; VRAM $31F2: 1 tiles
$0C:B998 .db $B8,$35,$31,$FB,$00,$01,$B8,$35 ; tile:attr B8:35; VRAM $31FB: 1 tiles; tile:attr B8:35
$0C:B9A0 .db $32,$04,$40,$2E,$9A,$35,$32,$07 ; VRAM $3204: RLE fill 47 tiles; fill tile $9A attr $35; VRAM $3207: 1 tiles
$0C:B9A8 .db $00,$01,$B7,$35,$32,$0E,$00,$01 ; tile:attr B7:35; VRAM $320E: 1 tiles
$0C:B9B0 .db $B7,$35,$32,$15,$00,$01,$B7,$35 ; tile:attr B7:35; VRAM $3215: 1 tiles; tile:attr B7:35
$0C:B9B8 .db $32,$19,$00,$01,$B7,$35,$FF ; VRAM $3219: 1 tiles; tile:attr B7:35; End of image ($FF)
;;; $B9BF..BA4F: Screen image: cutscene castle picture ;;;
;; ImagePointers entry 69, the second image loaded for every cutscene ($CF in $94BF). Clears VRAM $2000+
;; with tile $F8, then draws a 6x9 tile picture
;; (nine 6-tile rows from $20F4, 32 words apart), probably the castle; its palette comes from
;; CutsceneCastlePal.
$0C:B9BF .db $20,$00,$5F,$FE,$F8,$00,$20,$F4 ; VRAM $2000: RLE fill 8191 tiles; fill tile $F8 attr $00; VRAM $20F4: 6 tiles
$0C:B9C7 .db $00,$0B,$80,$01,$81,$01,$82,$01 ; tile:attr 80:01 81:01 82:01
$0C:B9CF .db $83,$01,$81,$41,$85,$01,$21,$14 ; tile:attr 83:01 81:41 85:01; VRAM $2114: 6 tiles
$0C:B9D7 .db $00,$0B,$90,$01,$91,$01,$92,$01 ; tile:attr 90:01 91:01 92:01
$0C:B9DF .db $93,$01,$94,$01,$95,$01,$21,$34 ; tile:attr 93:01 94:01 95:01; VRAM $2134: 6 tiles
$0C:B9E7 .db $00,$0B,$A0,$01,$A1,$01,$A2,$01 ; tile:attr A0:01 A1:01 A2:01
$0C:B9EF .db $A3,$01,$A4,$01,$A5,$01,$21,$54 ; tile:attr A3:01 A4:01 A5:01; VRAM $2154: 6 tiles
$0C:B9F7 .db $00,$0B,$B0,$01,$91,$01,$92,$01 ; tile:attr B0:01 91:01 92:01
$0C:B9FF .db $93,$01,$94,$01,$B5,$01,$21,$74 ; tile:attr 93:01 94:01 B5:01; VRAM $2174: 6 tiles
$0C:BA07 .db $00,$0B,$A0,$01,$A1,$01,$A2,$01 ; tile:attr A0:01 A1:01 A2:01
$0C:BA0F .db $A3,$01,$A4,$01,$A5,$01,$21,$94 ; tile:attr A3:01 A4:01 A5:01; VRAM $2194: 6 tiles
$0C:BA17 .db $00,$0B,$90,$01,$B1,$01,$B2,$01 ; tile:attr 90:01 B1:01 B2:01
$0C:BA1F .db $B3,$01,$B4,$01,$95,$01,$21,$B4 ; tile:attr B3:01 B4:01 95:01; VRAM $21B4: 6 tiles
$0C:BA27 .db $00,$0B,$A0,$01,$C6,$01,$C7,$01 ; tile:attr A0:01 C6:01 C7:01
$0C:BA2F .db $C6,$41,$94,$01,$A5,$01,$21,$D4 ; tile:attr C6:41 94:01 A5:01; VRAM $21D4: 6 tiles
$0C:BA37 .db $00,$0B,$B0,$01,$D6,$01,$C7,$81 ; tile:attr B0:01 D6:01 C7:81
$0C:BA3F .db $D6,$41,$B4,$41,$B5,$01,$21,$F4 ; tile:attr D6:41 B4:41 B5:01; VRAM $21F4: 6 tiles
$0C:BA47 .db $00,$0B,$D0,$89,$D0,$C9,$E0,$09 ; tile:attr D0:89 D0:C9 E0:09
$0C:BA4F .db $E1,$09,$D0,$C9,$E2,$09,$FF ; tile:attr E1:09 D0:C9 E2:09; End of image ($FF)
;;; $BA56..BBB6: Screen image: cutscene 3 and 7 background ;;;
;; ImagePointers entry 67 (bank 00 comment: cutscene border, cave ground), used by cutscenes 3 (Lemmy) and 7
;; (Larry).
;; Clears VRAM $3000+ with tile $FA, fills 12 rows with tile $FA, then draws column strips of tiles $F8/$8C
;; and ground rows at $31E4/$3204 (tiles $8A, $9A).
$0C:BA56 .db $30,$00,$5F,$FE,$FA,$28,$30,$64 ; VRAM $3000: RLE fill 8191 tiles; fill tile $FA attr $28; VRAM $3064: RLE fill 47 tiles
$0C:BA5E .db $40,$2E,$FA,$08,$30,$84,$40,$2E ; fill tile $FA attr $08; VRAM $3084: RLE fill 47 tiles
$0C:BA66 .db $FA,$08,$30,$A4,$40,$2E,$FA,$08 ; fill tile $FA attr $08; VRAM $30A4: RLE fill 47 tiles; fill tile $FA attr $08
$0C:BA6E .db $30,$C4,$40,$2E,$FA,$08,$30,$E4 ; VRAM $30C4: RLE fill 47 tiles; fill tile $FA attr $08; VRAM $30E4: RLE fill 47 tiles
$0C:BA76 .db $40,$2E,$FA,$08,$31,$04,$40,$2E ; fill tile $FA attr $08; VRAM $3104: RLE fill 47 tiles
$0C:BA7E .db $FA,$08,$31,$24,$40,$2E,$FA,$08 ; fill tile $FA attr $08; VRAM $3124: RLE fill 47 tiles; fill tile $FA attr $08
$0C:BA86 .db $31,$44,$40,$2E,$FA,$08,$31,$64 ; VRAM $3144: RLE fill 47 tiles; fill tile $FA attr $08; VRAM $3164: RLE fill 47 tiles
$0C:BA8E .db $40,$2E,$FA,$08,$31,$84,$40,$2E ; fill tile $FA attr $08; VRAM $3184: RLE fill 47 tiles
$0C:BA96 .db $FA,$08,$31,$A4,$40,$2E,$FA,$08 ; fill tile $FA attr $08; VRAM $31A4: RLE fill 47 tiles; fill tile $FA attr $08
$0C:BA9E .db $31,$C4,$40,$2E,$FA,$08,$30,$64 ; VRAM $31C4: RLE fill 47 tiles; fill tile $FA attr $08; VRAM $3064: 3 tiles, down a column
$0C:BAA6 .db $80,$05,$F8,$08,$F8,$08,$8C,$09 ; tile:attr F8:08 F8:08 8C:09
$0C:BAAE .db $30,$65,$00,$01,$8C,$09,$30,$68 ; VRAM $3065: 1 tiles; tile:attr 8C:09; VRAM $3068: 1 tiles
$0C:BAB6 .db $00,$01,$8C,$09,$30,$69,$80,$03 ; tile:attr 8C:09; VRAM $3069: 2 tiles, down a column
$0C:BABE .db $F8,$08,$8C,$09,$30,$6A,$80,$05 ; tile:attr F8:08 8C:09; VRAM $306A: 3 tiles, down a column
$0C:BAC6 .db $F8,$08,$F8,$08,$8C,$09,$30,$6B ; tile:attr F8:08 F8:08 8C:09; VRAM $306B: 1 tiles
$0C:BACE .db $00,$01,$8C,$09,$30,$6C,$80,$03 ; tile:attr 8C:09; VRAM $306C: 2 tiles, down a column
$0C:BAD6 .db $F8,$08,$8C,$09,$30,$6D,$C0,$06 ; tile:attr F8:08 8C:09; VRAM $306D: RLE fill 7 tiles, down a column
$0C:BADE .db $F8,$08,$30,$ED,$00,$01,$8C,$09 ; fill tile $F8 attr $08; VRAM $30ED: 1 tiles; tile:attr 8C:09
$0C:BAE6 .db $30,$6E,$80,$05,$F8,$08,$F8,$08 ; VRAM $306E: 3 tiles, down a column; tile:attr F8:08 F8:08
$0C:BAEE .db $8C,$09,$30,$6F,$C0,$04,$F8,$08 ; tile:attr 8C:09; VRAM $306F: RLE fill 5 tiles, down a column; fill tile $F8 attr $08
$0C:BAF6 .db $30,$CF,$00,$01,$8C,$09,$30,$71 ; VRAM $30CF: 1 tiles; tile:attr 8C:09; VRAM $3071: 3 tiles, down a column
$0C:BAFE .db $80,$05,$F8,$08,$F8,$08,$8C,$09 ; tile:attr F8:08 F8:08 8C:09
$0C:BB06 .db $30,$74,$00,$01,$8C,$09,$30,$75 ; VRAM $3074: 1 tiles; tile:attr 8C:09; VRAM $3075: 2 tiles, down a column
$0C:BB0E .db $80,$03,$F8,$08,$8C,$09,$30,$77 ; tile:attr F8:08 8C:09; VRAM $3077: 1 tiles
$0C:BB16 .db $00,$01,$8C,$09,$30,$7A,$80,$05 ; tile:attr 8C:09; VRAM $307A: 3 tiles, down a column
$0C:BB1E .db $F8,$08,$F8,$08,$8C,$09,$30,$7B ; tile:attr F8:08 F8:08 8C:09; VRAM $307B: RLE fill 5 tiles, down a column
$0C:BB26 .db $C0,$04,$F8,$08,$30,$DB,$00,$01 ; fill tile $F8 attr $08; VRAM $30DB: 1 tiles
$0C:BB2E .db $8C,$09,$31,$84,$80,$05,$8C,$89 ; tile:attr 8C:09; VRAM $3184: 3 tiles, down a column; tile:attr 8C:89
$0C:BB36 .db $F8,$08,$F8,$08,$31,$45,$00,$01 ; tile:attr F8:08 F8:08; VRAM $3145: 1 tiles
$0C:BB3E .db $8C,$89,$31,$65,$C0,$06,$F8,$08 ; tile:attr 8C:89; VRAM $3165: RLE fill 7 tiles, down a column; fill tile $F8 attr $08
$0C:BB46 .db $31,$C7,$00,$01,$8C,$89,$31,$A9 ; VRAM $31C7: 1 tiles; tile:attr 8C:89; VRAM $31A9: 2 tiles, down a column
$0C:BB4E .db $80,$03,$8C,$89,$F8,$08,$31,$6B ; tile:attr 8C:89 F8:08; VRAM $316B: 1 tiles
$0C:BB56 .db $00,$01,$8C,$89,$31,$8B,$C0,$04 ; tile:attr 8C:89; VRAM $318B: RLE fill 5 tiles, down a column
$0C:BB5E .db $F8,$08,$31,$8C,$80,$05,$8C,$89 ; fill tile $F8 attr $08; VRAM $318C: 3 tiles, down a column; tile:attr 8C:89
$0C:BB66 .db $F8,$08,$F8,$08,$31,$CD,$00,$01 ; tile:attr F8:08 F8:08; VRAM $31CD: 1 tiles
$0C:BB6E .db $8C,$89,$31,$AF,$80,$03,$8C,$89 ; tile:attr 8C:89; VRAM $31AF: 2 tiles, down a column; tile:attr 8C:89
$0C:BB76 .db $F8,$08,$31,$91,$80,$05,$8C,$89 ; tile:attr F8:08; VRAM $3191: 3 tiles, down a column; tile:attr 8C:89
$0C:BB7E .db $F8,$08,$F8,$08,$31,$D2,$00,$01 ; tile:attr F8:08 F8:08; VRAM $31D2: 1 tiles
$0C:BB86 .db $8C,$89,$31,$B6,$80,$03,$8C,$89 ; tile:attr 8C:89; VRAM $31B6: 2 tiles, down a column; tile:attr 8C:89
$0C:BB8E .db $F8,$08,$31,$D7,$00,$01,$8C,$89 ; tile:attr F8:08; VRAM $31D7: 1 tiles; tile:attr 8C:89
$0C:BB96 .db $31,$99,$80,$05,$8C,$89,$F8,$08 ; VRAM $3199: 3 tiles, down a column; tile:attr 8C:89 F8:08
$0C:BB9E .db $F8,$08,$31,$7B,$00,$01,$8C,$89 ; tile:attr F8:08; VRAM $317B: 1 tiles; tile:attr 8C:89
$0C:BBA6 .db $31,$9B,$C0,$04,$F8,$08,$31,$E4 ; VRAM $319B: RLE column of 5; fill tile $F8 attr $08; VRAM $31E4: RLE fill 47 tiles
$0C:BBAE .db $40,$2E,$8A,$25,$32,$04,$40,$2E ; fill tile $8A attr $25; VRAM $3204: RLE fill 47 tiles
$0C:BBB6 .db $9A,$25,$FF ; fill tile $9A attr $25; End of image ($FF)
;;; $BBB9..BD01: Screen image: cutscene 6 background ;;;
;; ImagePointers entry 68, used by cutscene 6 (Wendy). Same layout as the other cutscene backgrounds: clear
;; $3000+, rows of tile $F8, small patches, ground rows at $31E4/$3204.
$0C:BBB9 .db $30,$00,$5F,$FE,$FA,$28,$30,$64 ; VRAM $3000: RLE fill 8191 tiles; fill tile $FA attr $28; VRAM $3064: RLE fill 47 tiles
$0C:BBC1 .db $40,$2E,$F8,$08,$30,$76,$00,$03 ; fill tile $F8 attr $08; VRAM $3076: 2 tiles
$0C:BBC9 .db $B6,$11,$B6,$51,$30,$84,$40,$2E ; tile:attr B6:11 B6:51; VRAM $3084: RLE fill 47 tiles
$0C:BBD1 .db $F8,$08,$30,$84,$00,$03,$B6,$11 ; fill tile $F8 attr $08; VRAM $3084: 2 tiles; tile:attr B6:11
$0C:BBD9 .db $B6,$51,$30,$A4,$40,$2E,$F8,$08 ; tile:attr B6:51; VRAM $30A4: RLE fill 47 tiles; fill tile $F8 attr $08
$0C:BBE1 .db $30,$AF,$00,$03,$B6,$11,$B6,$51 ; VRAM $30AF: 2 tiles; tile:attr B6:11 B6:51
$0C:BBE9 .db $30,$C4,$40,$2E,$F8,$08,$30,$E4 ; VRAM $30C4: RLE fill 47 tiles; fill tile $F8 attr $08; VRAM $30E4: RLE fill 47 tiles
$0C:BBF1 .db $40,$2E,$F8,$08,$30,$FA,$00,$03 ; fill tile $F8 attr $08; VRAM $30FA: 2 tiles
$0C:BBF9 .db $B6,$11,$B6,$51,$31,$04,$40,$2E ; tile:attr B6:11 B6:51; VRAM $3104: RLE fill 47 tiles
$0C:BC01 .db $F8,$08,$31,$06,$00,$03,$B6,$11 ; fill tile $F8 attr $08; VRAM $3106: 2 tiles; tile:attr B6:11
$0C:BC09 .db $B6,$51,$31,$24,$40,$2E,$F8,$08 ; tile:attr B6:51; VRAM $3124: RLE fill 47 tiles; fill tile $F8 attr $08
$0C:BC11 .db $31,$44,$40,$2E,$F8,$08,$31,$4A ; VRAM $3144: RLE fill 47 tiles; fill tile $F8 attr $08; VRAM $314A: 3 tiles
$0C:BC19 .db $00,$05,$8F,$09,$FE,$08,$8D,$49 ; tile:attr 8F:09 FE:08 8D:49
$0C:BC21 .db $31,$4F,$00,$09,$8F,$09,$8E,$49 ; VRAM $314F: 5 tiles; tile:attr 8F:09 8E:49
$0C:BC29 .db $F8,$08,$B6,$11,$B6,$51,$31,$64 ; tile:attr F8:08 B6:11 B6:51; VRAM $3164: RLE fill 47 tiles
$0C:BC31 .db $40,$2E,$F8,$08,$31,$69,$00,$0F ; fill tile $F8 attr $08; VRAM $3169: 8 tiles
$0C:BC39 .db $8F,$09,$FF,$08,$FE,$08,$FD,$08 ; tile:attr 8F:09 FF:08 FE:08 FD:08
$0C:BC41 .db $F8,$08,$8F,$09,$FF,$08,$9B,$C9 ; tile:attr F8:08 8F:09 FF:08 9B:C9
$0C:BC49 .db $31,$75,$00,$05,$8F,$09,$FE,$08 ; VRAM $3175: 3 tiles; tile:attr 8F:09 FE:08
$0C:BC51 .db $9B,$C9,$31,$84,$40,$2E,$F8,$08 ; tile:attr 9B:C9; VRAM $3184: RLE fill 47 tiles; fill tile $F8 attr $08
$0C:BC59 .db $31,$86,$00,$19,$8F,$09,$9C,$C9 ; VRAM $3186: 13 tiles; tile:attr 8F:09 9C:C9
$0C:BC61 .db $9B,$C9,$FF,$08,$FF,$08,$FE,$08 ; tile:attr 9B:C9 FF:08 FF:08 FE:08
$0C:BC69 .db $9B,$49,$8D,$49,$FF,$08,$9C,$C9 ; tile:attr 9B:49 8D:49 FF:08 9C:C9
$0C:BC71 .db $FE,$08,$FE,$08,$9B,$C9,$31,$95 ; tile:attr FE:08 FE:08 9B:C9; VRAM $3195: 3 tiles
$0C:BC79 .db $00,$05,$FF,$08,$FE,$08,$FD,$08 ; tile:attr FF:08 FE:08 FD:08
$0C:BC81 .db $31,$9A,$00,$03,$8F,$09,$8E,$49 ; VRAM $319A: 2 tiles; tile:attr 8F:09 8E:49
$0C:BC89 .db $31,$A4,$40,$2E,$F8,$08,$31,$A5 ; VRAM $31A4: RLE fill 47 tiles; fill tile $F8 attr $08; VRAM $31A5: 14 tiles
$0C:BC91 .db $00,$1B,$8F,$09,$9C,$C9,$FE,$08 ; tile:attr 8F:09 9C:C9 FE:08
$0C:BC99 .db $FD,$08,$FF,$08,$9C,$C9,$FE,$08 ; tile:attr FD:08 FF:08 9C:C9 FE:08
$0C:BCA1 .db $9B,$C9,$FD,$08,$FF,$08,$9C,$C9 ; tile:attr 9B:C9 FD:08 FF:08 9C:C9
$0C:BCA9 .db $FE,$08,$9B,$C9,$8D,$C9,$31,$B5 ; tile:attr FE:08 9B:C9 8D:C9; VRAM $31B5: 7 tiles
$0C:BCB1 .db $00,$0D,$FF,$08,$9C,$C9,$FD,$08 ; tile:attr FF:08 9C:C9 FD:08
$0C:BCB9 .db $8D,$49,$8F,$09,$9C,$C9,$9B,$C9 ; tile:attr 8D:49 8F:09 9C:C9 9B:C9
$0C:BCC1 .db $31,$C4,$00,$2F,$8F,$09,$9C,$C9 ; VRAM $31C4: 24 tiles; tile:attr 8F:09 9C:C9
$0C:BCC9 .db $FE,$08,$9B,$C9,$FD,$08,$9B,$89 ; tile:attr FE:08 9B:C9 FD:08 9B:89
$0C:BCD1 .db $FE,$08,$9B,$C9,$FD,$08,$9D,$09 ; tile:attr FE:08 9B:C9 FD:08 9D:09
$0C:BCD9 .db $9C,$C9,$FE,$08,$9B,$C9,$FD,$08 ; tile:attr 9C:C9 FE:08 9B:C9 FD:08
$0C:BCE1 .db $8D,$49,$F8,$08,$8F,$09,$9C,$C9 ; tile:attr 8D:49 F8:08 8F:09 9C:C9
$0C:BCE9 .db $FE,$08,$FD,$08,$9D,$09,$9C,$C9 ; tile:attr FE:08 FD:08 9D:09 9C:C9
$0C:BCF1 .db $9B,$C9,$FD,$08,$31,$E4,$40,$2E ; tile:attr 9B:C9 FD:08; VRAM $31E4: RLE fill 47 tiles
$0C:BCF9 .db $8A,$25,$32,$04,$40,$2E,$9A,$25 ; fill tile $8A attr $25; VRAM $3204: RLE fill 47 tiles; fill tile $9A attr $25
$0C:BD01 .db $FF ; End of image ($FF)
;;; $BD02..BE82: Screen image: cutscene 1, 2 and 5 background ;;;
;; ImagePointers entry 85 ($FF in $9460), used by cutscenes 1 (Iggy), 2 (Morton) and 5 (Roy). Same
;; layout as the other cutscene backgrounds.
$0C:BD02 .db $30,$00,$5F,$FE,$FA,$28,$30,$64 ; VRAM $3000: RLE fill 8191 tiles; fill tile $FA attr $28; VRAM $3064: RLE fill 47 tiles
$0C:BD0A .db $40,$2E,$F8,$00,$30,$76,$00,$03 ; fill tile $F8 attr $00; VRAM $3076: 2 tiles
$0C:BD12 .db $B6,$11,$B6,$51,$30,$84,$40,$2E ; tile:attr B6:11 B6:51; VRAM $3084: RLE fill 47 tiles
$0C:BD1A .db $F8,$00,$30,$84,$00,$03,$B6,$11 ; fill tile $F8 attr $00; VRAM $3084: 2 tiles; tile:attr B6:11
$0C:BD22 .db $B6,$51,$30,$A4,$40,$2E,$F8,$00 ; tile:attr B6:51; VRAM $30A4: RLE fill 47 tiles; fill tile $F8 attr $00
$0C:BD2A .db $30,$AF,$00,$03,$B6,$11,$B6,$51 ; VRAM $30AF: 2 tiles; tile:attr B6:11 B6:51
$0C:BD32 .db $30,$C4,$40,$2E,$F8,$00,$30,$E4 ; VRAM $30C4: RLE fill 47 tiles; fill tile $F8 attr $00; VRAM $30E4: RLE fill 47 tiles
$0C:BD3A .db $40,$2E,$F8,$00,$30,$FA,$00,$03 ; fill tile $F8 attr $00; VRAM $30FA: 2 tiles
$0C:BD42 .db $B6,$11,$B6,$51,$31,$04,$40,$2E ; tile:attr B6:11 B6:51; VRAM $3104: RLE fill 47 tiles
$0C:BD4A .db $F8,$00,$31,$06,$00,$03,$B6,$11 ; fill tile $F8 attr $00; VRAM $3106: 2 tiles; tile:attr B6:11
$0C:BD52 .db $B6,$51,$31,$0F,$00,$01,$89,$0D ; tile:attr B6:51; VRAM $310F: 1 tiles; tile:attr 89:0D
$0C:BD5A .db $31,$24,$40,$2E,$F8,$00,$31,$2E ; VRAM $3124: RLE fill 47 tiles; fill tile $F8 attr $00; VRAM $312E: 3 tiles
$0C:BD62 .db $00,$05,$88,$0D,$FC,$0C,$88,$4D ; tile:attr 88:0D FC:0C 88:4D
$0C:BD6A .db $31,$44,$40,$2E,$F8,$00,$31,$46 ; VRAM $3144: RLE fill 47 tiles; fill tile $F8 attr $00; VRAM $3146: 1 tiles
$0C:BD72 .db $00,$01,$89,$0D,$31,$4D,$00,$0D ; tile:attr 89:0D; VRAM $314D: 7 tiles
$0C:BD7A .db $88,$0D,$FC,$0C,$FC,$0C,$FC,$0C ; tile:attr 88:0D FC:0C FC:0C FC:0C
$0C:BD82 .db $88,$4D,$B6,$11,$B6,$51,$31,$64 ; tile:attr 88:4D B6:11 B6:51; VRAM $3164: RLE fill 47 tiles
$0C:BD8A .db $40,$2E,$F8,$00,$31,$65,$00,$05 ; fill tile $F8 attr $00; VRAM $3165: 3 tiles
$0C:BD92 .db $88,$0D,$FC,$0C,$88,$4D,$31,$6C ; tile:attr 88:0D FC:0C 88:4D; VRAM $316C: 1 tiles
$0C:BD9A .db $00,$01,$88,$0D,$31,$6D,$40,$08 ; tile:attr 88:0D; VRAM $316D: RLE fill 9 tiles
$0C:BDA2 .db $FC,$0C,$31,$72,$00,$01,$88,$4D ; fill tile $FC attr $0C; VRAM $3172: 1 tiles; tile:attr 88:4D
$0C:BDAA .db $31,$7B,$00,$01,$88,$0D,$31,$84 ; VRAM $317B: 1 tiles; tile:attr 88:0D; VRAM $3184: RLE fill 47 tiles
$0C:BDB2 .db $40,$2E,$F8,$00,$31,$84,$00,$09 ; fill tile $F8 attr $00; VRAM $3184: 5 tiles
$0C:BDBA .db $88,$0D,$FC,$0C,$FC,$0C,$FC,$0C ; tile:attr 88:0D FC:0C FC:0C FC:0C
$0C:BDC2 .db $88,$4D,$31,$8B,$00,$01,$88,$0D ; tile:attr 88:4D; VRAM $318B: 1 tiles; tile:attr 88:0D
$0C:BDCA .db $31,$8C,$40,$0C,$FC,$0C,$31,$93 ; VRAM $318C: RLE fill 13 tiles; fill tile $FC attr $0C; VRAM $3193: 1 tiles
$0C:BDD2 .db $00,$01,$88,$4D,$31,$9A,$00,$03 ; tile:attr 88:4D; VRAM $319A: 2 tiles
$0C:BDDA .db $88,$0D,$FC,$0C,$31,$A4,$00,$21 ; tile:attr 88:0D FC:0C; VRAM $31A4: 17 tiles
$0C:BDE2 .db $96,$0D,$97,$0D,$98,$0D,$99,$0D ; tile:attr 96:0D 97:0D 98:0D 99:0D
$0C:BDEA .db $FC,$0C,$88,$4D,$88,$0D,$FC,$0C ; tile:attr FC:0C 88:4D 88:0D FC:0C
$0C:BDF2 .db $96,$0D,$97,$0D,$98,$0D,$99,$0D ; tile:attr 96:0D 97:0D 98:0D 99:0D
$0C:BDFA .db $FC,$0C,$FC,$0C,$FC,$0C,$FC,$0C ; tile:attr FC:0C FC:0C FC:0C FC:0C
$0C:BE02 .db $88,$4D,$31,$B5,$40,$06,$F8,$00 ; tile:attr 88:4D; VRAM $31B5: RLE fill 7 tiles; fill tile $F8 attr $00
$0C:BE0A .db $31,$B9,$00,$05,$88,$0D,$96,$0D ; VRAM $31B9: 3 tiles; tile:attr 88:0D 96:0D
$0C:BE12 .db $97,$0D,$31,$C4,$00,$2F,$A6,$0D ; tile:attr 97:0D; VRAM $31C4: 24 tiles; tile:attr A6:0D
$0C:BE1A .db $A7,$0D,$A8,$0D,$A9,$0D,$FC,$0C ; tile:attr A7:0D A8:0D A9:0D FC:0C
$0C:BE22 .db $FC,$0C,$FC,$0C,$FC,$0C,$A6,$0D ; tile:attr FC:0C FC:0C FC:0C A6:0D
$0C:BE2A .db $A7,$0D,$A8,$0D,$A9,$0D,$FC,$0C ; tile:attr A7:0D A8:0D A9:0D FC:0C
$0C:BE32 .db $FC,$0C,$FC,$0C,$FC,$0C,$FC,$0C ; tile:attr FC:0C FC:0C FC:0C FC:0C
$0C:BE3A .db $88,$4D,$F8,$00,$F8,$00,$88,$0D ; tile:attr 88:4D F8:00 F8:00 88:0D
$0C:BE42 .db $FC,$0C,$A6,$0D,$A7,$0D,$31,$E4 ; tile:attr FC:0C A6:0D A7:0D; VRAM $31E4: RLE fill 47 tiles
$0C:BE4A .db $40,$2E,$8A,$35,$31,$E4,$00,$01 ; fill tile $8A attr $35; VRAM $31E4: 1 tiles
$0C:BE52 .db $B8,$35,$31,$E9,$00,$01,$B8,$35 ; tile:attr B8:35; VRAM $31E9: 1 tiles; tile:attr B8:35
$0C:BE5A .db $31,$F2,$00,$01,$B8,$35,$31,$FB ; VRAM $31F2: 1 tiles; tile:attr B8:35; VRAM $31FB: 1 tiles
$0C:BE62 .db $00,$01,$B8,$35,$32,$04,$40,$2E ; tile:attr B8:35; VRAM $3204: RLE fill 47 tiles
$0C:BE6A .db $9A,$35,$32,$07,$00,$01,$B7,$35 ; fill tile $9A attr $35; VRAM $3207: 1 tiles; tile:attr B7:35
$0C:BE72 .db $32,$0E,$00,$01,$B7,$35,$32,$15 ; VRAM $320E: 1 tiles; tile:attr B7:35; VRAM $3215: 1 tiles
$0C:BE7A .db $00,$01,$B7,$35,$32,$19,$00,$01 ; tile:attr B7:35; VRAM $3219: 1 tiles
$0C:BE82 .db $B7,$35,$FF ; tile:attr B7:35; End of image ($FF)
;;; $BE85..BEB5: Cutscene 1 text, line 1 ;;;
;; Cutscene 1 (Iggy) text line 1 of 8, Layer 3 text row at VRAM $5264: "Mario has defeated the".
;; Font: tiles $00-$19 capitals A-Z, $40-$59 lowercase, $1F space, $1B '.', $1D ',', $1E '!', $1A '-', $5A
;; '#', $5B '(', $5C ')', $5D apostrophe, $64-$6A digits 1-7; attribute $39.
;; Lines are queued by $C94E one per 32 frames; the timer counts down, so line 1 (entry offset 7) comes
;; first and line 8 last.
$0C:BE85 .db $52,$64,$00,$2F,$0C,$39,$40,$39 ; VRAM $5264: 24 tiles; "Ma"
$0C:BE8D .db $51,$39,$48,$39,$4E,$39,$1F,$39 ; "rio "
$0C:BE95 .db $1F,$39,$47,$39,$40,$39,$52,$39 ; " has"
$0C:BE9D .db $1F,$39,$1F,$39,$43,$39,$44,$39 ; " de"
$0C:BEA5 .db $45,$39,$44,$39,$40,$39,$53,$39 ; "feat"
$0C:BEAD .db $44,$39,$43,$39,$1F,$39,$53,$39 ; "ed t"
$0C:BEB5 .db $47,$39,$44,$39,$FF ; "he"; End of image ($FF)
;;; $BEBA..BEEA: Cutscene 1 text, line 2 ;;;
;; Cutscene 1 (Iggy) text line 2 of 8, Layer 3 text row at VRAM $5284: "demented Iggy Koopa in".
$0C:BEBA .db $52,$84,$00,$2F,$43,$39,$44,$39 ; VRAM $5284: 24 tiles; "de"
$0C:BEC2 .db $4C,$39,$44,$39,$4D,$39,$53,$39 ; "ment"
$0C:BECA .db $44,$39,$43,$39,$1F,$39,$1F,$39 ; "ed "
$0C:BED2 .db $08,$39,$46,$39,$46,$39,$58,$39 ; "Iggy"
$0C:BEDA .db $1F,$39,$0A,$39,$4E,$39,$4E,$39 ; " Koo"
$0C:BEE2 .db $4F,$39,$40,$39,$1F,$39,$1F,$39 ; "pa "
$0C:BEEA .db $48,$39,$4D,$39,$FF ; "in"; End of image ($FF)
;;; $BEEF..BF1F: Cutscene 1 text, line 3 ;;;
;; Cutscene 1 (Iggy) text line 3 of 8, Layer 3 text row at VRAM $52A4: "castle #1 and rescued".
$0C:BEEF .db $52,$A4,$00,$2F,$42,$39,$40,$39 ; VRAM $52A4: 24 tiles; "ca"
$0C:BEF7 .db $52,$39,$53,$39,$4B,$39,$44,$39 ; "stle"
$0C:BEFF .db $1F,$39,$1F,$39,$5A,$39,$64,$39 ; " #1"
$0C:BF07 .db $1F,$39,$1F,$39,$40,$39,$4D,$39 ; " an"
$0C:BF0F .db $43,$39,$1F,$39,$1F,$39,$51,$39 ; "d r"
$0C:BF17 .db $44,$39,$52,$39,$42,$39,$54,$39 ; "escu"
$0C:BF1F .db $44,$39,$43,$39,$FF ; "ed"; End of image ($FF)
;;; $BF24..BF54: Cutscene 1 text, line 4 ;;;
;; Cutscene 1 (Iggy) text line 4 of 8, Layer 3 text row at VRAM $52C4: "Yoshi's friend who is".
$0C:BF24 .db $52,$C4,$00,$2F,$18,$39,$4E,$39 ; VRAM $52C4: 24 tiles; "Yo"
$0C:BF2C .db $52,$39,$47,$39,$48,$39,$5D,$39 ; "shi'"
$0C:BF34 .db $52,$39,$1F,$39,$1F,$39,$45,$39 ; "s f"
$0C:BF3C .db $51,$39,$48,$39,$44,$39,$4D,$39 ; "rien"
$0C:BF44 .db $43,$39,$1F,$39,$1F,$39,$56,$39 ; "d w"
$0C:BF4C .db $47,$39,$4E,$39,$1F,$39,$1F,$39 ; "ho "
$0C:BF54 .db $48,$39,$52,$39,$FF ; "is"; End of image ($FF)
;;; $BF59..BF89: Cutscene 1 text, line 5 ;;;
;; Cutscene 1 (Iggy) text line 5 of 8, Layer 3 text row at VRAM $52E4: "still trapped in an egg.".
$0C:BF59 .db $52,$E4,$00,$2F,$52,$39,$53,$39 ; VRAM $52E4: 24 tiles; "st"
$0C:BF61 .db $48,$39,$4B,$39,$4B,$39,$1F,$39 ; "ill "
$0C:BF69 .db $53,$39,$51,$39,$40,$39,$4F,$39 ; "trap"
$0C:BF71 .db $4F,$39,$44,$39,$43,$39,$1F,$39 ; "ped "
$0C:BF79 .db $48,$39,$4D,$39,$1F,$39,$40,$39 ; "in a"
$0C:BF81 .db $4D,$39,$1F,$39,$44,$39,$46,$39 ; "n eg"
$0C:BF89 .db $46,$39,$1B,$39,$FF ; "g."; End of image ($FF)
;;; $BF8E..BFBE: Cutscene 1 text, line 6 ;;;
;; Cutscene 1 (Iggy) text line 6 of 8, Layer 3 text row at VRAM $5304: "Together, they now".
$0C:BF8E .db $53,$04,$00,$2F,$13,$39,$4E,$39 ; VRAM $5304: 24 tiles; "To"
$0C:BF96 .db $46,$39,$44,$39,$53,$39,$47,$39 ; "geth"
$0C:BF9E .db $44,$39,$51,$39,$1D,$39,$1F,$39 ; "er, "
$0C:BFA6 .db $1F,$39,$1F,$39,$1F,$39,$53,$39 ; " t"
$0C:BFAE .db $47,$39,$44,$39,$58,$39,$1F,$39 ; "hey "
$0C:BFB6 .db $1F,$39,$1F,$39,$1F,$39,$4D,$39 ; " n"
$0C:BFBE .db $4E,$39,$56,$39,$FF ; "ow"; End of image ($FF)
;;; $BFC3..BFEB: Cutscene 1 text, line 7 ;;;
;; Cutscene 1 (Iggy) text line 7 of 8, Layer 3 text row at VRAM $5324: "travel to Donut Land.".
$0C:BFC3 .db $53,$24,$00,$29,$53,$39,$51,$39 ; VRAM $5324: 21 tiles; "tr"
$0C:BFCB .db $40,$39,$55,$39,$44,$39,$4B,$39 ; "avel"
$0C:BFD3 .db $1F,$39,$53,$39,$4E,$39,$1F,$39 ; " to "
$0C:BFDB .db $03,$39,$4E,$39,$4D,$39,$54,$39 ; "Donu"
$0C:BFE3 .db $53,$39,$1F,$39,$0B,$39,$40,$39 ; "t La"
$0C:BFEB .db $4D,$39,$43,$39,$1B,$39 ; "nd."
;;; $BFF1..C022: Blank image; cutscene 2 text, line 1 ;;;
;; ImagePointers entry for a blank text line is just this $FF byte (used for line 8 of cutscenes 1, 3 and 5);
;; then cutscene 2 (Morton) text line 1 at VRAM $5264: "Morton Koopa Jr. of".
$0C:BFF1 .db $FF ; End of image ($FF)
$0C:BFF2 .db $52,$64,$00,$2F,$0C,$39,$4E,$39 ; VRAM $5264: 24 tiles; "Mo"
$0C:BFFA .db $51,$39,$53,$39,$4E,$39,$4D,$39 ; "rton"
$0C:C002 .db $1F,$39,$1F,$39,$1F,$39,$0A,$39 ; " K"
$0C:C00A .db $4E,$39,$4E,$39,$4F,$39,$40,$39 ; "oopa"
$0C:C012 .db $1F,$39,$1F,$39,$1F,$39,$09,$39 ; " J"
$0C:C01A .db $51,$39,$1B,$39,$1F,$39,$1F,$39 ; "r. "
$0C:C022 .db $4E,$39,$45,$39,$FF ; "of"; End of image ($FF)
;;; $C027..C057: Cutscene 2 text, line 2 ;;;
;; Cutscene 2 (Morton) text line 2 of 8, Layer 3 text row at VRAM $5284: "castle #2 is now just a".
$0C:C027 .db $52,$84,$00,$2F,$42,$39,$40,$39 ; VRAM $5284: 24 tiles; "ca"
$0C:C02F .db $52,$39,$53,$39,$4B,$39,$44,$39 ; "stle"
$0C:C037 .db $1F,$39,$1F,$39,$5A,$39,$65,$39 ; " #2"
$0C:C03F .db $1F,$39,$48,$39,$52,$39,$1F,$39 ; " is "
$0C:C047 .db $4D,$39,$4E,$39,$56,$39,$1F,$39 ; "now "
$0C:C04F .db $49,$39,$54,$39,$52,$39,$53,$39 ; "just"
$0C:C057 .db $1F,$39,$40,$39,$FF ; " a"; End of image ($FF)
;;; $C05C..C08C: Cutscene 2 text, line 3 ;;;
;; Cutscene 2 (Morton) text line 3 of 8, Layer 3 text row at VRAM $52A4: "memory. The next area is".
$0C:C05C .db $52,$A4,$00,$2F,$4C,$39,$44,$39 ; VRAM $52A4: 24 tiles; "me"
$0C:C064 .db $4C,$39,$4E,$39,$51,$39,$58,$39 ; "mory"
$0C:C06C .db $1B,$39,$1F,$39,$13,$39,$47,$39 ; ". Th"
$0C:C074 .db $44,$39,$1F,$39,$4D,$39,$44,$39 ; "e ne"
$0C:C07C .db $57,$39,$53,$39,$1F,$39,$40,$39 ; "xt a"
$0C:C084 .db $51,$39,$44,$39,$40,$39,$1F,$39 ; "rea "
$0C:C08C .db $48,$39,$52,$39,$FF ; "is"; End of image ($FF)
;;; $C091..C0C1: Cutscene 2 text, line 4 ;;;
;; Cutscene 2 (Morton) text line 4 of 8, Layer 3 text row at VRAM $52C4: "the underground Vanilla".
$0C:C091 .db $52,$C4,$00,$2F,$53,$39,$47,$39 ; VRAM $52C4: 24 tiles; "th"
$0C:C099 .db $44,$39,$1F,$39,$1F,$39,$54,$39 ; "e u"
$0C:C0A1 .db $4D,$39,$43,$39,$44,$39,$51,$39 ; "nder"
$0C:C0A9 .db $46,$39,$51,$39,$4E,$39,$54,$39 ; "grou"
$0C:C0B1 .db $4D,$39,$43,$39,$1F,$39,$15,$39 ; "nd V"
$0C:C0B9 .db $40,$39,$4D,$39,$48,$39,$4B,$39 ; "anil"
$0C:C0C1 .db $4B,$39,$40,$39,$FF ; "la"; End of image ($FF)
;;; $C0C6..C0F6: Cutscene 2 text, line 5 ;;;
;; Cutscene 2 (Morton) text line 5 of 8, Layer 3 text row at VRAM $52E4: "Dome. What traps await".
$0C:C0C6 .db $52,$E4,$00,$2F,$03,$39,$4E,$39 ; VRAM $52E4: 24 tiles; "Do"
$0C:C0CE .db $4C,$39,$44,$39,$1B,$39,$1F,$39 ; "me. "
$0C:C0D6 .db $1F,$39,$1F,$39,$16,$39,$47,$39 ; " Wh"
$0C:C0DE .db $40,$39,$53,$39,$1F,$39,$53,$39 ; "at t"
$0C:C0E6 .db $51,$39,$40,$39,$4F,$39,$52,$39 ; "raps"
$0C:C0EE .db $1F,$39,$40,$39,$56,$39,$40,$39 ; " awa"
$0C:C0F6 .db $48,$39,$53,$39,$FF ; "it"; End of image ($FF)
;;; $C0FB..C12B: Cutscene 2 text, line 6 ;;;
;; Cutscene 2 (Morton) text line 6 of 8, Layer 3 text row at VRAM $5304: "Mario in this new world!".
$0C:C0FB .db $53,$04,$00,$2F,$0C,$39,$40,$39 ; VRAM $5304: 24 tiles; "Ma"
$0C:C103 .db $51,$39,$48,$39,$4E,$39,$1F,$39 ; "rio "
$0C:C10B .db $48,$39,$4D,$39,$1F,$39,$53,$39 ; "in t"
$0C:C113 .db $47,$39,$48,$39,$52,$39,$1F,$39 ; "his "
$0C:C11B .db $4D,$39,$44,$39,$56,$39,$1F,$39 ; "new "
$0C:C123 .db $56,$39,$4E,$39,$51,$39,$4B,$39 ; "worl"
$0C:C12B .db $43,$39,$1E,$39,$FF ; "d!"; End of image ($FF)
;;; $C130..C160: Cutscene 2 text, line 7 ;;;
;; Cutscene 2 (Morton) text line 7 of 8, Layer 3 text row at VRAM $5324: "What will become of".
$0C:C130 .db $53,$24,$00,$2F,$16,$39,$47,$39 ; VRAM $5324: 24 tiles; "Wh"
$0C:C138 .db $40,$39,$53,$39,$1F,$39,$1F,$39 ; "at "
$0C:C140 .db $1F,$39,$56,$39,$48,$39,$4B,$39 ; " wil"
$0C:C148 .db $4B,$39,$1F,$39,$1F,$39,$1F,$39 ; "l "
$0C:C150 .db $41,$39,$44,$39,$42,$39,$4E,$39 ; "beco"
$0C:C158 .db $4C,$39,$44,$39,$1F,$39,$1F,$39 ; "me "
$0C:C160 .db $4E,$39,$45,$39,$FF ; "of"; End of image ($FF)
;;; $C165..C18D: Cutscene 2 text, line 8 ;;;
;; Cutscene 2 (Morton) text line 8 of 8, Layer 3 text row at VRAM $5344: "Princess Toadstool!".
$0C:C165 .db $53,$44,$00,$25,$0F,$39,$51,$39 ; VRAM $5344: 19 tiles; "Pr"
$0C:C16D .db $48,$39,$4D,$39,$42,$39,$44,$39 ; "ince"
$0C:C175 .db $52,$39,$52,$39,$1F,$39,$13,$39 ; "ss T"
$0C:C17D .db $4E,$39,$40,$39,$43,$39,$52,$39 ; "oads"
$0C:C185 .db $53,$39,$4E,$39,$4E,$39,$4B,$39 ; "tool"
$0C:C18D .db $1E,$39,$FF ; "!"; End of image ($FF)
;;; $C190..C1C0: Cutscene 3 text, line 1 ;;;
;; Cutscene 3 (Lemmy) text line 1 of 8, Layer 3 text row at VRAM $5264: "Mario has triumphed over".
$0C:C190 .db $52,$64,$00,$2F,$0C,$39,$40,$39 ; VRAM $5264: 24 tiles; "Ma"
$0C:C198 .db $51,$39,$48,$39,$4E,$39,$1F,$39 ; "rio "
$0C:C1A0 .db $47,$39,$40,$39,$52,$39,$1F,$39 ; "has "
$0C:C1A8 .db $53,$39,$51,$39,$48,$39,$54,$39 ; "triu"
$0C:C1B0 .db $4C,$39,$4F,$39,$47,$39,$44,$39 ; "mphe"
$0C:C1B8 .db $43,$39,$1F,$39,$4E,$39,$55,$39 ; "d ov"
$0C:C1C0 .db $44,$39,$51,$39,$FF ; "er"; End of image ($FF)
;;; $C1C5..C1F5: Cutscene 3 text, line 2 ;;;
;; Cutscene 3 (Lemmy) text line 2 of 8, Layer 3 text row at VRAM $5284: "Lemmy Koopa of castle".
$0C:C1C5 .db $52,$84,$00,$2F,$0B,$39,$44,$39 ; VRAM $5284: 24 tiles; "Le"
$0C:C1CD .db $4C,$39,$4C,$39,$58,$39,$1F,$39 ; "mmy "
$0C:C1D5 .db $1F,$39,$0A,$39,$4E,$39,$4E,$39 ; " Koo"
$0C:C1DD .db $4F,$39,$40,$39,$1F,$39,$1F,$39 ; "pa "
$0C:C1E5 .db $4E,$39,$45,$39,$1F,$39,$1F,$39 ; "of "
$0C:C1ED .db $42,$39,$40,$39,$52,$39,$53,$39 ; "cast"
$0C:C1F5 .db $4B,$39,$44,$39,$FF ; "le"; End of image ($FF)
;;; $C1FA..C22A: Cutscene 3 text, line 3 ;;;
;; Cutscene 3 (Lemmy) text line 3 of 8, Layer 3 text row at VRAM $52A4: "#3. Mario's quest is".
$0C:C1FA .db $52,$A4,$00,$2F,$5A,$39,$66,$39 ; VRAM $52A4: 24 tiles; "#3"
$0C:C202 .db $1B,$39,$1F,$39,$1F,$39,$0C,$39 ; ". M"
$0C:C20A .db $40,$39,$51,$39,$48,$39,$4E,$39 ; "ario"
$0C:C212 .db $5D,$39,$52,$39,$1F,$39,$1F,$39 ; "'s "
$0C:C21A .db $50,$39,$54,$39,$44,$39,$52,$39 ; "ques"
$0C:C222 .db $53,$39,$1F,$39,$1F,$39,$1F,$39 ; "t "
$0C:C22A .db $48,$39,$52,$39,$FF ; "is"; End of image ($FF)
;;; $C22F..C25F: Cutscene 3 text, line 4 ;;;
;; Cutscene 3 (Lemmy) text line 4 of 8, Layer 3 text row at VRAM $52C4: "starting to get much".
$0C:C22F .db $52,$C4,$00,$2F,$52,$39,$53,$39 ; VRAM $52C4: 24 tiles; "st"
$0C:C237 .db $40,$39,$51,$39,$53,$39,$48,$39 ; "arti"
$0C:C23F .db $4D,$39,$46,$39,$1F,$39,$1F,$39 ; "ng "
$0C:C247 .db $53,$39,$4E,$39,$1F,$39,$1F,$39 ; "to "
$0C:C24F .db $46,$39,$44,$39,$53,$39,$1F,$39 ; "get "
$0C:C257 .db $1F,$39,$1F,$39,$4C,$39,$54,$39 ; " mu"
$0C:C25F .db $42,$39,$47,$39,$FF ; "ch"; End of image ($FF)
;;; $C264..C294: Cutscene 3 text, line 5 ;;;
;; Cutscene 3 (Lemmy) text line 5 of 8, Layer 3 text row at VRAM $52E4: "more difficult. Have".
$0C:C264 .db $52,$E4,$00,$2F,$4C,$39,$4E,$39 ; VRAM $52E4: 24 tiles; "mo"
$0C:C26C .db $51,$39,$44,$39,$1F,$39,$43,$39 ; "re d"
$0C:C274 .db $48,$39,$45,$39,$45,$39,$48,$39 ; "iffi"
$0C:C27C .db $42,$39,$54,$39,$4B,$39,$53,$39 ; "cult"
$0C:C284 .db $1B,$39,$1F,$39,$1F,$39,$1F,$39 ; ". "
$0C:C28C .db $1F,$39,$1F,$39,$07,$39,$40,$39 ; " Ha"
$0C:C294 .db $55,$39,$44,$39,$FF ; "ve"; End of image ($FF)
;;; $C299..C2C9: Cutscene 3 text, line 6 ;;;
;; Cutscene 3 (Lemmy) text line 6 of 8, Layer 3 text row at VRAM $5304: "you found the Red and".
$0C:C299 .db $53,$04,$00,$2F,$58,$39,$4E,$39 ; VRAM $5304: 24 tiles; "yo"
$0C:C2A1 .db $54,$39,$1F,$39,$1F,$39,$45,$39 ; "u f"
$0C:C2A9 .db $4E,$39,$54,$39,$4D,$39,$43,$39 ; "ound"
$0C:C2B1 .db $1F,$39,$1F,$39,$53,$39,$47,$39 ; " th"
$0C:C2B9 .db $44,$39,$1F,$39,$11,$39,$44,$39 ; "e Re"
$0C:C2C1 .db $43,$39,$1F,$39,$1F,$39,$40,$39 ; "d a"
$0C:C2C9 .db $4D,$39,$43,$39,$FF ; "nd"; End of image ($FF)
;;; $C2CE..C2F6: Cutscene 3 text, line 7 ;;;
;; Cutscene 3 (Lemmy) text line 7 of 8, Layer 3 text row at VRAM $5324: "Green Switches yet!".
$0C:C2CE .db $53,$24,$00,$25,$06,$39,$51,$39 ; VRAM $5324: 19 tiles; "Gr"
$0C:C2D6 .db $44,$39,$44,$39,$4D,$39,$1F,$39 ; "een "
$0C:C2DE .db $12,$39,$56,$39,$48,$39,$53,$39 ; "Swit"
$0C:C2E6 .db $42,$39,$47,$39,$44,$39,$52,$39 ; "ches"
$0C:C2EE .db $1F,$39,$58,$39,$44,$39,$53,$39 ; " yet"
$0C:C2F6 .db $1E,$39,$FF ; "!"; End of image ($FF)
;;; $C2F9..C329: Cutscene 4 text, line 1 ;;;
;; Cutscene 4 (Ludwig) text line 1 of 8, Layer 3 text row at VRAM $5264: "Ludwig von Koopa's days".
$0C:C2F9 .db $52,$64,$00,$2F,$0B,$39,$54,$39 ; VRAM $5264: 24 tiles; "Lu"
$0C:C301 .db $43,$39,$56,$39,$48,$39,$46,$39 ; "dwig"
$0C:C309 .db $1F,$39,$55,$39,$4E,$39,$4D,$39 ; " von"
$0C:C311 .db $1F,$39,$1F,$39,$0A,$39,$4E,$39 ; " Ko"
$0C:C319 .db $4E,$39,$4F,$39,$40,$39,$5D,$39 ; "opa'"
$0C:C321 .db $52,$39,$1F,$39,$43,$39,$40,$39 ; "s da"
$0C:C329 .db $58,$39,$52,$39,$FF ; "ys"; End of image ($FF)
;;; $C32E..C35E: Cutscene 4 text, line 2 ;;;
;; Cutscene 4 (Ludwig) text line 2 of 8, Layer 3 text row at VRAM $5284: "of composing Koopa".
$0C:C32E .db $52,$84,$00,$2F,$4E,$39,$45,$39 ; VRAM $5284: 24 tiles; "of"
$0C:C336 .db $1F,$39,$1F,$39,$1F,$39,$1F,$39 ; " "
$0C:C33E .db $42,$39,$4E,$39,$4C,$39,$4F,$39 ; "comp"
$0C:C346 .db $4E,$39,$52,$39,$48,$39,$4D,$39 ; "osin"
$0C:C34E .db $46,$39,$1F,$39,$1F,$39,$1F,$39 ; "g "
$0C:C356 .db $1F,$39,$0A,$39,$4E,$39,$4E,$39 ; " Koo"
$0C:C35E .db $4F,$39,$40,$39,$FF ; "pa"; End of image ($FF)
;;; $C363..C393: Cutscene 4 text, line 3 ;;;
;; Cutscene 4 (Ludwig) text line 3 of 8, Layer 3 text row at VRAM $52A4: "symphonies in castle #4".
$0C:C363 .db $52,$A4,$00,$2F,$52,$39,$58,$39 ; VRAM $52A4: 24 tiles; "sy"
$0C:C36B .db $4C,$39,$4F,$39,$47,$39,$4E,$39 ; "mpho"
$0C:C373 .db $4D,$39,$48,$39,$44,$39,$52,$39 ; "nies"
$0C:C37B .db $1F,$39,$48,$39,$4D,$39,$1F,$39 ; " in "
$0C:C383 .db $42,$39,$40,$39,$52,$39,$53,$39 ; "cast"
$0C:C38B .db $4B,$39,$44,$39,$1F,$39,$1F,$39 ; "le "
$0C:C393 .db $5A,$39,$67,$39,$FF ; "#4"; End of image ($FF)
;;; $C398..C3C8: Cutscene 4 text, line 4 ;;;
;; Cutscene 4 (Ludwig) text line 4 of 8, Layer 3 text row at VRAM $52C4: "are over. The Forest of".
$0C:C398 .db $52,$C4,$00,$2F,$40,$39,$51,$39 ; VRAM $52C4: 24 tiles; "ar"
$0C:C3A0 .db $44,$39,$1F,$39,$4E,$39,$55,$39 ; "e ov"
$0C:C3A8 .db $44,$39,$51,$39,$1B,$39,$1F,$39 ; "er. "
$0C:C3B0 .db $1F,$39,$13,$39,$47,$39,$44,$39 ; " The"
$0C:C3B8 .db $1F,$39,$05,$39,$4E,$39,$51,$39 ; " For"
$0C:C3C0 .db $44,$39,$52,$39,$53,$39,$1F,$39 ; "est "
$0C:C3C8 .db $4E,$39,$45,$39,$FF ; "of"; End of image ($FF)
;;; $C3CD..C3FD: Cutscene 4 text, line 5 ;;;
;; Cutscene 4 (Ludwig) text line 5 of 8, Layer 3 text row at VRAM $52E4: "Illusion lies ahead.".
$0C:C3CD .db $52,$E4,$00,$2F,$08,$39,$4B,$39 ; VRAM $52E4: 24 tiles; "Il"
$0C:C3D5 .db $4B,$39,$54,$39,$52,$39,$48,$39 ; "lusi"
$0C:C3DD .db $4E,$39,$4D,$39,$1F,$39,$1F,$39 ; "on "
$0C:C3E5 .db $1F,$39,$4B,$39,$48,$39,$44,$39 ; " lie"
$0C:C3ED .db $52,$39,$1F,$39,$1F,$39,$1F,$39 ; "s "
$0C:C3F5 .db $40,$39,$47,$39,$44,$39,$40,$39 ; "ahea"
$0C:C3FD .db $43,$39,$1B,$39,$FF ; "d."; End of image ($FF)
;;; $C402..C432: Cutscene 4 text, line 6 ;;;
;; Cutscene 4 (Ludwig) text line 6 of 8, Layer 3 text row at VRAM $5304: "Mario must use his brain".
$0C:C402 .db $53,$04,$00,$2F,$0C,$39,$40,$39 ; VRAM $5304: 24 tiles; "Ma"
$0C:C40A .db $51,$39,$48,$39,$4E,$39,$1F,$39 ; "rio "
$0C:C412 .db $4C,$39,$54,$39,$52,$39,$53,$39 ; "must"
$0C:C41A .db $1F,$39,$54,$39,$52,$39,$44,$39 ; " use"
$0C:C422 .db $1F,$39,$47,$39,$48,$39,$52,$39 ; " his"
$0C:C42A .db $1F,$39,$41,$39,$51,$39,$40,$39 ; " bra"
$0C:C432 .db $48,$39,$4D,$39,$FF ; "in"; End of image ($FF)
;;; $C437..C467: Cutscene 4 text, line 7 ;;;
;; Cutscene 4 (Ludwig) text line 7 of 8, Layer 3 text row at VRAM $5324: "to solve the puzzle of".
$0C:C437 .db $53,$24,$00,$2F,$53,$39,$4E,$39 ; VRAM $5324: 24 tiles; "to"
$0C:C43F .db $1F,$39,$52,$39,$4E,$39,$4B,$39 ; " sol"
$0C:C447 .db $55,$39,$44,$39,$1F,$39,$1F,$39 ; "ve "
$0C:C44F .db $53,$39,$47,$39,$44,$39,$1F,$39 ; "the "
$0C:C457 .db $4F,$39,$54,$39,$59,$39,$59,$39 ; "puzz"
$0C:C45F .db $4B,$39,$44,$39,$1F,$39,$1F,$39 ; "le "
$0C:C467 .db $4E,$39,$45,$39,$FF ; "of"; End of image ($FF)
;;; $C46C..C49C: Cutscene 4 text, line 8 ;;;
;; Cutscene 4 (Ludwig) text line 8 of 8, Layer 3 text row at VRAM $5344: "this perplexing forest.".
$0C:C46C .db $53,$44,$00,$2D,$53,$39,$47,$39 ; VRAM $5344: 23 tiles; "th"
$0C:C474 .db $48,$39,$52,$39,$1F,$39,$4F,$39 ; "is p"
$0C:C47C .db $44,$39,$51,$39,$4F,$39,$4B,$39 ; "erpl"
$0C:C484 .db $44,$39,$57,$39,$48,$39,$4D,$39 ; "exin"
$0C:C48C .db $46,$39,$1F,$39,$45,$39,$4E,$39 ; "g fo"
$0C:C494 .db $51,$39,$44,$39,$52,$39,$53,$39 ; "rest"
$0C:C49C .db $1B,$39,$FF ; "."; End of image ($FF)
;;; $C49F..C4CF: Cutscene 5 text, line 1 ;;;
;; Cutscene 5 (Roy) text line 1 of 8, Layer 3 text row at VRAM $5264: "Mario found his way".
$0C:C49F .db $52,$64,$00,$2F,$0C,$39,$40,$39 ; VRAM $5264: 24 tiles; "Ma"
$0C:C4A7 .db $51,$39,$48,$39,$4E,$39,$1F,$39 ; "rio "
$0C:C4AF .db $1F,$39,$1F,$39,$45,$39,$4E,$39 ; " fo"
$0C:C4B7 .db $54,$39,$4D,$39,$43,$39,$1F,$39 ; "und "
$0C:C4BF .db $1F,$39,$1F,$39,$47,$39,$48,$39 ; " hi"
$0C:C4C7 .db $52,$39,$1F,$39,$1F,$39,$56,$39 ; "s w"
$0C:C4CF .db $40,$39,$58,$39,$FF ; "ay"; End of image ($FF)
;;; $C4D4..C504: Cutscene 5 text, line 2 ;;;
;; Cutscene 5 (Roy) text line 2 of 8, Layer 3 text row at VRAM $5284: "through the Forest of".
$0C:C4D4 .db $52,$84,$00,$2F,$53,$39,$47,$39 ; VRAM $5284: 24 tiles; "th"
$0C:C4DC .db $51,$39,$4E,$39,$54,$39,$46,$39 ; "roug"
$0C:C4E4 .db $47,$39,$1F,$39,$1F,$39,$53,$39 ; "h t"
$0C:C4EC .db $47,$39,$44,$39,$1F,$39,$1F,$39 ; "he "
$0C:C4F4 .db $05,$39,$4E,$39,$51,$39,$44,$39 ; "Fore"
$0C:C4FC .db $52,$39,$53,$39,$1F,$39,$1F,$39 ; "st "
$0C:C504 .db $4E,$39,$45,$39,$FF ; "of"; End of image ($FF)
;;; $C509..C539: Cutscene 5 text, line 3 ;;;
;; Cutscene 5 (Roy) text line 3 of 8, Layer 3 text row at VRAM $52A4: "Illusion and has put an".
$0C:C509 .db $52,$A4,$00,$2F,$08,$39,$4B,$39 ; VRAM $52A4: 24 tiles; "Il"
$0C:C511 .db $4B,$39,$54,$39,$52,$39,$48,$39 ; "lusi"
$0C:C519 .db $4E,$39,$4D,$39,$1F,$39,$40,$39 ; "on a"
$0C:C521 .db $4D,$39,$43,$39,$1F,$39,$1F,$39 ; "nd "
$0C:C529 .db $47,$39,$40,$39,$52,$39,$1F,$39 ; "has "
$0C:C531 .db $4F,$39,$54,$39,$53,$39,$1F,$39 ; "put "
$0C:C539 .db $40,$39,$4D,$39,$FF ; "an"; End of image ($FF)
;;; $C53E..C56E: Cutscene 5 text, line 4 ;;;
;; Cutscene 5 (Roy) text line 4 of 8, Layer 3 text row at VRAM $52C4: "end to Roy Koopa of".
$0C:C53E .db $52,$C4,$00,$2F,$44,$39,$4D,$39 ; VRAM $52C4: 24 tiles; "en"
$0C:C546 .db $43,$39,$1F,$39,$1F,$39,$53,$39 ; "d t"
$0C:C54E .db $4E,$39,$1F,$39,$1F,$39,$1F,$39 ; "o "
$0C:C556 .db $11,$39,$4E,$39,$58,$39,$1F,$39 ; "Roy "
$0C:C55E .db $1F,$39,$0A,$39,$4E,$39,$4E,$39 ; " Koo"
$0C:C566 .db $4F,$39,$40,$39,$1F,$39,$1F,$39 ; "pa "
$0C:C56E .db $4E,$39,$45,$39,$FF ; "of"; End of image ($FF)
;;; $C573..C5A3: Cutscene 5 text, line 5 ;;;
;; Cutscene 5 (Roy) text line 5 of 8, Layer 3 text row at VRAM $52E4: "castle #5. Onward to".
$0C:C573 .db $52,$E4,$00,$2F,$42,$39,$40,$39 ; VRAM $52E4: 24 tiles; "ca"
$0C:C57B .db $52,$39,$53,$39,$4B,$39,$44,$39 ; "stle"
$0C:C583 .db $1F,$39,$1F,$39,$5A,$39,$68,$39 ; " #5"
$0C:C58B .db $1B,$39,$1F,$39,$1F,$39,$1F,$39 ; ". "
$0C:C593 .db $0E,$39,$4D,$39,$56,$39,$40,$39 ; "Onwa"
$0C:C59B .db $51,$39,$43,$39,$1F,$39,$1F,$39 ; "rd "
$0C:C5A3 .db $53,$39,$4E,$39,$FF ; "to"; End of image ($FF)
;;; $C5A8..C5D8: Cutscene 5 text, line 6 ;;;
;; Cutscene 5 (Roy) text line 6 of 8, Layer 3 text row at VRAM $5304: "the dangerous (but".
$0C:C5A8 .db $53,$04,$00,$2F,$53,$39,$47,$39 ; VRAM $5304: 24 tiles; "th"
$0C:C5B0 .db $44,$39,$1F,$39,$1F,$39,$1F,$39 ; "e "
$0C:C5B8 .db $1F,$39,$43,$39,$40,$39,$4D,$39 ; " dan"
$0C:C5C0 .db $46,$39,$44,$39,$51,$39,$4E,$39 ; "gero"
$0C:C5C8 .db $54,$39,$52,$39,$1F,$39,$1F,$39 ; "us "
$0C:C5D0 .db $1F,$39,$1F,$39,$5B,$39,$41,$39 ; " (b"
$0C:C5D8 .db $54,$39,$53,$39,$FF ; "ut"; End of image ($FF)
;;; $C5DD..C60D: Cutscene 5 text, line 7 ;;;
;; Cutscene 5 (Roy) text line 7 of 8, Layer 3 text row at VRAM $5324: "tasty) Chocolate Island-".
$0C:C5DD .db $53,$24,$00,$2F,$53,$39,$40,$39 ; VRAM $5324: 24 tiles; "ta"
$0C:C5E5 .db $52,$39,$53,$39,$58,$39,$5C,$39 ; "sty)"
$0C:C5ED .db $1F,$39,$02,$39,$47,$39,$4E,$39 ; " Cho"
$0C:C5F5 .db $42,$39,$4E,$39,$4B,$39,$40,$39 ; "cola"
$0C:C5FD .db $53,$39,$44,$39,$1F,$39,$08,$39 ; "te I"
$0C:C605 .db $52,$39,$4B,$39,$40,$39,$4D,$39 ; "slan"
$0C:C60D .db $43,$39,$1A,$39,$FF ; "d-"; End of image ($FF)
;;; $C612..C642: Cutscene 6 text, line 1 ;;;
;; Cutscene 6 (Wendy) text line 1 of 8, Layer 3 text row at VRAM $5264: "Wendy O. Koopa in castle".
$0C:C612 .db $52,$64,$00,$2F,$16,$39,$44,$39 ; VRAM $5264: 24 tiles; "We"
$0C:C61A .db $4D,$39,$43,$39,$58,$39,$1F,$39 ; "ndy "
$0C:C622 .db $0E,$39,$1B,$39,$1F,$39,$0A,$39 ; "O. K"
$0C:C62A .db $4E,$39,$4E,$39,$4F,$39,$40,$39 ; "oopa"
$0C:C632 .db $1F,$39,$48,$39,$4D,$39,$1F,$39 ; " in "
$0C:C63A .db $42,$39,$40,$39,$52,$39,$53,$39 ; "cast"
$0C:C642 .db $4B,$39,$44,$39,$FF ; "le"; End of image ($FF)
;;; $C647..C677: Cutscene 6 text, line 2 ;;;
;; Cutscene 6 (Wendy) text line 2 of 8, Layer 3 text row at VRAM $5284: "#6 has sung her last".
$0C:C647 .db $52,$84,$00,$2F,$5A,$39,$69,$39 ; VRAM $5284: 24 tiles; "#6"
$0C:C64F .db $1F,$39,$1F,$39,$47,$39,$40,$39 ; " ha"
$0C:C657 .db $52,$39,$1F,$39,$1F,$39,$52,$39 ; "s s"
$0C:C65F .db $54,$39,$4D,$39,$46,$39,$1F,$39 ; "ung "
$0C:C667 .db $1F,$39,$47,$39,$44,$39,$51,$39 ; " her"
$0C:C66F .db $1F,$39,$1F,$39,$4B,$39,$40,$39 ; " la"
$0C:C677 .db $52,$39,$53,$39,$FF ; "st"; End of image ($FF)
;;; $C67C..C6AC: Cutscene 6 text, line 3 ;;;
;; Cutscene 6 (Wendy) text line 3 of 8, Layer 3 text row at VRAM $52A4: "song. Mario must meet".
$0C:C67C .db $52,$A4,$00,$2F,$52,$39,$4E,$39 ; VRAM $52A4: 24 tiles; "so"
$0C:C684 .db $4D,$39,$46,$39,$1B,$39,$1F,$39 ; "ng. "
$0C:C68C .db $1F,$39,$0C,$39,$40,$39,$51,$39 ; " Mar"
$0C:C694 .db $48,$39,$4E,$39,$1F,$39,$1F,$39 ; "io "
$0C:C69C .db $4C,$39,$54,$39,$52,$39,$53,$39 ; "must"
$0C:C6A4 .db $1F,$39,$1F,$39,$4C,$39,$44,$39 ; " me"
$0C:C6AC .db $44,$39,$53,$39,$FF ; "et"; End of image ($FF)
;;; $C6B1..C6E1: Cutscene 6 text, line 4 ;;;
;; Cutscene 6 (Wendy) text line 4 of 8, Layer 3 text row at VRAM $52C4: "the challenge that is".
$0C:C6B1 .db $52,$C4,$00,$2F,$53,$39,$47,$39 ; VRAM $52C4: 24 tiles; "th"
$0C:C6B9 .db $44,$39,$1F,$39,$1F,$39,$42,$39 ; "e c"
$0C:C6C1 .db $47,$39,$40,$39,$4B,$39,$4B,$39 ; "hall"
$0C:C6C9 .db $44,$39,$4D,$39,$46,$39,$44,$39 ; "enge"
$0C:C6D1 .db $1F,$39,$1F,$39,$53,$39,$47,$39 ; " th"
$0C:C6D9 .db $40,$39,$53,$39,$1F,$39,$1F,$39 ; "at "
$0C:C6E1 .db $48,$39,$52,$39,$FF ; "is"; End of image ($FF)
;;; $C6E6..C716: Cutscene 6 text, line 5 ;;;
;; Cutscene 6 (Wendy) text line 5 of 8, Layer 3 text row at VRAM $52E4: "now before him. There".
$0C:C6E6 .db $52,$E4,$00,$2F,$4D,$39,$4E,$39 ; VRAM $52E4: 24 tiles; "no"
$0C:C6EE .db $56,$39,$1F,$39,$41,$39,$44,$39 ; "w be"
$0C:C6F6 .db $45,$39,$4E,$39,$51,$39,$44,$39 ; "fore"
$0C:C6FE .db $1F,$39,$47,$39,$48,$39,$4C,$39 ; " him"
$0C:C706 .db $1B,$39,$1F,$39,$1F,$39,$1F,$39 ; ". "
$0C:C70E .db $1F,$39,$13,$39,$47,$39,$44,$39 ; " The"
$0C:C716 .db $51,$39,$44,$39,$FF ; "re"; End of image ($FF)
;;; $C71B..C74B: Cutscene 6 text, line 6 ;;;
;; Cutscene 6 (Wendy) text line 6 of 8, Layer 3 text row at VRAM $5304: "is a sunken ship that".
$0C:C71B .db $53,$04,$00,$2F,$48,$39,$52,$39 ; VRAM $5304: 24 tiles; "is"
$0C:C723 .db $1F,$39,$40,$39,$1F,$39,$1F,$39 ; " a "
$0C:C72B .db $52,$39,$54,$39,$4D,$39,$4A,$39 ; "sunk"
$0C:C733 .db $44,$39,$4D,$39,$1F,$39,$1F,$39 ; "en "
$0C:C73B .db $52,$39,$47,$39,$48,$39,$4F,$39 ; "ship"
$0C:C743 .db $1F,$39,$1F,$39,$53,$39,$47,$39 ; " th"
$0C:C74B .db $40,$39,$53,$39,$FF ; "at"; End of image ($FF)
;;; $C750..C780: Cutscene 6 text, line 7 ;;;
;; Cutscene 6 (Wendy) text line 7 of 8, Layer 3 text row at VRAM $5324: "appears to be a gateway".
$0C:C750 .db $53,$24,$00,$2F,$40,$39,$4F,$39 ; VRAM $5324: 24 tiles; "ap"
$0C:C758 .db $4F,$39,$44,$39,$40,$39,$51,$39 ; "pear"
$0C:C760 .db $52,$39,$1F,$39,$53,$39,$4E,$39 ; "s to"
$0C:C768 .db $1F,$39,$41,$39,$44,$39,$1F,$39 ; " be "
$0C:C770 .db $1F,$39,$40,$39,$1F,$39,$46,$39 ; " a g"
$0C:C778 .db $40,$39,$53,$39,$44,$39,$56,$39 ; "atew"
$0C:C780 .db $40,$39,$58,$39,$FF ; "ay"; End of image ($FF)
;;; $C785..C7B5: Cutscene 6 text, line 8 ;;;
;; Cutscene 6 (Wendy) text line 8 of 8, Layer 3 text row at VRAM $5344: "to the Valley of Bowser.".
$0C:C785 .db $53,$44,$00,$2F,$53,$39,$4E,$39 ; VRAM $5344: 24 tiles; "to"
$0C:C78D .db $1F,$39,$53,$39,$47,$39,$44,$39 ; " the"
$0C:C795 .db $1F,$39,$15,$39,$40,$39,$4B,$39 ; " Val"
$0C:C79D .db $4B,$39,$44,$39,$58,$39,$1F,$39 ; "ley "
$0C:C7A5 .db $4E,$39,$45,$39,$1F,$39,$01,$39 ; "of B"
$0C:C7AD .db $4E,$39,$56,$39,$52,$39,$44,$39 ; "owse"
$0C:C7B5 .db $51,$39,$1B,$39,$FF ; "r."; End of image ($FF)
;;; $C7BA..C7EA: Cutscene 7 text, line 1 ;;;
;; Cutscene 7 (Larry) text line 1 of 8, Layer 3 text row at VRAM $5264: "Mario has defeated Larry".
$0C:C7BA .db $52,$64,$00,$2F,$0C,$39,$40,$39 ; VRAM $5264: 24 tiles; "Ma"
$0C:C7C2 .db $51,$39,$48,$39,$4E,$39,$1F,$39 ; "rio "
$0C:C7CA .db $47,$39,$40,$39,$52,$39,$1F,$39 ; "has "
$0C:C7D2 .db $43,$39,$44,$39,$45,$39,$44,$39 ; "defe"
$0C:C7DA .db $40,$39,$53,$39,$44,$39,$43,$39 ; "ated"
$0C:C7E2 .db $1F,$39,$0B,$39,$40,$39,$51,$39 ; " Lar"
$0C:C7EA .db $51,$39,$58,$39,$FF ; "ry"; End of image ($FF)
;;; $C7EF..C81F: Cutscene 7 text, line 2 ;;;
;; Cutscene 7 (Larry) text line 2 of 8, Layer 3 text row at VRAM $5284: "Koopa in castle #7. All".
$0C:C7EF .db $52,$84,$00,$2F,$0A,$39,$4E,$39 ; VRAM $5284: 24 tiles; "Ko"
$0C:C7F7 .db $4E,$39,$4F,$39,$40,$39,$1F,$39 ; "opa "
$0C:C7FF .db $48,$39,$4D,$39,$1F,$39,$42,$39 ; "in c"
$0C:C807 .db $40,$39,$52,$39,$53,$39,$4B,$39 ; "astl"
$0C:C80F .db $44,$39,$1F,$39,$5A,$39,$6A,$39 ; "e #7"
$0C:C817 .db $1B,$39,$1F,$39,$1F,$39,$00,$39 ; ". A"
$0C:C81F .db $4B,$39,$4B,$39,$FF ; "ll"; End of image ($FF)
;;; $C824..C854: Cutscene 7 text, line 3 ;;;
;; Cutscene 7 (Larry) text line 3 of 8, Layer 3 text row at VRAM $52A4: "that is left is Bowser's".
$0C:C824 .db $52,$A4,$00,$2F,$53,$39,$47,$39 ; VRAM $52A4: 24 tiles; "th"
$0C:C82C .db $40,$39,$53,$39,$1F,$39,$48,$39 ; "at i"
$0C:C834 .db $52,$39,$1F,$39,$4B,$39,$44,$39 ; "s le"
$0C:C83C .db $45,$39,$53,$39,$1F,$39,$48,$39 ; "ft i"
$0C:C844 .db $52,$39,$1F,$39,$01,$39,$4E,$39 ; "s Bo"
$0C:C84C .db $56,$39,$52,$39,$44,$39,$51,$39 ; "wser"
$0C:C854 .db $5D,$39,$52,$39,$FF ; "'s"; End of image ($FF)
;;; $C859..C889: Cutscene 7 text, line 4 ;;;
;; Cutscene 7 (Larry) text line 4 of 8, Layer 3 text row at VRAM $52C4: "Castle where Princess".
$0C:C859 .db $52,$C4,$00,$2F,$02,$39,$40,$39 ; VRAM $52C4: 24 tiles; "Ca"
$0C:C861 .db $52,$39,$53,$39,$4B,$39,$44,$39 ; "stle"
$0C:C869 .db $1F,$39,$1F,$39,$56,$39,$47,$39 ; " wh"
$0C:C871 .db $44,$39,$51,$39,$44,$39,$1F,$39 ; "ere "
$0C:C879 .db $1F,$39,$1F,$39,$0F,$39,$51,$39 ; " Pr"
$0C:C881 .db $48,$39,$4D,$39,$42,$39,$44,$39 ; "ince"
$0C:C889 .db $52,$39,$52,$39,$FF ; "ss"; End of image ($FF)
;;; $C88E..C8BE: Cutscene 7 text, line 5 ;;;
;; Cutscene 7 (Larry) text line 5 of 8, Layer 3 text row at VRAM $52E4: "Toadstool is being held.".
$0C:C88E .db $52,$E4,$00,$2F,$13,$39,$4E,$39 ; VRAM $52E4: 24 tiles; "To"
$0C:C896 .db $40,$39,$43,$39,$52,$39,$53,$39 ; "adst"
$0C:C89E .db $4E,$39,$4E,$39,$4B,$39,$1F,$39 ; "ool "
$0C:C8A6 .db $48,$39,$52,$39,$1F,$39,$41,$39 ; "is b"
$0C:C8AE .db $44,$39,$48,$39,$4D,$39,$46,$39 ; "eing"
$0C:C8B6 .db $1F,$39,$47,$39,$44,$39,$4B,$39 ; " hel"
$0C:C8BE .db $43,$39,$1B,$39,$FF ; "d."; End of image ($FF)
;;; $C8C3..C8F3: Cutscene 7 text, line 6 ;;;
;; Cutscene 7 (Larry) text line 6 of 8, Layer 3 text row at VRAM $5304: "Can Mario rescue her and".
$0C:C8C3 .db $53,$04,$00,$2F,$02,$39,$40,$39 ; VRAM $5304: 24 tiles; "Ca"
$0C:C8CB .db $4D,$39,$1F,$39,$0C,$39,$40,$39 ; "n Ma"
$0C:C8D3 .db $51,$39,$48,$39,$4E,$39,$1F,$39 ; "rio "
$0C:C8DB .db $51,$39,$44,$39,$52,$39,$42,$39 ; "resc"
$0C:C8E3 .db $54,$39,$44,$39,$1F,$39,$47,$39 ; "ue h"
$0C:C8EB .db $44,$39,$51,$39,$1F,$39,$40,$39 ; "er a"
$0C:C8F3 .db $4D,$39,$43,$39,$FF ; "nd"; End of image ($FF)
;;; $C8F8..C928: Cutscene 7 text, line 7 ;;;
;; Cutscene 7 (Larry) text line 7 of 8, Layer 3 text row at VRAM $5324: "restore peace to".
$0C:C8F8 .db $53,$24,$00,$2F,$51,$39,$44,$39 ; VRAM $5324: 24 tiles; "re"
$0C:C900 .db $52,$39,$53,$39,$4E,$39,$51,$39 ; "stor"
$0C:C908 .db $44,$39,$1F,$39,$1F,$39,$1F,$39 ; "e "
$0C:C910 .db $1F,$39,$1F,$39,$4F,$39,$44,$39 ; " pe"
$0C:C918 .db $40,$39,$42,$39,$44,$39,$1F,$39 ; "ace "
$0C:C920 .db $1F,$39,$1F,$39,$1F,$39,$1F,$39 ; " "
$0C:C928 .db $53,$39,$4E,$39,$FF ; "to"; End of image ($FF)
;;; $C92D..C94D: Cutscene 7 text, line 8 ;;;
;; Cutscene 7 (Larry) text line 8 of 8, Layer 3 text row at VRAM $5344: "Dinosaur Land!".
$0C:C92D .db $53,$44,$00,$1B,$03,$39,$48,$39 ; VRAM $5344: 14 tiles; "Di"
$0C:C935 .db $4D,$39,$4E,$39,$52,$39,$40,$39 ; "nosa"
$0C:C93D .db $54,$39,$51,$39,$1F,$39,$0B,$39 ; "ur L"
$0C:C945 .db $40,$39,$4D,$39,$43,$39,$1E,$39 ; "and!"
$0C:C94D .db $FF ; End of image ($FF)
;;; $C94E: Cutscene main entry and text timer ;;;
;; $C94E: [$1443] counts down; every 32 frames it queues ImagePointers entry 11 + (cutscene-1)*8 +
;; ([$1443] >> 5) in [$12], the next of the 8 text lines ([$13C6] = cutscene 1-7).
;; $C97E (JSL from the cutscene game mode, $009529): runs the text timer, draws the decoration sprites,
;; then $C98C counts down [$144D] every 4th frame,
;; updates Mario's sprite ($D803) and jumps to the handler for cutscene [$13C6] through the table at
;; $0CC9A5.
;; Called by:
;; $0C:C981: Cutscene main entry and text timer
$0C:C94E AD 43 14 LDA.W $1443 ; A = [$1443]: text timer (counts down; bits 7-5 select the text line)
$0C:C951 F0 2A BEQ $C97D ; Timer is 0: no text to show
$0C:C953 CE 43 14 DEC.W $1443 ; Count the timer down
$0C:C956 AD 43 14 LDA.W $1443 ; \
$0C:C959 29 1F AND.B #$1F ; |
$0C:C95B D0 20 BNE $C97D ; / Only continue once every 32 frames (low 5 bits = 0)
$0C:C95D AD C6 13 LDA.W $13C6 ; \
$0C:C960 3A DEC A ; |
$0C:C961 0A ASL ; |
$0C:C962 0A ASL ; |
$0C:C963 0A ASL ; |
$0C:C964 85 00 STA $00 ; / [$00] = (cutscene number - 1) * 8
$0C:C966 AD 43 14 LDA.W $1443 ; \
$0C:C969 29 E0 AND.B #$E0 ; |
$0C:C96B 4A LSR ; |
$0C:C96C 4A LSR ; |
$0C:C96D 4A LSR ; |
$0C:C96E 4A LSR ; |
$0C:C96F 4A LSR ; |
$0C:C970 05 00 ORA $00 ; |
$0C:C972 85 00 STA $00 ; / [$00] += text line index = [$1443] bits 7-5
$0C:C974 0A ASL ; \
$0C:C975 18 CLC ; |
$0C:C976 65 00 ADC $00 ; |
$0C:C978 18 CLC ; |
$0C:C979 69 21 ADC.B #$21 ; |
$0C:C97B 85 12 STA $12 ; / [$12] = [$00] * 3 + $21: ImagePointers entry 11 + [$00] (next text line)
$0C:C97D 60 RTS ; Return
$0C:C97E 8B PHB ; Cutscene main entry (called from game mode $18-$1A): save data bank
$0C:C97F 4B PHK ; \
$0C:C980 AB PLB ; / Data bank = $0C
$0C:C981 20 4E C9 JSR.W $C94E ; Show the next text line when its timer says so
$0C:C984 20 8F CA JSR.W $CA8F ; Draw the 3 decoration sprites if [$144A] is set
$0C:C987 20 8C C9 JSR.W $C98C ; Run the cutscene state machine
$0C:C98A AB PLB ; Restore data bank
$0C:C98B 6B RTL ; Return
$0C:C98C A5 13 LDA RAM_FrameCounter ; \
$0C:C98E 29 03 AND.B #$03 ; |
$0C:C990 D0 08 BNE $C99A ; |
$0C:C992 AD 4D 14 LDA.W $144D ; |
$0C:C995 F0 03 BEQ $C99A ; |
$0C:C997 CE 4D 14 DEC.W $144D ; / Every 4th frame: count down the delay timer [$144D] if it is not 0
$0C:C99A 20 03 D8 JSR.W $D803 ; Update Mario's sprite for the cutscene ($D803)
$0C:C99D AD C6 13 LDA.W $13C6 ; \
$0C:C9A0 3A DEC A ; |
$0C:C9A1 22 DF 86 00 JSL.L ExecutePtr ; / Run the handler for cutscene [$13C6] (1-7) from the table below
;;; $C9A5: Pointer table: cutscene handlers; cutscene 1 (Ptrs0CC9A5) ;;;
;; Seven handlers indexed by [$13C6]-1 (the castle 1-7 Koopaling cutscenes, 8 = credits is handled elsewhere).
;; $C9B3 (cutscene 1, Iggy): draws sprite slot 0, updates the object at [$0B51], then runs state [$1442]
;; from the table below.
$0C:C9A5 B3 C9 .dw $C9B3 ; Cutscene 1 (Iggy): $C9B3
$0C:C9A7 CC C9 .dw $C9CC ; Cutscene 2 (Morton): $C9CC
$0C:C9A9 2F CA .dw $CA2F ; Cutscene 3 (Lemmy): $CA2F
$0C:C9AB 04 CA .dw $CA04 ; Cutscene 4 (Ludwig): $CA04
$0C:C9AD E0 C9 .dw $C9E0 ; Cutscene 5 (Roy): $C9E0
$0C:C9AF 51 CA .dw $CA51 ; Cutscene 6 (Wendy): $CA51
$0C:C9B1 72 CA .dw $CA72 ; Cutscene 7 (Larry): $CA72
$0C:C9B3 20 5B CB JSR.W $CB5B ; Draw the 16x16 sprite in OAM slot 0 ($CB5B)
$0C:C9B6 20 CE CA JSR.W $CACE ; Update the object driven by [$0B51] ($CACE)
$0C:C9B9 AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:C9BC 22 DF 86 00 JSL.L ExecutePtr ; Run the state routine from the table below
;;; $C9C0: Pointer table: cutscene 1 states; cutscene 2 (Ptrs0CC9C0) ;;;
;; Cutscene 1 state routines (6). Then $C9CC (cutscene 2, Morton): updates the object at [$0B51] and
;; runs state [$1442] from the next table.
$0C:C9C0 1C CB .dw $CB1C ; State 0: $CB1C (row of sprites)
$0C:C9C2 95 D2 .dw $D295 ; State 1: $D295 (sound $1A, starts the backdrop flash)
$0C:C9C4 51 CC .dw $CC51 ; State 2: $CC51 (backdrop flash)
$0C:C9C6 B2 D2 .dw $D2B2 ; State 3: $D2B2
$0C:C9C8 23 CD .dw $CD23 ; State 4: $CD23
$0C:C9CA DE CF .dw $CFDE ; State 5: $CFDE (wait for a button, back to the map)
$0C:C9CC 20 CE CA JSR.W $CACE ; Update the object driven by [$0B51] ($CACE)
$0C:C9CF AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:C9D2 22 DF 86 00 JSL.L ExecutePtr ; Run the state routine from the table below
;;; $C9D6: Pointer table: cutscene 2 states; cutscene 5 (Ptrs0CC9D6) ;;;
;; Cutscene 2 state routines (5). Then $C9E0 (cutscene 5, Roy): sprite slot 0, object at [$0B51],
;; $D4F8, then state [$1442].
$0C:C9D6 03 D0 .dw $D003 ; State 0: $D003
$0C:C9D8 B2 D2 .dw $D2B2 ; State 1: $D2B2
$0C:C9DA 23 CD .dw $CD23 ; State 2: $CD23
$0C:C9DC 57 D5 .dw $D557 ; State 3: $D557
$0C:C9DE DE CF .dw $CFDE ; State 4: $CFDE (wait for a button, back to the map)
$0C:C9E0 20 5B CB JSR.W $CB5B ; Draw the 16x16 sprite in OAM slot 0 ($CB5B)
$0C:C9E3 20 CE CA JSR.W $CACE ; Update the object driven by [$0B51] ($CACE)
$0C:C9E6 20 F8 D4 JSR.W $D4F8 ; Cutscene 5 specific update ($D4F8)
$0C:C9E9 AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:C9EC 22 DF 86 00 JSL.L ExecutePtr ; Run the state routine from the table below
;;; $C9F0: Pointer table: cutscene 5 states; cutscene 4 (Ptrs0CC9F0) ;;;
;; Cutscene 5 state routines (10). Then $CA04 (cutscene 4, Ludwig): sprite slot 0; state 0 sets [$1445]
;; = 4; state 7 also runs $CF49; then state [$1442].
$0C:C9F0 1C CB .dw $CB1C ; State 0: $CB1C (row of sprites)
$0C:C9F2 D0 D2 .dw $D2D0 ; State 1: $D2D0
$0C:C9F4 72 CF .dw $CF72 ; State 2: $CF72
$0C:C9F6 C5 CF .dw $CFC5 ; State 3: $CFC5
$0C:C9F8 95 D2 .dw $D295 ; State 4: $D295 (sound $1A, starts the backdrop flash)
$0C:C9FA 51 CC .dw $CC51 ; State 5: $CC51 (backdrop flash)
$0C:C9FC B2 D2 .dw $D2B2 ; State 6: $D2B2
$0C:C9FE 23 CD .dw $CD23 ; State 7: $CD23
$0C:CA00 F7 CF .dw $CFF7 ; State 8: $CFF7
$0C:CA02 DE CF .dw $CFDE ; State 9: $CFDE (wait for a button, back to the map)
$0C:CA04 20 5B CB JSR.W $CB5B ; Draw the 16x16 sprite in OAM slot 0 ($CB5B)
$0C:CA07 AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:CA0A D0 05 BNE $CA11 ; Not state 0: skip
$0C:CA0C A0 04 LDY.B #$04 ; \
$0C:CA0E 8C 45 14 STY.W $1445 ; / State 0: [$1445] = 4
$0C:CA11 C9 07 CMP.B #$07 ; \
$0C:CA13 D0 03 BNE $CA18 ; / State 7?
$0C:CA15 20 49 CF JSR.W $CF49 ; State 7: extra update ($CF49)
$0C:CA18 AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:CA1B 22 DF 86 00 JSL.L ExecutePtr ; Run the state routine from the table below
;;; $CA1F: Pointer table: cutscene 4 states; cutscene 3 (Ptrs0CCA1F) ;;;
;; Cutscene 4 state routines (8). Then $CA2F (cutscene 3, Lemmy): $D65B, object at [$0B51],
;; $D3A6 (except in state 3), $D3F4, then state [$1442].
$0C:CA1F 1C CB .dw $CB1C ; State 0: $CB1C (row of sprites)
$0C:CA21 95 D2 .dw $D295 ; State 1: $D295 (sound $1A, starts the backdrop flash)
$0C:CA23 51 CC .dw $CC51 ; State 2: $CC51 (backdrop flash)
$0C:CA25 BD D2 .dw $D2BD ; State 3: $D2BD
$0C:CA27 A1 CD .dw $CDA1 ; State 4: $CDA1
$0C:CA29 E6 D2 .dw $D2E6 ; State 5: $D2E6
$0C:CA2B E2 CE .dw $CEE2 ; State 6: $CEE2
$0C:CA2D DE CF .dw $CFDE ; State 7: $CFDE (wait for a button, back to the map)
$0C:CA2F 20 5B D6 JSR.W $D65B ; Cutscene 3 specific update ($D65B)
$0C:CA32 20 CE CA JSR.W $CACE ; Update the object driven by [$0B51] ($CACE)
$0C:CA35 AD 42 14 LDA.W $1442 ; \
$0C:CA38 C9 03 CMP.B #$03 ; |
$0C:CA3A F0 03 BEQ $CA3F ; / In state 3?
$0C:CA3C 20 A6 D3 JSR.W $D3A6 ; No: run $D3A6 (cutscene object spawner)
$0C:CA3F 20 F4 D3 JSR.W $D3F4 ; Cutscene object update ($D3F4)
$0C:CA42 AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:CA45 22 DF 86 00 JSL.L ExecutePtr ; Run the state routine from the table below
;;; $CA49: Pointer table: cutscene 3 states; cutscene 6 (Ptrs0CCA49) ;;;
;; Cutscene 3 state routines (4). Then $CA51 (cutscene 6, Wendy): $D6EC, draws the object tile $E6
;; at (B0, [$0B51]) when [$1444] is set, then state [$1442].
$0C:CA49 BC D0 .dw $D0BC ; State 0: $D0BC
$0C:CA4B B2 D2 .dw $D2B2 ; State 1: $D2B2
$0C:CA4D 23 CD .dw $CD23 ; State 2: $CD23
$0C:CA4F DE CF .dw $CFDE ; State 3: $CFDE (wait for a button, back to the map)
$0C:CA51 20 EC D6 JSR.W $D6EC ; Cutscene 6 specific update ($D6EC)
$0C:CA54 AD 44 14 LDA.W $1444 ; \
$0C:CA57 F0 0E BEQ $CA67 ; / Is the object flag [$1444] set?
$0C:CA59 A2 30 LDX.B #$30 ; \
$0C:CA5B A9 B0 LDA.B #$B0 ; |
$0C:CA5D 85 00 STA $00 ; |
$0C:CA5F A9 68 LDA.B #$68 ; |
$0C:CA61 8D 51 0B STA.W $0B51 ; |
$0C:CA64 20 FD CA JSR.W $CAFD ; / Yes: draw the object (tile $E6) at X = $B0, Y = $68 in the slot at $0380 + $30
$0C:CA67 AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:CA6A 22 DF 86 00 JSL.L ExecutePtr ; Run the state routine from the table below
;;; $CA6E: Pointer table: cutscene 6 states; cutscene 7 (Ptrs0CCA6E) ;;;
;; Cutscene 6 state routines (2). Then $CA72 (cutscene 7, Larry): just runs state [$1442] from the next
;; table.
$0C:CA6E C9 D0 .dw $D0C9 ; State 0: $D0C9
$0C:CA70 DE CF .dw $CFDE ; State 1: $CFDE (wait for a button, back to the map)
$0C:CA72 AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:CA75 22 DF 86 00 JSL.L ExecutePtr ; Run the state routine from the table below
;;; $CA79: Pointer table: cutscene 7 states; sprite helpers (Ptrs0CCA79) ;;;
;; Cutscene 7 state routines (5), then shared sprite helpers:
;; $CA8F draws 3 decoration sprites from $CA83 (X, Y, tile, properties) in OAM slots 120-122 when
;; [$144A] is set;
;; $CACE controls the object at [$0B51]/[$1444] (draws tile $E6 via $CAFD); $CB1C is state 0
;; of cutscenes 1, 4 and 5 (row of sprites);
;; $CB5B draws the 16x16 sprite in OAM slot 0 at (80, 103) with tile $E0 ($E2 when [$143E] is non-zero).
$0C:CA79 D2 D0 .dw $D0D2 ; State 0: $D0D2
$0C:CA7B 08 D1 .dw $D108 ; State 1: $D108
$0C:CA7D 6F D1 .dw $D16F ; State 2: $D16F
$0C:CA7F 9C D1 .dw $D19C ; State 3: $D19C
$0C:CA81 DE CF .dw $CFDE ; State 4: $CFDE (wait for a button, back to the map)
$0C:CA83 .db $20 ; Decoration sprite 0: X = $20
$0C:CA84 .db $48 ; Decoration sprite 0: Y = $48
$0C:CA85 .db $A6 ; Decoration sprite 0: tile $A6
$0C:CA86 .db $18,$30,$48,$A8,$18,$28,$58,$8D ; Sprite 0 prop $18 (16x16); sprite 1: $30,$48,$A8,$18; sprite 2: $28,$58,$8D,(prop below)
$0C:CA8E .db $08 ; Sprite 2 properties $08 (8x8)
$0C:CA8F AD 4A 14 LDA.W $144A ; \
$0C:CA92 F0 39 BEQ $CACD ; / Nothing to draw unless [$144A] is set
$0C:CA94 A0 00 LDY.B #$00 ; \
$0C:CA96 BB TYX ; / X = Y = 0: sprite index
$0C:CA97 B9 83 CA LDA.W $CA83,Y ; \
$0C:CA9A 9D E0 03 STA.W $03E0,X ; / OAM X (slot at $03E0+X) = table X
$0C:CA9D B9 84 CA LDA.W $CA84,Y ; \
$0C:CAA0 9D E1 03 STA.W $03E1,X ; / OAM Y = table Y
$0C:CAA3 B9 85 CA LDA.W $CA85,Y ; \
$0C:CAA6 9D E2 03 STA.W $03E2,X ; / OAM tile = table tile
$0C:CAA9 B9 86 CA LDA.W $CA86,Y ; \
$0C:CAAC 29 CF AND.B #$CF ; |
$0C:CAAE 09 20 ORA.B #$20 ; |
$0C:CAB0 9D E3 03 STA.W $03E3,X ; / OAM properties = table byte with bits 4-5 replaced by $20 (priority 2)
$0C:CAB3 DA PHX ; \
$0C:CAB4 8A TXA ; |
$0C:CAB5 4A LSR ; |
$0C:CAB6 4A LSR ; |
$0C:CAB7 AA TAX ; / X = OAM slot number
$0C:CAB8 B9 86 CA LDA.W $CA86,Y ; \
$0C:CABB 29 10 AND.B #$10 ; |
$0C:CABD 4A LSR ; |
$0C:CABE 4A LSR ; |
$0C:CABF 4A LSR ; |
$0C:CAC0 9D 98 04 STA.W $0498,X ; / OAM high table ($0498+slot) = size bit (properties bit 4 moved to bit 1)
$0C:CAC3 FA PLX ; Restore X = OAM byte offset
$0C:CAC4 E8 INX ; \
$0C:CAC5 E8 INX ; |
$0C:CAC6 E8 INX ; |
$0C:CAC7 E8 INX ; / X += 4: next OAM slot
$0C:CAC8 9B TXY ; \
$0C:CAC9 C0 0C CPY.B #$0C ; |
$0C:CACB D0 CA BNE $CA97 ; / Y = X; loop until 3 sprites are done
$0C:CACD 60 RTS ; Return
$0C:CACE AD 42 14 LDA.W $1442 ; A = cutscene state [$1442]
$0C:CAD1 D0 0A BNE $CADD ; Not state 0: go on
$0C:CAD3 9C 44 14 STZ.W $1444 ; State 0: clear the object flag [$1444]
$0C:CAD6 A9 98 LDA.B #$98 ; \
$0C:CAD8 8D 51 0B STA.W $0B51 ; / Object Y [$0B51] = $98 (start height)
$0C:CADB 80 1F BRA $CAFC ; Return
$0C:CADD AD 44 14 LDA.W $1444 ; \
$0C:CAE0 F0 1A BEQ $CAFC ; / State not 0: return unless the object flag [$1444] is set
$0C:CAE2 AD 51 0B LDA.W $0B51 ; \
$0C:CAE5 C9 5C CMP.B #$5C ; / Object Y [$0B51] below $5C?
$0C:CAE7 90 0A BCC $CAF3 ; Not yet: just draw it
$0C:CAE9 A2 01 LDX.B #$01 ; \
$0C:CAEB A9 F0 LDA.B #$F0 ; |
$0C:CAED 9D 14 0B STA.W $0B14,X ; / [$0B15] = $F0 (cutscene object 1 field set to off-screen value)
$0C:CAF0 20 68 D3 JSR.W $D368 ; Update cutscene object slot ($D368)
$0C:CAF3 A2 30 LDX.B #$30 ; \
$0C:CAF5 A9 AB LDA.B #$AB ; |
$0C:CAF7 85 00 STA $00 ; |
$0C:CAF9 82 01 00 BRL $CAFD ; / Draw the object (tile $E6) at X = $AB in the slot at $0380 + $30
$0C:CAFC 60 RTS ; Return
$0C:CAFD A5 00 LDA $00 ; \
$0C:CAFF 9D 80 03 STA.W $0380,X ; / OAM X = [$00]
$0C:CB02 AD 51 0B LDA.W $0B51 ; \
$0C:CB05 9D 81 03 STA.W $0381,X ; / OAM Y = [$0B51]
$0C:CB08 A9 E6 LDA.B #$E6 ; \
$0C:CB0A 9D 82 03 STA.W $0382,X ; / OAM tile = $E6
$0C:CB0D A9 21 LDA.B #$21 ; \
$0C:CB0F 9D 83 03 STA.W $0383,X ; / OAM properties = $21
$0C:CB12 8A TXA ; \
$0C:CB13 4A LSR ; |
$0C:CB14 4A LSR ; |
$0C:CB15 AA TAX ; / X = OAM slot number
$0C:CB16 A9 02 LDA.B #$02 ; \
$0C:CB18 9D 80 04 STA.W $0480,X ; / OAM high table: size = 16x16
$0C:CB1B 60 RTS ; Return
$0C:CB1C AD 3E 14 LDA.W RAM_ScrollSprNum ; \
$0C:CB1F D0 0F BNE $CB30 ; / Is [$143E] zero?
$0C:CB21 A9 60 LDA.B #$60 ; \
$0C:CB23 8D 50 0B STA.W $0B50 ; / Yes (first call): row start X [$0B50] = $60
$0C:CB26 A9 01 LDA.B #$01 ; \
$0C:CB28 8D 3F 14 STA.W $143F ; / [$143F] = 1: animation timer
$0C:CB2B 9C 40 14 STZ.W $1440 ; Animation frame [$1440] = 0
$0C:CB2E 80 25 BRA $CB55 ; Go and draw
$0C:CB30 A2 00 LDX.B #$00 ; X = 0: cutscene object 0
$0C:CB32 A0 30 LDY.B #$30 ; Y = $30
$0C:CB34 AD C6 13 LDA.W $13C6 ; \
$0C:CB37 3A DEC A ; |
$0C:CB38 D0 02 BNE $CB3C ; |
$0C:CB3A A0 18 LDY.B #$18 ; / Y = $30, or $18 in cutscene 1
$0C:CB3C 98 TYA ; \
$0C:CB3D 9D 14 0B STA.W $0B14,X ; / [$0B14] = $30 or $18
$0C:CB40 20 68 D3 JSR.W $D368 ; Update cutscene object slot ($D368)
$0C:CB43 CE 3F 14 DEC.W $143F ; \
$0C:CB46 10 0D BPL $CB55 ; / Animation timer [$143F] down; still positive: keep frame
$0C:CB48 A9 01 LDA.B #$01 ; \
$0C:CB4A 8D 3F 14 STA.W $143F ; / Reload the timer with 1
$0C:CB4D AD 40 14 LDA.W $1440 ; \
$0C:CB50 49 01 EOR.B #$01 ; |
$0C:CB52 8D 40 14 STA.W $1440 ; / Toggle animation frame [$1440] between 0 and 1
$0C:CB55 20 FA CB JSR.W $CBFA ; Draw the 2x2 sprite block ($CBFA)
$0C:CB58 82 25 00 BRL $CB80 ; Then draw the row of sprites
$0C:CB5B A0 E0 LDY.B #$E0 ; \
$0C:CB5D AD 3E 14 LDA.W RAM_ScrollSprNum ; |
$0C:CB60 F0 02 BEQ $CB64 ; |
$0C:CB62 A0 E2 LDY.B #$E2 ; / Y = tile $E0, or $E2 when [$143E] is non-zero
$0C:CB64 8C 02 02 STY.W OAM_ExtendedTile ; OAM slot 0 tile
$0C:CB67 A9 39 LDA.B #$39 ; \
$0C:CB69 8D 03 02 STA.W OAM_ExtendedProp ; / OAM slot 0 properties $39
$0C:CB6C A9 50 LDA.B #$50 ; \
$0C:CB6E 8D 00 02 STA.W OAM_ExtendedDispX ; / OAM slot 0 X = $50
$0C:CB71 A9 67 LDA.B #$67 ; \
$0C:CB73 8D 01 02 STA.W OAM_ExtendedDispY ; / OAM slot 0 Y = $67
$0C:CB76 A9 02 LDA.B #$02 ; \
$0C:CB78 8D 20 04 STA.W $0420 ; / OAM slot 0 size = 16x16
$0C:CB7B 60 RTS ; Return
;;; $CB7C..CB7C: Tiles for 2x2 sprite block ;;;
$0C:CB7C .db $86,$87,$96,$97 ; Tiles of the 2x2 block: $86 $87 / $96 $97
;;; $CB80: Draw cutscene sprite row and 2x2 block ;;;
;; $CB80: draws a row of 5 sprites (tile $E4, 16 pixels apart, y = $67) from X = $60 (or [$0B50] when
;; [$143E] is non-zero), skipping any at X >= $B0,
;; plus, when [$143E] is non-zero, a small animated sprite (tile $85/$95 by [$1440]) at X = [$0B50]-8, y =
;; $6F; when it passes X = $B0 the cutscene state advances.
;; $CBFA: draws a 2x2 block of sprites from $CB7C at (A8, 5F), 8 pixels apart, starting at OAM
;; slot 1 ($0380 + 4); $CBFC enters with another slot offset in X.
$0C:CB80 A2 60 LDX.B #$60 ; \
$0C:CB82 AD 3E 14 LDA.W RAM_ScrollSprNum ; |
$0C:CB85 F0 03 BEQ $CB8A ; |
$0C:CB87 AE 50 0B LDX.W $0B50 ; / X = start X of the row: $60, or [$0B50] when [$143E] is non-zero
$0C:CB8A 86 00 STX $00 ; [$00] = X of the next sprite in the row
$0C:CB8C A9 67 LDA.B #$67 ; \
$0C:CB8E 85 01 STA $01 ; / [$01] = Y of the row = $67
$0C:CB90 A2 14 LDX.B #$14 ; X = $14: first OAM slot of the row ($0380 + $14)
$0C:CB92 A5 00 LDA $00 ; \
$0C:CB94 C9 B0 CMP.B #$B0 ; |
$0C:CB96 B0 1D BCS $CBB5 ; / A = X of this sprite; skip it when X >= $B0 (off the right end)
$0C:CB98 9D 80 03 STA.W $0380,X ; OAM X
$0C:CB9B A5 01 LDA $01 ; \
$0C:CB9D 9D 81 03 STA.W $0381,X ; / OAM Y = [$01]
$0C:CBA0 A9 E4 LDA.B #$E4 ; \
$0C:CBA2 9D 82 03 STA.W $0382,X ; / OAM tile = $E4
$0C:CBA5 A9 3F LDA.B #$3F ; \
$0C:CBA7 9D 83 03 STA.W $0383,X ; / OAM properties = $3F
$0C:CBAA DA PHX ; \
$0C:CBAB 8A TXA ; |
$0C:CBAC 4A LSR ; |
$0C:CBAD 4A LSR ; |
$0C:CBAE AA TAX ; / X = OAM slot number
$0C:CBAF A9 02 LDA.B #$02 ; \
$0C:CBB1 9D 80 04 STA.W $0480,X ; / OAM high table: size = 16x16
$0C:CBB4 FA PLX ; Restore OAM offset
$0C:CBB5 A5 00 LDA $00 ; \
$0C:CBB7 18 CLC ; |
$0C:CBB8 69 10 ADC.B #$10 ; |
$0C:CBBA 85 00 STA $00 ; / Next sprite X = X + $10
$0C:CBBC E8 INX ; \
$0C:CBBD E8 INX ; |
$0C:CBBE E8 INX ; |
$0C:CBBF E8 INX ; / X += 4: next OAM slot
$0C:CBC0 E0 28 CPX.B #$28 ; \
$0C:CBC2 D0 CE BNE $CB92 ; / Loop for 5 sprites (X = $14 ... $24)
$0C:CBC4 AD 3E 14 LDA.W RAM_ScrollSprNum ; \
$0C:CBC7 F0 30 BEQ $CBF9 ; / Return unless [$143E] is non-zero
$0C:CBC9 AD 50 0B LDA.W $0B50 ; \
$0C:CBCC 38 SEC ; |
$0C:CBCD E9 08 SBC.B #$08 ; |
$0C:CBCF C9 B0 CMP.B #$B0 ; / A = [$0B50] - 8: X of the moving sprite, compared with $B0
$0C:CBD1 90 05 BCC $CBD8 ; Not past the right end: draw the moving sprite
$0C:CBD3 EE 42 14 INC.W $1442 ; Past the end: next cutscene state ([$1442]++)
$0C:CBD6 80 21 BRA $CBF9 ; Return
$0C:CBD8 9D 80 03 STA.W $0380,X ; OAM X of the moving sprite (slot at $0380 + $28)
$0C:CBDB A9 6F LDA.B #$6F ; \
$0C:CBDD 9D 81 03 STA.W $0381,X ; / OAM Y = $6F
$0C:CBE0 A0 85 LDY.B #$85 ; Y = tile $85
$0C:CBE2 AD 40 14 LDA.W $1440 ; \
$0C:CBE5 F0 02 BEQ $CBE9 ; |
$0C:CBE7 A0 95 LDY.B #$95 ; / Animation frame [$1440] = 1: tile $95 instead
$0C:CBE9 98 TYA ; \
$0C:CBEA 9D 82 03 STA.W $0382,X ; / OAM tile
$0C:CBED A9 35 LDA.B #$35 ; \
$0C:CBEF 9D 83 03 STA.W $0383,X ; / OAM properties = $35
$0C:CBF2 8A TXA ; \
$0C:CBF3 4A LSR ; |
$0C:CBF4 4A LSR ; |
$0C:CBF5 AA TAX ; / X = OAM slot number
$0C:CBF6 9E 80 04 STZ.W $0480,X ; OAM high table: size = 8x8
$0C:CBF9 60 RTS ; Return
$0C:CBFA A2 04 LDX.B #$04 ; X = 4: OAM slot 1 (the block starts at $0380 + 4)
$0C:CBFC A9 A8 LDA.B #$A8 ; \
$0C:CBFE 85 00 STA $00 ; |
$0C:CC00 85 02 STA $02 ; / [$00] = [$02] = $A8: left X of the block
$0C:CC02 A9 5F LDA.B #$5F ; \
$0C:CC04 85 01 STA $01 ; / [$01] = $5F: top Y of the block
$0C:CC06 A0 00 LDY.B #$00 ; Y = 0: tile index
$0C:CC08 A5 00 LDA $00 ; \
$0C:CC0A 9D 80 03 STA.W $0380,X ; / OAM X = [$00]
$0C:CC0D A5 01 LDA $01 ; \
$0C:CC0F 9D 81 03 STA.W $0381,X ; / OAM Y = [$01]
$0C:CC12 B9 7C CB LDA.W $CB7C,Y ; \
$0C:CC15 9D 82 03 STA.W $0382,X ; / OAM tile = $CB7C[Y]
$0C:CC18 A9 2D LDA.B #$2D ; \
$0C:CC1A 9D 83 03 STA.W $0383,X ; / OAM properties = $2D
$0C:CC1D DA PHX ; \
$0C:CC1E 8A TXA ; |
$0C:CC1F 4A LSR ; |
$0C:CC20 4A LSR ; |
$0C:CC21 AA TAX ; / X = OAM slot number
$0C:CC22 A9 02 LDA.B #$02 ; \
$0C:CC24 9D 80 04 STA.W $0480,X ; / OAM high table: size = 16x16
$0C:CC27 FA PLX ; Restore OAM offset
$0C:CC28 C8 INY ; Next tile
$0C:CC29 A5 00 LDA $00 ; \
$0C:CC2B 18 CLC ; |
$0C:CC2C 69 08 ADC.B #$08 ; |
$0C:CC2E 85 00 STA $00 ; / [$00] += 8: next column
$0C:CC30 98 TYA ; \
$0C:CC31 29 01 AND.B #$01 ; |
$0C:CC33 D0 0B BNE $CC40 ; / After every second tile (end of a row)...
$0C:CC35 A5 02 LDA $02 ; \
$0C:CC37 85 00 STA $00 ; / ...[$00] = left X again
$0C:CC39 A5 01 LDA $01 ; \
$0C:CC3B 18 CLC ; |
$0C:CC3C 69 08 ADC.B #$08 ; |
$0C:CC3E 85 01 STA $01 ; / ...[$01] += 8: next row
$0C:CC40 E8 INX ; \
$0C:CC41 E8 INX ; |
$0C:CC42 E8 INX ; |
$0C:CC43 E8 INX ; / X += 4: next OAM slot
$0C:CC44 C0 04 CPY.B #$04 ; \
$0C:CC46 D0 C0 BNE $CC08 ; / Loop for 4 tiles
$0C:CC48 60 RTS ; Return
;;; $CC49..CC4D: Flash frame durations and colors ;;;
$0C:CC49 .db $03,$01,$03,$01 ; Frame durations by animation frame [$1440]: 3, 1, 3, 1
$0C:CC4D .db $93,$73,$FF,$7F ; Backdrop flash colors (words): $7393, $7FFF (white)
;;; $CC51: Cutscene state: backdrop color flash ;;;
;; Each frame the backdrop color mirror $0701 alternates between $7393 and $7FFF (white) every 2 frames, while
;; [$1441] counts down.
;; A 3x2 sprite block is animated with the frame durations in $CC49 and drawn by $CCB6, plus the
;; 2x2 block at OAM offset $1C.
;; When the timer runs out the cutscene objects are cleared, the backdrop color is restored from the Palettes?
;; table using CutsceneBgColor, and the state advances.
$0C:CC51 A5 13 LDA RAM_FrameCounter ; \
$0C:CC53 29 02 AND.B #$02 ; |
$0C:CC55 AA TAX ; / X = frame counter AND 2: 0 or 2
$0C:CC56 C2 20 REP #$20 ; A = 16-bit
$0C:CC58 BD 4D CC LDA.W $CC4D,X ; \
$0C:CC5B 8D 01 07 STA.W $0701 ; / Backdrop color mirror $0701 = $7393 or $7FFF (white), swapped every 2 frames
$0C:CC5E E2 20 SEP #$20 ; A = 8-bit
$0C:CC60 CE 41 14 DEC.W $1441 ; \
$0C:CC63 10 1D BPL $CC82 ; / Flash timer [$1441] down; still positive: keep flashing
$0C:CC65 20 73 D3 JSR.W $D373 ; Flash over: clear cutscene objects ($D373)
$0C:CC68 AE C6 13 LDX.W $13C6 ; \
$0C:CC6B BF 50 94 00 LDA.L CutsceneBgColor-1,X ; |
$0C:CC6F 0A ASL ; |
$0C:CC70 AA TAX ; / X = CutsceneBgColor[cutscene - 1] * 2
$0C:CC71 C2 20 REP #$20 ; A = 16-bit
$0C:CC73 BF A0 B0 00 LDA.L Palettes?,X ; \
$0C:CC77 8D 01 07 STA.W $0701 ; / Restore the backdrop color from the Palettes? table ($00B0A0)
$0C:CC7A E2 20 SEP #$20 ; A = 8-bit
$0C:CC7C EE 42 14 INC.W $1442 ; Next cutscene state
$0C:CC7F 82 18 00 BRL $CC9A ; Then draw
$0C:CC82 CE 3F 14 DEC.W $143F ; \
$0C:CC85 10 10 BPL $CC97 ; / Animation timer [$143F] down; not yet negative: skip
$0C:CC87 AD 40 14 LDA.W $1440 ; \
$0C:CC8A 1A INC A ; |
$0C:CC8B 29 03 AND.B #$03 ; |
$0C:CC8D 8D 40 14 STA.W $1440 ; / [$1440] = ([$1440] + 1) AND 3: next animation frame
$0C:CC90 AA TAX ; \
$0C:CC91 BD 49 CC LDA.W $CC49,X ; |
$0C:CC94 8D 3F 14 STA.W $143F ; / [$143F] = $CC49[frame]: its duration
$0C:CC97 20 B6 CC JSR.W $CCB6 ; Draw the 3x2 sprite block for this frame ($CCB6)
$0C:CC9A A2 1C LDX.B #$1C ; X = $1C: OAM slot offset ($0380 + $1C)
$0C:CC9C 82 5D FF BRL $CBFC ; Draw the 2x2 sprite block there ($CBFC)
;;; $CC9F..CCAF: Tile table: 3x2 sprite frames ;;;
;; Tiles for $CCB6's 3x2 block of 16x16 sprites (6 bytes per frame, 0 = no sprite); selected by
;; $CCB1.
$0C:CC9F .db $A0,$A4,$00,$C0,$C4,$00,$A0,$A2 ; Frame at offset 0: row 1 tiles $A0 $A4 --, row 2 tiles $C0 $C4 -- (2 columns wide)
$0C:CCA7 .db $A4,$C0,$C2,$C4,$00,$00,$00,$00 ; Offset 6: tiles $A0 $A2 $A4 / $C0 $C2 $C4 (3 wide); offset 12: blank frame
$0C:CCAF .db $00,$00 ; Blank frame (no tiles)
;;; $CCB1..CCB1: Tile table offsets by frame ;;;
$0C:CCB1 .db $00,$06,$0C,$06,$0C ; Tile table offsets by frame (index [$1440]+1): 0, 6, 12, 6, 12
;;; $CCB6: Cutscene: castle tiles, scroll and shake states ;;;
;; Group of cutscene routines using [$1442] as scene state, [$143F]/[$1441] as timers, [$1440] as animation
;; frame.
;; $0CCCB6: draws a 3x2 grid of 16x16 castle tiles (OAM slots 1-6) from $CC9F, frame chosen by [$1440],
;; palette flashing.
;; $0CCD23: state - screen scrolls up with a shake until Y scroll = $C0, then queues a tile strip upload.
;; $0CCDA1: state - screen drops with increasing speed ([$1447], max $7F), shaking, until Y position >= $A8.
;; Called by:
;; $0C:CC97: Cutscene state: backdrop color flash
$0C:CCB6 AD 40 14 LDA.W $1440 ; A = [$1440] (animation frame; $FF = first frame)
$0C:CCB9 1A INC A ; X = frame + 1 (0..4)
$0C:CCBA AA TAX
$0C:CCBB BD B1 CC LDA.W $CCB1,X ; A = offset of this frame's row in tile table $CC9F (6 tiles per frame)
$0C:CCBE 85 08 STA $08 ; $08 = tile table index
$0C:CCC0 A0 A0 LDY.B #$A0 ; Y = left X position $A0
$0C:CCC2 E0 00 CPX.B #$00
$0C:CCC4 D0 02 BNE $CCC8 ; Frame $FF is drawn 8 pixels further right
$0C:CCC6 A0 A8 LDY.B #$A8 ; Y = $A8
$0C:CCC8 84 00 STY $00 ; $00 = X position of the current tile
$0C:CCCA 84 04 STY $04 ; $04 = X position of the start of a row
$0C:CCCC A9 57 LDA.B #$57
$0C:CCCE 85 02 STA $02 ; $02 = Y position of the current row = $57
$0C:CCD0 A2 00 LDX.B #$00 ; X = OAM index = 0 (OAM slot 1 onwards)
$0C:CCD2 A4 08 LDY $08
$0C:CCD4 B9 9F CC LDA.W $CC9F,Y ; A = tile number from the table
$0C:CCD7 F0 29 BEQ $CD02 ; Skip this tile if it is 0 (empty cell)
$0C:CCD9 9D 06 02 STA.W $0206,X ; OAM tile = A
$0C:CCDC A0 35 LDY.B #$35 ; Y = OAM prop $35 (priority 3, palette 2)
$0C:CCDE AD 40 14 LDA.W $1440
$0C:CCE1 30 06 BMI $CCE9 ; Frame $FF: keep palette 2
$0C:CCE3 29 02 AND.B #$02
$0C:CCE5 F0 02 BEQ $CCE9 ; Palette flash only when bit 1 of the frame is set
$0C:CCE7 A0 39 LDY.B #$39 ; Y = OAM prop $39 (palette 4)
$0C:CCE9 98 TYA
$0C:CCEA 9D 07 02 STA.W $0207,X ; OAM prop
$0C:CCED A5 00 LDA $00
$0C:CCEF 9D 04 02 STA.W $0204,X ; OAM X position = [$00]
$0C:CCF2 A5 02 LDA $02
$0C:CCF4 9D 05 02 STA.W $0205,X ; OAM Y position = [$02]
$0C:CCF7 DA PHX ; \
$0C:CCF8 8A TXA ; |
$0C:CCF9 4A LSR ; |
$0C:CCFA 4A LSR ; |
$0C:CCFB AA TAX ; |
$0C:CCFC A9 02 LDA.B #$02 ; |
$0C:CCFE 9D 21 04 STA.W $0421,X ; |
$0C:CD01 FA PLX ; } OAM size bit for this slot = 2 (16x16 sprite)
$0C:CD02 E6 08 INC $08 ; Next table entry
$0C:CD04 A5 00 LDA $00 ; \
$0C:CD06 18 CLC ; |
$0C:CD07 69 10 ADC.B #$10 ; |
$0C:CD09 85 00 STA $00 ; } [$00] += $10 (next tile to the right)
$0C:CD0B E8 INX ; \
$0C:CD0C E8 INX ; |
$0C:CD0D E8 INX ; |
$0C:CD0E E8 INX ; } X += 4 (next OAM slot)
$0C:CD0F E0 0C CPX.B #$0C ; After 3 tiles, start the second row
$0C:CD11 D0 0B BNE $CD1E
$0C:CD13 A5 04 LDA $04 ; \
$0C:CD15 85 00 STA $00 ; } X position = row start [$04]
$0C:CD17 A5 02 LDA $02 ; \
$0C:CD19 18 CLC ; |
$0C:CD1A 69 10 ADC.B #$10 ; |
$0C:CD1C 85 02 STA $02 ; } Y position [$02] += $10 (next row down)
$0C:CD1E E0 18 CPX.B #$18
$0C:CD20 D0 B0 BNE $CCD2 ; Loop until 6 tiles (3x2 grid of 16x16) are written
$0C:CD22 60 RTS ; Return
$0C:CD23 A2 00 LDX.B #$00 ; Cutscene state: scroll screen upward with a shake. X = actor 0 (the camera)
$0C:CD25 A5 1C LDA RAM_ScreenBndryYLo
$0C:CD27 C9 C0 CMP.B #$C0 ; Has the screen Y scroll reached $C0?
$0C:CD29 D0 06 BNE $CD31 ; No: keep scrolling
$0C:CD2B 64 1A STZ RAM_ScreenBndryXLo ; Yes: stop the shake, layer 1 X scroll = 0
$0C:CD2D 64 1B STZ RAM_ScreenBndryXHi
$0C:CD2F 80 44 BRA $CD75 ; Skip to the actor 1 handling
$0C:CD31 9D 41 0B STA.W $0B41,X ; Actor 0 Y position (low) = screen Y scroll (low)
$0C:CD34 A5 1D LDA RAM_ScreenBndryYHi
$0C:CD36 9D 5F 0B STA.W $0B5F,X ; Actor 0 Y position (high) = screen Y scroll (high)
$0C:CD39 A9 F0 LDA.B #$F0
$0C:CD3B 9D 05 0B STA.W $0B05,X ; Actor 0 Y speed = $F0 (-1 pixel per frame, 4.4 fixed point)
$0C:CD3E 20 3A D3 JSR.W $D33A ; Apply Y speed to actor 0 Y position
$0C:CD41 20 83 D2 JSR.W $D283 ; Shake: layer 1 X scroll +/- 1 on alternate frames
$0C:CD44 E2 20 SEP #$20 ; 8-bit A
$0C:CD46 BD 5F 0B LDA.W $0B5F,X
$0C:CD49 85 1D STA RAM_ScreenBndryYHi ; Screen Y scroll (high) = actor 0 Y (high)
$0C:CD4B BD 41 0B LDA.W $0B41,X
$0C:CD4E 85 1C STA RAM_ScreenBndryYLo ; Screen Y scroll (low) = actor 0 Y (low)
$0C:CD50 C9 FD CMP.B #$FD ; Screen Y = $FD?
$0C:CD52 D0 05 BNE $CD59
$0C:CD54 A9 01 LDA.B #$01
$0C:CD56 8D 44 14 STA.W $1444 ; Yes: [$1444] = 1 (flag: spawn the falling object sprite)
$0C:CD59 A5 1C LDA RAM_ScreenBndryYLo
$0C:CD5B C9 E8 CMP.B #$E8 ; Screen Y = $E8?
$0C:CD5D D0 03 BNE $CD62
$0C:CD5F 20 C9 D5 JSR.W $D5C9 ; Yes: advance the sub-scene
$0C:CD62 A5 1C LDA RAM_ScreenBndryYLo
$0C:CD64 C9 C0 CMP.B #$C0 ; Screen Y = $C0 (final position)?
$0C:CD66 D0 0D BNE $CD75
$0C:CD68 A9 22 LDA.B #$22 ; Yes: sound effect $22
$0C:CD6A 8D F9 1D STA.W $1DF9 ; Play sound effect
$0C:CD6D 20 D0 D1 JSR.W $D1D0 ; Queue the 2-row tile strip ($D1A7) for upload
$0C:CD70 A9 08 LDA.B #$08
$0C:CD72 8D 06 0B STA.W $0B06 ; Actor 1 Y speed = 8
$0C:CD75 A2 01 LDX.B #$01 ; X = 1: actor 1
$0C:CD77 BD 05 0B LDA.W $0B05,X ; A = actor 1 Y speed
$0C:CD7A 10 09 BPL $CD85
$0C:CD7C BD 41 0B LDA.W $0B41,X ; Moving up: keep moving until its Y position < $68
$0C:CD7F C9 68 CMP.B #$68
$0C:CD81 B0 0E BCS $CD91
$0C:CD83 80 0F BRA $CD94
$0C:CD85 BD 41 0B LDA.W $0B41,X ; Moving down: A = actor 1 Y position
$0C:CD88 C9 78 CMP.B #$78 ; Reached $78?
$0C:CD8A D0 05 BNE $CD91
$0C:CD8C EE 42 14 INC.W $1442 ; Yes: advance to the next scene state
$0C:CD8F 80 0D BRA $CD9E ; Done
$0C:CD91 20 3A D3 JSR.W $D33A ; Apply actor 1 Y speed
$0C:CD94 A2 00 LDX.B #$00 ; X = 0
$0C:CD96 A9 04 LDA.B #$04 ; Actor 0 X speed = 4
$0C:CD98 9D 14 0B STA.W $0B14,X
$0C:CD9B 20 68 D3 JSR.W $D368 ; Apply actor 0 X speed
$0C:CD9E 82 89 00 BRL $CE2A ; Go draw
$0C:CDA1 A5 13 LDA RAM_FrameCounter ; Cutscene state: screen drops with growing speed and shakes
$0C:CDA3 29 03 AND.B #$03 ; Every 4th frame...
$0C:CDA5 D0 12 BNE $CDB9
$0C:CDA7 AD 47 14 LDA.W $1447 ; ...increase fall speed [$1447] by 2...
$0C:CDAA 18 CLC
$0C:CDAB 69 02 ADC.B #$02
$0C:CDAD 8D 47 14 STA.W $1447
$0C:CDB0 C9 80 CMP.B #$80 ; ...capped at $7F
$0C:CDB2 90 05 BCC $CDB9
$0C:CDB4 A9 7F LDA.B #$7F
$0C:CDB6 8D 47 14 STA.W $1447
$0C:CDB9 A2 00 LDX.B #$00 ; X = 0: actor 0
$0C:CDBB A5 1C LDA RAM_ScreenBndryYLo ; Actor 0 Y position = screen Y scroll
$0C:CDBD 9D 41 0B STA.W $0B41,X
$0C:CDC0 A5 1D LDA RAM_ScreenBndryYHi
$0C:CDC2 9D 5F 0B STA.W $0B5F,X
$0C:CDC5 AD 47 14 LDA.W $1447 ; Actor 0 Y speed = [$1447]
$0C:CDC8 9D 05 0B STA.W $0B05,X
$0C:CDCB 20 3A D3 JSR.W $D33A ; Apply Y speed
$0C:CDCE BD 41 0B LDA.W $0B41,X
$0C:CDD1 F0 04 BEQ $CDD7 ; Shake while the screen Y is 0 or below $20
$0C:CDD3 C9 20 CMP.B #$20
$0C:CDD5 B0 03 BCS $CDDA
$0C:CDD7 20 83 D2 JSR.W $D283 ; Shake: layer 1 X scroll +/- 1
$0C:CDDA BD 5F 0B LDA.W $0B5F,X ; Screen Y scroll = actor 0 Y position
$0C:CDDD 85 1D STA RAM_ScreenBndryYHi
$0C:CDDF BD 41 0B LDA.W $0B41,X
$0C:CDE2 85 1C STA RAM_ScreenBndryYLo
$0C:CDE4 F0 09 BEQ $CDEF
$0C:CDE6 C9 20 CMP.B #$20
$0C:CDE8 90 05 BCC $CDEF
$0C:CDEA A9 08 LDA.B #$08
$0C:CDEC 8D 06 0B STA.W $0B06 ; At or above $20: actor 1 Y speed = 8
$0C:CDEF BD 41 0B LDA.W $0B41,X
$0C:CDF2 F0 0E BEQ $CE02 ; Reached Y position $A8?
$0C:CDF4 C9 A8 CMP.B #$A8
$0C:CDF6 90 0A BCC $CE02
$0C:CDF8 A9 7F LDA.B #$7F ; Yes: timer [$143F] = $7F
$0C:CDFA 8D 3F 14 STA.W $143F
$0C:CDFD EE 42 14 INC.W $1442 ; Advance to the next scene state
$0C:CE00 80 1C BRA $CE1E
$0C:CE02 E2 20 SEP #$20 ; 8-bit A
$0C:CE04 A2 01 LDX.B #$01 ; X = 1: actor 1
$0C:CE06 BD 05 0B LDA.W $0B05,X ; A = actor 1 Y speed
$0C:CE09 10 09 BPL $CE14
$0C:CE0B BD 41 0B LDA.W $0B41,X ; Moving up: stop once Y position < $68
$0C:CE0E C9 68 CMP.B #$68
$0C:CE10 B0 09 BCS $CE1B
$0C:CE12 80 0A BRA $CE1E
$0C:CE14 BD 41 0B LDA.W $0B41,X ; Moving down: stop once Y position >= $78
$0C:CE17 C9 78 CMP.B #$78
$0C:CE19 B0 03 BCS $CE1E
$0C:CE1B 20 3A D3 JSR.W $D33A ; Apply actor 1 Y speed
$0C:CE1E A9 77 LDA.B #$77
$0C:CE20 38 SEC
$0C:CE21 ED 41 0B SBC.W $0B41
$0C:CE24 8D 43 0B STA.W $0B43 ; [$0B43] = $77 - actor 0 Y: object Y relative to the scrolled screen
$0C:CE27 20 AB CE JSR.W $CEAB ; Draw the spinning object sprite
$0C:CE2A 20 48 CE JSR.W $CE48 ; Draw the 4-tile animated row
$0C:CE2D A2 14 LDX.B #$14 ; X = $14: OAM offset for the 2x2 sprite
$0C:CE2F A9 A8 LDA.B #$A8
$0C:CE31 85 00 STA $00 ; X position of the 2x2 sprite = $A8
$0C:CE33 85 02 STA $02
$0C:CE35 A9 5F LDA.B #$5F
$0C:CE37 38 SEC
$0C:CE38 ED 41 0B SBC.W $0B41
$0C:CE3B 85 01 STA $01 ; Y position of the 2x2 sprite = $5F - screen offset
$0C:CE3D 82 C6 FD BRL $CC06 ; Draw the 2x2 sprite at ([$00],[$01])
;;; $CE40..CE40: Table: animated 4-tile row frames ;;;
;; Two frames of four 16x16 tile numbers ($80-$83, mirrored); indexed by [$1440]*4.
$0C:CE40 .db $80,$81,$82,$83,$83,$82,$81,$80 ; Frame 0: $80-$83, frame 1: $83-$80 (mirrored)
;;; $CE48: Cutscene: draw animated 4-tile row ;;;
;; Flips [$1440] every 6 frames and draws four 16x16 tiles in a horizontal row from X=$98, Y=[$0B42] (OAM
;; slots 1-4).
;; Second frame is X-flipped.
;; Called by:
;; $0C:CE2A: Cutscene: castle tiles, scroll and shake states
$0C:CE48 CE 3F 14 DEC.W $143F ; Every 6 frames (timer $143F)...
$0C:CE4B 10 0D BPL $CE5A
$0C:CE4D A9 05 LDA.B #$05 ; ...reload timer = 5...
$0C:CE4F 8D 3F 14 STA.W $143F
$0C:CE52 AD 40 14 LDA.W $1440
$0C:CE55 49 01 EOR.B #$01 ; ...and flip [$1440] between 0 and 1
$0C:CE57 8D 40 14 STA.W $1440
$0C:CE5A A9 98 LDA.B #$98 ; First tile X position = $98
$0C:CE5C 85 00 STA $00
$0C:CE5E A0 21 LDY.B #$21 ; OAM prop $21 (palette 0, priority 2)...
$0C:CE60 AD 40 14 LDA.W $1440
$0C:CE63 F0 02 BEQ $CE67
$0C:CE65 A0 61 LDY.B #$61 ; ...or $61 (X flipped) on the second frame
$0C:CE67 84 04 STY $04 ; $04 = prop
$0C:CE69 AD 40 14 LDA.W $1440
$0C:CE6C 0A ASL
$0C:CE6D 0A ASL
$0C:CE6E A8 TAY ; Y = [$1440] * 4: row of 4 tiles in $CE40
$0C:CE6F A2 00 LDX.B #$00 ; X = OAM index 0
$0C:CE71 A5 00 LDA $00 ; A = X position
$0C:CE73 9D 04 02 STA.W $0204,X ; OAM X position
$0C:CE76 AD 42 0B LDA.W $0B42
$0C:CE79 9D 05 02 STA.W $0205,X ; OAM Y position = [$0B42]
$0C:CE7C B9 40 CE LDA.W $CE40,Y ; A = tile from the table
$0C:CE7F 9D 06 02 STA.W $0206,X ; OAM tile
$0C:CE82 A5 04 LDA $04
$0C:CE84 9D 07 02 STA.W $0207,X ; OAM prop
$0C:CE87 DA PHX ; \
$0C:CE88 8A TXA ; |
$0C:CE89 4A LSR ; |
$0C:CE8A 4A LSR ; |
$0C:CE8B AA TAX ; |
$0C:CE8C A9 02 LDA.B #$02 ; |
$0C:CE8E 9D 21 04 STA.W $0421,X ; |
$0C:CE91 FA PLX ; } OAM size bit for this slot = 2 (16x16)
$0C:CE92 A5 00 LDA $00 ; \
$0C:CE94 18 CLC ; |
$0C:CE95 69 10 ADC.B #$10 ; |
$0C:CE97 85 00 STA $00 ; } [$00] += $10: next tile to the right
$0C:CE99 C8 INY ; Next tile in the table
$0C:CE9A E8 INX ; \
$0C:CE9B E8 INX ; |
$0C:CE9C E8 INX ; |
$0C:CE9D E8 INX ; } X += 4: next OAM slot
$0C:CE9E E0 10 CPX.B #$10
$0C:CEA0 D0 CF BNE $CE71 ; Loop until 4 tiles are written
$0C:CEA2 60 RTS ; Return
;;; $CEA3..CEA7: Table: spinning sprite tiles and properties ;;;
;; Tile numbers then OAM props for a 4-frame spin ($25/$65 = X flip).
$0C:CEA3 .db $C6,$C8,$C6,$C8 ; Spin tiles: $C6,$C8,$C6,$C8
$0C:CEA7 .db $25,$25,$65,$65 ; Spin props: $25,$25,$65,$65 (second half X flipped)
;;; $CEAB: Cutscene: draw spinning sprite ;;;
;; Draws one 16x16 sprite at X=$B0, Y=[$0B43] in OAM slot 12, frame advancing every 2 frames.
;; Called by:
;; $0C:CE27: Cutscene: castle tiles, scroll and shake states
$0C:CEAB A2 30 LDX.B #$30 ; X = $30: OAM slot 12
$0C:CEAD A9 B0 LDA.B #$B0
$0C:CEAF 9D 00 02 STA.W OAM_ExtendedDispX,X ; OAM X position = $B0
$0C:CEB2 AD 43 0B LDA.W $0B43
$0C:CEB5 9D 01 02 STA.W OAM_ExtendedDispY,X ; OAM Y position = [$0B43]
$0C:CEB8 A5 13 LDA RAM_FrameCounter
$0C:CEBA 29 06 AND.B #$06
$0C:CEBC 4A LSR
$0C:CEBD A8 TAY ; Y = (frame counter & 6) / 2: animation frame 0..3, changes every 2 frames
$0C:CEBE B9 A3 CE LDA.W $CEA3,Y
$0C:CEC1 9D 02 02 STA.W OAM_ExtendedTile,X ; OAM tile = $C6 or $C8
$0C:CEC4 B9 A7 CE LDA.W $CEA7,Y
$0C:CEC7 9D 03 02 STA.W OAM_ExtendedProp,X ; OAM prop: $25 or $65 (X flip), so the object spins
$0C:CECA 8A TXA ; \
$0C:CECB 4A LSR ; |
$0C:CECC 4A LSR ; |
$0C:CECD AA TAX ; } X = OAM slot number
$0C:CECE A9 02 LDA.B #$02
$0C:CED0 9D 20 04 STA.W $0420,X ; Size bit = 2 (16x16)
$0C:CED3 60 RTS ; Return
;;; $CED4..CEDB: Tables: animation frame and duration per step ;;;
;; $CED4: [$1440] frame for each sequence step; $CEDB: frame duration (written to [$143F]).
$0C:CED4 .db $02,$FF,$02,$03,$04,$05,$06 ; Frame [$1440] per sequence step: 02,FF(hidden),02,03,04,05,06
$0C:CEDB .db $03,$01,$07,$07,$07,$07,$07 ; Duration [$143F] per step: 03,01,07,07,07,07,07
;;; $CEE2: Cutscene state: falling object then frame sequence ;;;
;; Moves actor 2 under its Y/X speed while toggling frame; when Y >= $5C it has landed and a table-driven
;; frame sequence plays ([$1447] = step).
;; Plays sound $08 on step 1; advances the scene state on step 6. Then draws the object via $0CCF49.
$0C:CEE2 AD 40 14 LDA.W $1440 ; Cutscene state: object falls and bounces, then plays a frame sequence
$0C:CEE5 C9 02 CMP.B #$02
$0C:CEE7 B0 26 BCS $CF0F ; [$1440] >= 2: it has landed, go to the sequence
$0C:CEE9 A5 13 LDA RAM_FrameCounter ; Falling: toggle [$1440] every other frame
$0C:CEEB 29 01 AND.B #$01
$0C:CEED F0 08 BEQ $CEF7
$0C:CEEF AD 40 14 LDA.W $1440
$0C:CEF2 49 01 EOR.B #$01
$0C:CEF4 8D 40 14 STA.W $1440
$0C:CEF7 A2 02 LDX.B #$02 ; X = 2: actor 2
$0C:CEF9 20 3A D3 JSR.W $D33A ; Apply actor 2 Y speed
$0C:CEFC 20 68 D3 JSR.W $D368 ; Apply actor 2 X speed
$0C:CEFF AD 43 0B LDA.W $0B43 ; A = Y position of the object
$0C:CF02 C9 5C CMP.B #$5C ; Reached Y position $5C?
$0C:CF04 90 07 BCC $CF0D ; No: keep falling
$0C:CF06 A9 02 LDA.B #$02 ; Yes: landed, [$1440] = 2
$0C:CF08 8D 40 14 STA.W $1440
$0C:CF0B 80 02 BRA $CF0F
$0C:CF0D 80 29 BRA $CF38 ; Draw
$0C:CF0F CE 3F 14 DEC.W $143F ; Count down the frame timer
$0C:CF12 10 24 BPL $CF38
$0C:CF14 AD 47 14 LDA.W $1447 ; Timer expired: step [$1447] to the next entry of the sequence
$0C:CF17 1A INC A
$0C:CF18 8D 47 14 STA.W $1447
$0C:CF1B AA TAX
$0C:CF1C BD D4 CE LDA.W $CED4,X ; A = animation frame for this step ($CED4)
$0C:CF1F 8D 40 14 STA.W $1440 ; [$1440] = frame
$0C:CF22 BD DB CE LDA.W $CEDB,X ; A = duration for this step ($CEDB)
$0C:CF25 8D 3F 14 STA.W $143F ; [$143F] = timer
$0C:CF28 E0 01 CPX.B #$01 ; Step 1?
$0C:CF2A D0 05 BNE $CF31
$0C:CF2C A9 08 LDA.B #$08 ; Sound effect $08
$0C:CF2E 8D F9 1D STA.W $1DF9 ; Play sound effect
$0C:CF31 E0 06 CPX.B #$06 ; Step 6 (last)?
$0C:CF33 D0 03 BNE $CF38
$0C:CF35 20 C6 D5 JSR.W $D5C6 ; Advance to the next scene state
$0C:CF38 82 0E 00 BRL $CF49 ; Draw
;;; $CF3B..CF42: Tables: landed object tiles and properties ;;;
;; Tile numbers and OAM props, indexed by [$1440] (0-6).
$0C:CF3B .db $B7,$B8,$89,$99,$A9,$B9,$E8 ; Tiles by frame 0-6: B7,B8,89,99,A9,B9,E8
$0C:CF42 .db $25,$25,$23,$23,$23,$23,$23 ; Props by frame 0-6: $25,$25, then $23 x5
;;; $CF49: Cutscene: draw object and wait states ;;;
;; $0CCF49: draws an 8x8 sprite at X=[$0B52], Y=[$0B43] using [$1440] (hidden when $FF).
;; $0CCF72: state - waits through four 4-frame animation steps, then advances. $0CCFC5 is a sibling wait
;; state.
;; Called by:
;; $0C:CA15: Pointer table: cutscene 5 states; cutscene 4 (Ptrs0CC9F0)
$0C:CF49 AC 40 14 LDY.W $1440 ; Y = [$1440] (frame, $FF = hidden)
$0C:CF4C C0 FF CPY.B #$FF
$0C:CF4E F0 21 BEQ $CF71 ; Nothing to draw when hidden
$0C:CF50 A2 04 LDX.B #$04 ; X = 4: OAM slot 1
$0C:CF52 AD 52 0B LDA.W $0B52
$0C:CF55 9D 00 02 STA.W OAM_ExtendedDispX,X ; OAM X position = [$0B52]
$0C:CF58 AD 43 0B LDA.W $0B43
$0C:CF5B 9D 01 02 STA.W OAM_ExtendedDispY,X ; OAM Y position = [$0B43]
$0C:CF5E B9 3B CF LDA.W $CF3B,Y ; A = tile ($CF3B)
$0C:CF61 9D 02 02 STA.W OAM_ExtendedTile,X ; OAM tile
$0C:CF64 B9 42 CF LDA.W $CF42,Y ; A = prop ($CF42)
$0C:CF67 9D 03 02 STA.W OAM_ExtendedProp,X ; OAM prop
$0C:CF6A 8A TXA ; \
$0C:CF6B 4A LSR ; |
$0C:CF6C 4A LSR ; |
$0C:CF6D AA TAX ; } X = OAM slot number
$0C:CF6E 9E 20 04 STZ.W $0420,X ; Size bit = 0 (8x8)
$0C:CF71 60 RTS ; Return
$0C:CF72 CE 3F 14 DEC.W $143F ; Scene state: wait 4 animation frames. Count down timer
$0C:CF75 10 14 BPL $CF8B
$0C:CF77 A9 03 LDA.B #$03 ; Reload timer = 3...
$0C:CF79 8D 3F 14 STA.W $143F
$0C:CF7C EE 40 14 INC.W $1440 ; ...and advance animation frame
$0C:CF7F AD 40 14 LDA.W $1440
$0C:CF82 C9 04 CMP.B #$04 ; After 4 frames...
$0C:CF84 D0 05 BNE $CF8B
$0C:CF86 EE 42 14 INC.W $1442 ; ...advance to the next scene state
$0C:CF89 80 05 BRA $CF90
$0C:CF8B A2 04 LDX.B #$04 ; X = 4: OAM slot 1
$0C:CF8D 20 A3 CF JSR.W $CFA3 ; Draw the sprite for the current frame
$0C:CF90 A2 08 LDX.B #$08 ; X = 8: OAM offset for the 2x2 sprite
$0C:CF92 A9 A8 LDA.B #$A8
$0C:CF94 85 00 STA $00 ; X position = $A8
$0C:CF96 85 02 STA $02
$0C:CF98 A9 5F LDA.B #$5F
$0C:CF9A 85 01 STA $01 ; Y position = $5F
$0C:CF9C 82 67 FC BRL $CC06 ; Draw the 2x2 sprite
;;; $CF9F..CF9F: Table: sprite tile numbers ;;;
;; Four 16x16 tile numbers indexed by [$1440].
$0C:CF9F .db $60,$62,$64,$66 ; Tiles for frames 0-3: 60,62,64,66
;;; $CFA3: Cutscene: sprite draw, exit and sub-scene states ;;;
;; $0CCFA3: draws a 16x16 sprite at ($AC,$63) with tile from $CF9F (quirk: tile number is also used as
;; the OAM prop).
;; $0CCFC5/$0CCFF7: wait states. $0CCFDE: final state, once [$1443] and [$144D] are 0, any of B/Y/A/X resets
;; the state and sets game mode $0B.
;; $0CD003: state driven by sub-scene [$143E] (timers, layer 1 X shake, castle sprite counter-shifted against
;; the shake).
;; Called by:
;; $0C:CF8D: Cutscene: draw object and wait states
$0C:CFA3 AC 40 14 LDY.W $1440 ; Y = [$1440]
$0C:CFA6 B9 9F CF LDA.W $CF9F,Y ; A = tile from $CF9F
$0C:CFA9 9D 02 02 STA.W OAM_ExtendedTile,X ; OAM tile
$0C:CFAC A0 21 LDY.B #$21 ; Y = $21 (unused: the tile number is stored as the prop below)
$0C:CFAE 9D 03 02 STA.W OAM_ExtendedProp,X ; OAM prop = tile number (looks like a bug)
$0C:CFB1 A9 AC LDA.B #$AC
$0C:CFB3 9D 00 02 STA.W OAM_ExtendedDispX,X ; OAM X position = $AC
$0C:CFB6 A9 63 LDA.B #$63
$0C:CFB8 9D 01 02 STA.W OAM_ExtendedDispY,X ; OAM Y position = $63
$0C:CFBB 8A TXA ; \
$0C:CFBC 4A LSR ; |
$0C:CFBD 4A LSR ; |
$0C:CFBE AA TAX ; } X = OAM slot number
$0C:CFBF A9 02 LDA.B #$02
$0C:CFC1 9D 20 04 STA.W $0420,X ; Size bit = 2 (16x16)
$0C:CFC4 60 RTS ; Return
$0C:CFC5 AD 45 14 LDA.W $1445 ; Scene state: A = [$1445]
$0C:CFC8 C9 03 CMP.B #$03 ; Is it 3?
$0C:CFCA F0 07 BEQ $CFD3
$0C:CFCC A9 08 LDA.B #$08 ; No: timer [$143F] = 8 and keep waiting
$0C:CFCE 8D 3F 14 STA.W $143F
$0C:CFD1 80 08 BRA $CFDB
$0C:CFD3 CE 3F 14 DEC.W $143F ; Yes: count down the timer
$0C:CFD6 10 03 BPL $CFDB
$0C:CFD8 EE 42 14 INC.W $1442 ; Timer expired: advance to the next scene state
$0C:CFDB 82 B2 FF BRL $CF90 ; Draw
$0C:CFDE AD 43 14 LDA.W $1443 ; Final state: wait for [$1443] and [$144D] to be zero
$0C:CFE1 0D 4D 14 ORA.W $144D ; (text and fade finished)
$0C:CFE4 D0 10 BNE $CFF6
$0C:CFE6 A5 16 LDA $16 ; Check controller 1: B, Y (byetUDLR) or A, X (axlr) pressed
$0C:CFE8 05 18 ORA $18
$0C:CFEA 29 C0 AND.B #$C0
$0C:CFEC F0 08 BEQ $CFF6 ; None pressed: stay here
$0C:CFEE 9C 42 14 STZ.W $1442 ; Reset the scene state
$0C:CFF1 A9 0B LDA.B #$0B ; Game mode = $0B (leave the cutscene)
$0C:CFF3 8D 00 01 STA.W RAM_GameMode
$0C:CFF6 60 RTS ; Return
$0C:CFF7 AD 43 14 LDA.W $1443 ; Scene state: advance once [$1443] is set, then fall into the exit check
$0C:CFFA F0 06 BEQ $D002
$0C:CFFC EE 42 14 INC.W $1442
$0C:CFFF 82 DC FF BRL $CFDE ; Go to the exit check
$0C:D002 60 RTS ; Return
$0C:D003 AD 3E 14 LDA.W RAM_ScrollSprNum ; Scene state driven by [$143E] (sub-scene number)
$0C:D006 C9 01 CMP.B #$01 ; Sub-scene 1?
$0C:D008 F0 2A BEQ $D034
$0C:D00A C9 02 CMP.B #$02 ; Sub-scene 2?
$0C:D00C F0 0B BEQ $D019
$0C:D00E C9 03 CMP.B #$03 ; Sub-scene 3?
$0C:D010 F0 2C BEQ $D03E
$0C:D012 A9 10 LDA.B #$10 ; Sub-scene 0: timer [$143F] = $10
$0C:D014 8D 3F 14 STA.W $143F
$0C:D017 80 2D BRA $D046
$0C:D019 AD 3F 14 LDA.W $143F ; Sub-scene 2: while the timer is >= 8, draw the puff effect
$0C:D01C 29 F8 AND.B #$F8
$0C:D01E F0 03 BEQ $D023
$0C:D020 20 69 D0 JSR.W $D069 ; Draw the 2x2 effect at Mario's position
$0C:D023 20 83 D2 JSR.W $D283 ; Shake the screen
$0C:D026 CE 3F 14 DEC.W $143F ; Count down
$0C:D029 10 1B BPL $D046
$0C:D02B 9C 3E 14 STZ.W RAM_ScrollSprNum ; Timer expired: sub-scene = 0
$0C:D02E 64 1A STZ RAM_ScreenBndryXLo ; Layer 1 X scroll = 0
$0C:D030 64 1B STZ RAM_ScreenBndryXHi
$0C:D032 80 12 BRA $D046
$0C:D034 A9 3F LDA.B #$3F ; Sub-scene 1: timer = $3F
$0C:D036 8D 3F 14 STA.W $143F
$0C:D039 A9 03 LDA.B #$03 ; Sub-scene = 3
$0C:D03B 8D 3E 14 STA.W RAM_ScrollSprNum
$0C:D03E CE 3F 14 DEC.W $143F ; Sub-scene 3: count down the timer
$0C:D041 10 03 BPL $D046
$0C:D043 EE 42 14 INC.W $1442 ; Timer expired: advance to the next scene state
$0C:D046 A2 A8 LDX.B #$A8 ; X position of the 2x2 sprite = $A8
$0C:D048 A5 1A LDA RAM_ScreenBndryXLo ; Compensate the shake: layer 1 X scroll shifts the sprite the opposite way
$0C:D04A F0 08 BEQ $D054
$0C:D04C 10 04 BPL $D052
$0C:D04E A2 A9 LDX.B #$A9 ; Scroll < 0: X = $A9
$0C:D050 80 02 BRA $D054
$0C:D052 A2 A7 LDX.B #$A7 ; Scroll > 0: X = $A7
$0C:D054 86 00 STX $00
$0C:D056 86 02 STX $02
$0C:D058 A9 5F LDA.B #$5F ; Y position = $5F
$0C:D05A 85 01 STA $01
$0C:D05C A2 08 LDX.B #$08 ; X = 8: OAM offset
$0C:D05E 82 A5 FB BRL $CC06 ; Draw the 2x2 sprite
;;; $D061..D065: Table: puff effect tiles and properties ;;;
;; Four 8x8 tiles ($7C,$7D,$7D,$7C) with props $30/$F0 (lower pair flipped).
$0C:D061 .db $7C,$7D,$7D,$7C ; Tiles: 7C,7D,7D,7C
$0C:D065 .db $30,$30,$F0,$F0 ; Props: 30,30,F0,F0 (bottom pair X and Y flipped)
;;; $D069: Cutscene: effects near Mario and scroll states ;;;
;; $0CD069: draws a 2x2 group of 8x8 pieces at Mario X/Y + $10 (OAM slots 1-4).
;; $0CD0BC-$0CD19C: scene states keyed to [$143E]: scroll screen down, ease screen and puff effect ($1A
;; sound), layer 2 Y shake.
;; Called by:
;; $0C:D020: Cutscene: sprite draw, exit and sub-scene states
;; $0C:D11B: Cutscene: effects near Mario and scroll states
$0C:D069 A0 00 LDY.B #$00 ; Y = 0: piece index
$0C:D06B A2 04 LDX.B #$04 ; X = 4: OAM slot 1
$0C:D06D A5 94 LDA RAM_MarioXPos
$0C:D06F 18 CLC
$0C:D070 69 10 ADC.B #$10
$0C:D072 85 00 STA $00 ; $00, $02 = Mario X + $10
$0C:D074 85 02 STA $02
$0C:D076 A5 96 LDA RAM_MarioYPos
$0C:D078 18 CLC
$0C:D079 69 10 ADC.B #$10
$0C:D07B 85 01 STA $01 ; $01 = Mario Y + $10
$0C:D07D A5 00 LDA $00
$0C:D07F 9D 00 02 STA.W OAM_ExtendedDispX,X ; OAM X position
$0C:D082 A5 01 LDA $01
$0C:D084 9D 01 02 STA.W OAM_ExtendedDispY,X ; OAM Y position
$0C:D087 B9 61 D0 LDA.W $D061,Y ; A = tile ($7C,$7D,$7D,$7C)
$0C:D08A 9D 02 02 STA.W OAM_ExtendedTile,X ; OAM tile
$0C:D08D B9 65 D0 LDA.W $D065,Y ; A = prop ($30,$30,$F0,$F0: bottom pieces flipped X and Y)
$0C:D090 9D 03 02 STA.W OAM_ExtendedProp,X ; OAM prop
$0C:D093 DA PHX ; \
$0C:D094 8A TXA ; |
$0C:D095 4A LSR ; |
$0C:D096 4A LSR ; |
$0C:D097 AA TAX ; |
$0C:D098 9E 20 04 STZ.W $0420,X ; |
$0C:D09B FA PLX ; } Size bit = 0 (8x8)
$0C:D09C A5 00 LDA $00 ; \
$0C:D09E 18 CLC ; |
$0C:D09F 69 08 ADC.B #$08 ; |
$0C:D0A1 85 00 STA $00 ; } [$00] += 8: next piece to the right
$0C:D0A3 C8 INY ; Next piece
$0C:D0A4 C0 02 CPY.B #$02 ; After 2 pieces, start the lower row
$0C:D0A6 D0 0B BNE $D0B3
$0C:D0A8 A5 02 LDA $02
$0C:D0AA 85 00 STA $00
$0C:D0AC A5 01 LDA $01
$0C:D0AE 18 CLC
$0C:D0AF 69 08 ADC.B #$08
$0C:D0B1 85 01 STA $01 ; [$01] += 8: next row
$0C:D0B3 E8 INX ; \
$0C:D0B4 E8 INX ; |
$0C:D0B5 E8 INX ; |
$0C:D0B6 E8 INX ; } X += 4: next OAM slot
$0C:D0B7 C0 04 CPY.B #$04
$0C:D0B9 D0 C2 BNE $D07D ; Loop until 4 pieces are written
$0C:D0BB 60 RTS ; Return
$0C:D0BC AD 3E 14 LDA.W RAM_ScrollSprNum ; Scene state: if sub-scene = 1, advance
$0C:D0BF C9 01 CMP.B #$01
$0C:D0C1 D0 03 BNE $D0C6
$0C:D0C3 EE 42 14 INC.W $1442 ; Advance to the next scene state
$0C:D0C6 82 C7 FE BRL $CF90 ; Draw
$0C:D0C9 AD 3E 14 LDA.W RAM_ScrollSprNum ; Scene state: if a sub-scene is running...
$0C:D0CC F0 03 BEQ $D0D1
$0C:D0CE 20 C6 D5 JSR.W $D5C6 ; ...advance to the next scene state
$0C:D0D1 60 RTS ; Return
$0C:D0D2 AD 3E 14 LDA.W RAM_ScrollSprNum ; Scene state (sub-scene 1 only): scroll screen down at speed 8
$0C:D0D5 C9 01 CMP.B #$01
$0C:D0D7 D0 2E BNE $D107
$0C:D0D9 A2 00 LDX.B #$00 ; X = 0: actor 0
$0C:D0DB A5 1C LDA RAM_ScreenBndryYLo ; Actor 0 Y position = screen Y scroll
$0C:D0DD 9D 41 0B STA.W $0B41,X
$0C:D0E0 A5 1D LDA RAM_ScreenBndryYHi
$0C:D0E2 9D 5F 0B STA.W $0B5F,X
$0C:D0E5 A9 08 LDA.B #$08 ; Actor 0 Y speed = 8
$0C:D0E7 9D 05 0B STA.W $0B05,X
$0C:D0EA 20 3A D3 JSR.W $D33A ; Apply Y speed
$0C:D0ED BD 41 0B LDA.W $0B41,X
$0C:D0F0 F0 0E BEQ $D100 ; Y position 0 or < 9: just store it
$0C:D0F2 C9 09 CMP.B #$09
$0C:D0F4 90 0A BCC $D100
$0C:D0F6 EE 42 14 INC.W $1442 ; Moved far enough: advance to the next scene state
$0C:D0F9 A9 28 LDA.B #$28 ; [$1447] = $28 (starting speed for the next state)
$0C:D0FB 8D 47 14 STA.W $1447
$0C:D0FE 80 07 BRA $D107 ; Done
$0C:D100 85 1C STA RAM_ScreenBndryYLo ; Screen Y scroll = actor 0 Y position
$0C:D102 BD 5F 0B LDA.W $0B5F,X
$0C:D105 85 1D STA RAM_ScreenBndryYHi
$0C:D107 60 RTS ; Return
$0C:D108 AD 3E 14 LDA.W RAM_ScrollSprNum ; Scene state (sub-scene 2 only): screen drifts and puff effect
$0C:D10B C9 02 CMP.B #$02
$0C:D10D D0 5F BNE $D16E
$0C:D10F CE 47 14 DEC.W $1447 ; [$1447] -= 1 (acts as timer and Y speed)
$0C:D112 AD 47 14 LDA.W $1447
$0C:D115 30 07 BMI $D11E ; Negative: no puff
$0C:D117 C9 24 CMP.B #$24 ; Below $24: no puff
$0C:D119 90 03 BCC $D11E
$0C:D11B 20 69 D0 JSR.W $D069 ; Draw the puff effect near Mario
$0C:D11E AD 47 14 LDA.W $1447
$0C:D121 C9 C8 CMP.B #$C8 ; Reached $C8 (-56)?
$0C:D123 D0 0E BNE $D133
$0C:D125 A9 40 LDA.B #$40 ; Yes: timer [$143F] = $40
$0C:D127 8D 3F 14 STA.W $143F
$0C:D12A A9 1A LDA.B #$1A ; Sound effect $1A
$0C:D12C 8D FC 1D STA.W $1DFC ; Play sound effect
$0C:D12F EE 42 14 INC.W $1442 ; Advance to the next scene state
$0C:D132 60 RTS ; Return
$0C:D133 A2 00 LDX.B #$00 ; X = 0: actor 0
$0C:D135 A5 1C LDA RAM_ScreenBndryYLo ; Actor 0 position = screen scroll
$0C:D137 9D 41 0B STA.W $0B41,X
$0C:D13A A5 1D LDA RAM_ScreenBndryYHi
$0C:D13C 9D 5F 0B STA.W $0B5F,X
$0C:D13F A5 1A LDA RAM_ScreenBndryXLo
$0C:D141 9D 50 0B STA.W $0B50,X
$0C:D144 A5 1B LDA RAM_ScreenBndryXHi
$0C:D146 9D 6E 0B STA.W $0B6E,X
$0C:D149 AD 47 14 LDA.W $1447 ; Actor 0 Y speed = [$1447]
$0C:D14C 9D 05 0B STA.W $0B05,X
$0C:D14F A9 E8 LDA.B #$E8 ; Actor 0 X speed = $E8 (about -1.5 pixels per frame)
$0C:D151 9D 14 0B STA.W $0B14,X
$0C:D154 20 3A D3 JSR.W $D33A ; Apply Y speed
$0C:D157 20 68 D3 JSR.W $D368 ; Apply X speed
$0C:D15A BD 41 0B LDA.W $0B41,X ; Screen scroll = actor 0 position
$0C:D15D 85 1C STA RAM_ScreenBndryYLo
$0C:D15F BD 5F 0B LDA.W $0B5F,X
$0C:D162 85 1D STA RAM_ScreenBndryYHi
$0C:D164 BD 50 0B LDA.W $0B50,X
$0C:D167 85 1A STA RAM_ScreenBndryXLo
$0C:D169 BD 6E 0B LDA.W $0B6E,X
$0C:D16C 85 1B STA RAM_ScreenBndryXHi
$0C:D16E 60 RTS ; Return
$0C:D16F A5 13 LDA RAM_FrameCounter ; Scene state: shake layer 2 Y position by +/- 1 every other frame
$0C:D171 29 02 AND.B #$02
$0C:D173 F0 0E BEQ $D183
$0C:D175 C2 20 REP #$20 ; 16-bit A
$0C:D177 A5 20 LDA $20 ; Layer 2 Y position -= 1
$0C:D179 38 SEC
$0C:D17A E9 01 00 SBC.W #$0001
$0C:D17D 85 20 STA $20
$0C:D17F E2 20 SEP #$20 ; 8-bit A
$0C:D181 80 0C BRA $D18F
$0C:D183 C2 20 REP #$20 ; 16-bit A
$0C:D185 A5 20 LDA $20 ; Layer 2 Y position += 1
$0C:D187 18 CLC
$0C:D188 69 01 00 ADC.W #$0001
$0C:D18B 85 20 STA $20
$0C:D18D E2 20 SEP #$20 ; 8-bit A
$0C:D18F CE 3F 14 DEC.W $143F ; Count down the timer
$0C:D192 10 07 BPL $D19B
$0C:D194 64 20 STZ $20 ; Timer expired: layer 2 Y position = 0
$0C:D196 64 21 STZ $21
$0C:D198 EE 42 14 INC.W $1442 ; Advance to the next scene state
$0C:D19B 60 RTS ; Return
$0C:D19C AD 3E 14 LDA.W RAM_ScrollSprNum ; Scene state: if sub-scene = 3, advance
$0C:D19F C9 03 CMP.B #$03
$0C:D1A1 D0 03 BNE $D1A6
$0C:D1A3 20 C6 D5 JSR.W $D5C6 ; Advance to the next scene state
$0C:D1A6 60 RTS ; Return
;;; $D1A7..D1CF: Stripe image data: two rows of 8 tiles ;;;
;; Stripe format: VRAM address (hi,lo), flags/length (hi,lo; length-1), then tile/prop byte pairs; $FF ends
;; the data.
;; Two rows at VRAM $20B3 and $20D3, each 8 tiles (C0-C5 / D0-D5 with mirrored ends).
$0C:D1A7 .db $20,$B3,$00,$0F,$C0,$01,$C1,$01 ; VRAM $20B3, flags 0, length-1 = $0F: 8 tile+prop pairs C0..C5, flipped C1, C0
$0C:D1AF .db $C2,$01,$C3,$01,$C4,$01,$C5,$01 ; tiles C2..C5 (prop 01)
$0C:D1B7 .db $C1,$41,$C0,$41,$20,$D3,$00,$0F ; flipped C1, C0 (prop 41); next: VRAM $20D3, length 16 (second row)
$0C:D1BF .db $D0,$01,$D1,$01,$D2,$01,$D3,$01 ; tiles D0..D3 (prop 01)
$0C:D1C7 .db $D4,$01,$D5,$01,$D1,$41,$D0,$41 ; tiles D4, D5, then flipped D1, D0; $FF ends the stripe
$0C:D1CF .db $FF
;;; $D1D0: Queue tile strip for upload ;;;
;; Copies the 41 bytes of $D1A7 into the stripe image buffer at $7F837D (indexed by [$7F837B]) and
;; advances the index by $28.
;; Called by:
;; $0C:CD6D: Cutscene: castle tiles, scroll and shake states
$0C:D1D0 A0 28 LDY.B #$28 ; Y = $28: index of the last byte of the strip
$0C:D1D2 98 TYA
$0C:D1D3 18 CLC
$0C:D1D4 6F 7B 83 7F ADC.L $7F837B ; X = Y + [$7F837B] (current end of the upload buffer)
$0C:D1D8 AA TAX
$0C:D1D9 B9 A7 D1 LDA.W $D1A7,Y ; A = strip byte
$0C:D1DC 9F 7D 83 7F STA.L $7F837D,X ; Copy to the stripe buffer at $7F837D
$0C:D1E0 CA DEX
$0C:D1E1 88 DEY
$0C:D1E2 10 F5 BPL $D1D9 ; Copy all 41 bytes backwards
$0C:D1E4 A9 28 LDA.B #$28
$0C:D1E6 18 CLC
$0C:D1E7 6F 7B 83 7F ADC.L $7F837B
$0C:D1EB 8F 7B 83 7F STA.L $7F837B ; Buffer index += $28 (the $FF terminator is overwritten next time)
$0C:D1EF 60 RTS ; Return
;;; $D1F0..D1F8: Stripe image data: three-tile RLE row ;;;
;; VRAM $20F4 then $2114: RLE (flag $40) runs of 3 tiles $F8 with prop $00; terminated with $FF.
$0C:D1F0 .db $20,$F4,$40,$02,$F8,$00,$21,$14 ; VRAM $20F4, RLE flag $40, length-1 = 2: 3 tiles $F8 (prop $00); next VRAM $2114
$0C:D1F8 .db $40,$02,$F8,$00,$FF ; RLE 3 x tile $F8 prop $00; $FF ends the stripe
;;; $D1FD..D227: Table: VRAM addresses for three columns ;;;
;; VRAM tilemap addresses, 8 rows each ($20 apart), for columns at $20F4, $20F6 and $20F8 (24 entries).
$0C:D1FD .db $20,$F4 ; VRAM address $20F4 (first column of 8 tiles)
$0C:D1FF .db $21,$14,$21,$34,$21,$54,$21,$74 ; VRAM addresses $2114,$2134,...: rows down the column (step $20 = one row)
$0C:D207 .db $21,$94,$21,$B4,$21,$D4,$20,$F6 ; $2194,$21B4,$21D4, then next column $20F6
$0C:D20F .db $21,$16,$21,$36,$21,$56,$21,$76 ; $2116,$2136,$2156,$2176 (column 2)
$0C:D217 .db $21,$96,$21,$B6,$21,$D6,$20,$F8 ; $2196,$21B6,$21D6, then next column $20F8
$0C:D21F .db $21,$18,$21,$38,$21,$58,$21,$78 ; $2118,$2138,$2158,$2178 (column 3)
$0C:D227 .db $21,$98,$21,$B8,$21,$D8 ; $2198,$21B8,$21D8
;;; $D22D: Cutscene scene steps and object motion ;;;
;; Helpers for the credits/cutscene engine (scene handlers dispatched by [$13C6] and [$1442]) (state in
;; [$1440]-[$144D], actor objects in $0B05-$0B8C).
;; $0CD22D queues a 13-byte stripe image (VRAM update) and patches two tile words in it.
;; $0CD283 shakes the screen +/-1 pixel on layer 1 X every frame. $0CD295-$0CD317 are scene-step handlers:
;; play a sound,
;; set timers/objects, advance [$1442] and jump to a CCxxx handler. $0CD33A moves object X in Y by its speed
;; (1/16 pixel
;; units); $0CD368 does the same for X. $0CD373 clears the subpixel bytes of objects 0-2 (quirk: $0B34 cleared
;; twice).
;; Object arrays (index = object): Y speed $0B05, X speed $0B14, Y/X subpixel $0B23/$0B32, Y/X pos
;; $0B41/$0B50, hi $0B5F/$0B6E.
;; Called by:
;; $0C:D756: Draw three-tile sprite and move rope column
$0C:D22D AF 7B 83 7F LDA.L $7F837B ; \
$0C:D231 85 01 STA $01 ; } [$01] = current stripe image buffer index [$7F837B]
$0C:D233 A0 0C LDY.B #$0C ; \
$0C:D235 98 TYA ; |
$0C:D236 18 CLC ; |
$0C:D237 6F 7B 83 7F ADC.L $7F837B ; |
$0C:D23B AA TAX ; |
$0C:D23C B9 F0 D1 LDA.W $D1F0,Y ; |
$0C:D23F 9F 7D 83 7F STA.L $7F837D,X ; |
$0C:D243 CA DEX ; |
$0C:D244 88 DEY ; } Copy 13-byte template $D1F0 into the stripe buffer at $7F837D + index
$0C:D245 10 F5 BPL $D23C ; /
$0C:D247 A9 0C LDA.B #$0C ; \
$0C:D249 18 CLC ; |
$0C:D24A 6F 7B 83 7F ADC.L $7F837B ; } Advance the stripe image index by 12 bytes
$0C:D24E 8F 7B 83 7F STA.L $7F837B ; /
$0C:D252 A5 94 LDA RAM_MarioXPos ; \
$0C:D254 38 SEC ; |
$0C:D255 E9 A0 SBC.B #$A0 ; } [$00] = Mario X - $A0
$0C:D257 85 00 STA $00 ; /
$0C:D259 AD 46 14 LDA.W $1446 ; \
$0C:D25C 38 SEC ; |
$0C:D25D E9 38 SBC.B #$38 ; |
$0C:D25F 4A LSR ; |
$0C:D260 4A LSR ; |
$0C:D261 18 CLC ; |
$0C:D262 65 00 ADC $00 ; } Y = ([$1446] - $38) / 4 + [$00]: select which tile-word pair to patch in
$0C:D264 A8 TAY ; /
$0C:D265 A6 01 LDX $01 ; X = start of the entry just written
$0C:D267 C2 20 REP #$20 ; 16-bit accumulator
$0C:D269 B9 FD D1 LDA.W $D1FD,Y ; \
$0C:D26C 9F 7D 83 7F STA.L $7F837D,X ; } Patch first tile word in the entry from $D1FD[Y]
$0C:D270 B9 FF D1 LDA.W $D1FF,Y ; \
$0C:D273 9F 83 83 7F STA.L $7F8383,X ; } Patch second tile word (entry + 6) from $D1FF[Y]
$0C:D277 E2 20 SEP #$20 ; 8-bit accumulator
$0C:D279 C0 1C CPY.B #$1C ; Last patch index ($1C)?
$0C:D27B D0 05 BNE $D282 ; No: return
$0C:D27D A9 01 LDA.B #$01 ; \
$0C:D27F 8D 44 14 STA.W $1444 ; } [$1444] = 1: flag that the final patch was queued
$0C:D282 60 RTS ; Return
$0C:D283 C2 20 REP #$20 ; 16-bit accumulator
$0C:D285 A5 13 LDA RAM_FrameCounter ; \
$0C:D287 29 01 00 AND.W #$0001 ; } Test frame counter bit 0
$0C:D28A F0 04 BEQ $D290 ; Even frame: scroll left
$0C:D28C E6 1A INC RAM_ScreenBndryXLo ; Odd frame: layer 1 X scroll += 1
$0C:D28E 80 02 BRA $D292 ; Done
$0C:D290 C6 1A DEC RAM_ScreenBndryXLo ; Even frame: layer 1 X scroll -= 1 (screen shakes +/-1 pixel)
$0C:D292 E2 20 SEP #$20 ; 8-bit accumulator
$0C:D294 60 RTS ; Return
$0C:D295 A9 1A LDA.B #$1A ; \
$0C:D297 8D FC 1D STA.W $1DFC ; } Play sound effect $1A
$0C:D29A A9 FF LDA.B #$FF ; \
$0C:D29C 8D 40 14 STA.W $1440 ; } [$1440] = $FF (timer)
$0C:D29F A9 30 LDA.B #$30 ; \
$0C:D2A1 8D 41 14 STA.W $1441 ; } [$1441] = $30
$0C:D2A4 A9 01 LDA.B #$01 ; \
$0C:D2A6 8D 3F 14 STA.W $143F ; } [$143F] = 1 (countdown)
$0C:D2A9 EE 42 14 INC.W $1442 ; Next scene step ([$1442]++)
$0C:D2AC 20 FA CB JSR.W $CBFA ; Reset the state shared by scene steps
$0C:D2AF 82 9F F9 BRL $CC51 ; Continue in the CCC51 handler
$0C:D2B2 A9 21 LDA.B #$21 ; \
$0C:D2B4 8D F9 1D STA.W $1DF9 ; } Play sound effect $21 (port $1DF9)
$0C:D2B7 20 1A D3 JSR.W $D31A ; Set up actor objects 0 and 1 and timers
$0C:D2BA 82 66 FA BRL $CD23 ; Continue in the CCD23 handler
$0C:D2BD A9 17 LDA.B #$17 ; \
$0C:D2BF 8D FC 1D STA.W $1DFC ; } Play sound effect $17
$0C:D2C2 A9 77 LDA.B #$77 ; \
$0C:D2C4 8D 43 0B STA.W $0B43 ; } Object 2 Y position = $77
$0C:D2C7 9C 47 14 STZ.W $1447 ; [$1447] = 0
$0C:D2CA 20 1A D3 JSR.W $D31A ; Set up actor objects 0 and 1 and timers
$0C:D2CD 82 D1 FA BRL $CDA1 ; Continue in the CCDA1 handler
$0C:D2D0 A9 03 LDA.B #$03 ; \
$0C:D2D2 8D 3F 14 STA.W $143F ; } [$143F] = 3 (countdown)
$0C:D2D5 9C 40 14 STZ.W $1440 ; [$1440] = 0
$0C:D2D8 A9 19 LDA.B #$19 ; \
$0C:D2DA 8D FC 1D STA.W $1DFC ; } Play sound effect $19
$0C:D2DD EE 42 14 INC.W $1442 ; Next scene step
$0C:D2E0 20 FA CB JSR.W $CBFA ; Reset the state shared by scene steps
$0C:D2E3 82 8C FC BRL $CF72 ; Continue in the CCF72 handler
$0C:D2E6 CE 3F 14 DEC.W $143F ; Count down [$143F]
$0C:D2E9 30 01 BMI $D2EC ; Went negative: do the step below
$0C:D2EB 60 RTS ; Not yet: return
$0C:D2EC 20 73 D3 JSR.W $D373 ; Clear subpixel positions of objects 0-2
$0C:D2EF A9 0F LDA.B #$0F ; \
$0C:D2F1 8D 43 0B STA.W $0B43 ; } Object 2 Y position = $0F
$0C:D2F4 9C 61 0B STZ.W $0B61 ; Object 2 Y high byte = 0
$0C:D2F7 A9 90 LDA.B #$90 ; \
$0C:D2F9 8D 52 0B STA.W $0B52 ; } Object 2 X position = $90
$0C:D2FC 9C 70 0B STZ.W $0B70 ; Object 2 X high byte = 0
$0C:D2FF A9 08 LDA.B #$08 ; \
$0C:D301 8D 07 0B STA.W $0B07 ; } Object 2 Y speed = 8 (moving down)
$0C:D304 A9 FF LDA.B #$FF ; \
$0C:D306 8D 16 0B STA.W $0B16 ; } Object 2 X speed = $FF (-1, moving left)
$0C:D309 A9 02 LDA.B #$02 ; \
$0C:D30B 8D 3F 14 STA.W $143F ; } [$143F] = 2
$0C:D30E 9C 40 14 STZ.W $1440 ; [$1440] = 0
$0C:D311 9C 47 14 STZ.W $1447 ; [$1447] = 0
$0C:D314 EE 42 14 INC.W $1442 ; Next scene step
$0C:D317 82 C8 FB BRL $CEE2 ; Continue in the CCEE2 handler
$0C:D31A A9 77 LDA.B #$77 ; \
$0C:D31C 8D 42 0B STA.W $0B42 ; } Object 1 Y position = $77
$0C:D31F A9 5F LDA.B #$5F ; \
$0C:D321 8D 50 0B STA.W $0B50 ; } Object 0 X position = $5F
$0C:D324 A9 F8 LDA.B #$F8 ; \
$0C:D326 8D 06 0B STA.W $0B06 ; } Object 1 Y speed = $F8 (-8, moving up)
$0C:D329 9C 40 14 STZ.W $1440 ; [$1440] = 0
$0C:D32C A9 05 LDA.B #$05 ; \
$0C:D32E 8D 3F 14 STA.W $143F ; } [$143F] = 5
$0C:D331 EE 42 14 INC.W $1442 ; Next scene step
$0C:D334 20 73 D3 JSR.W $D373 ; Clear subpixel positions of objects 0-2
$0C:D337 82 C0 F8 BRL $CBFA ; Reset the state shared by scene steps
$0C:D33A BD 05 0B LDA.W $0B05,X ; \
$0C:D33D 0A ASL ; |
$0C:D33E 0A ASL ; |
$0C:D33F 0A ASL ; } A = Y speed * 16 (fractional part of this frame's movement)
$0C:D340 0A ASL ; /
$0C:D341 18 CLC ; \
$0C:D342 7D 23 0B ADC.W $0B23,X ; } Y subpixel += A; carry saved for the high part
$0C:D345 9D 23 0B STA.W $0B23,X ; /
$0C:D348 08 PHP ; Save the subpixel carry
$0C:D349 BD 05 0B LDA.W $0B05,X ; \
$0C:D34C 4A LSR ; |
$0C:D34D 4A LSR ; |
$0C:D34E 4A LSR ; } A = Y speed / 16 (whole pixels)
$0C:D34F 4A LSR ; /
$0C:D350 C9 08 CMP.B #$08 ; Speed >= 8: negative after the shift
$0C:D352 A0 00 LDY.B #$00 ; Y = 0 (high byte of movement for a positive speed)
$0C:D354 90 03 BCC $D359 ; Positive
$0C:D356 09 F0 ORA.B #$F0 ; Sign-extend the pixel part (A |= $F0)
$0C:D358 88 DEY ; Y = $FF (high byte of movement for a negative speed)
$0C:D359 28 PLP ; Restore the subpixel carry
$0C:D35A 7D 41 0B ADC.W $0B41,X ; \
$0C:D35D 9D 41 0B STA.W $0B41,X ; } Y position += pixel movement + carry
$0C:D360 98 TYA ; \
$0C:D361 7D 5F 0B ADC.W $0B5F,X ; } Y position high byte += sign extension + carry
$0C:D364 9D 5F 0B STA.W $0B5F,X ; /
$0C:D367 60 RTS ; Return
$0C:D368 DA PHX ; \
$0C:D369 8A TXA ; |
$0C:D36A 18 CLC ; |
$0C:D36B 69 0F ADC.B #$0F ; |
$0C:D36D AA TAX ; } Same movement for X: run the move routine with X += $0F (X speed/position arrays)
$0C:D36E 20 3A D3 JSR.W $D33A ; /
$0C:D371 FA PLX ; Restore X
$0C:D372 60 RTS ; Return
$0C:D373 9C 23 0B STZ.W $0B23 ; \
$0C:D376 9C 32 0B STZ.W $0B32 ; |
$0C:D379 9C 24 0B STZ.W $0B24 ; |
$0C:D37C 9C 33 0B STZ.W $0B33 ; |
$0C:D37F 9C 34 0B STZ.W $0B34 ; } Clear the subpixel bytes of objects 0-2 (note: $0B34 cleared twice, $0B25 never)
$0C:D382 9C 34 0B STZ.W $0B34 ; /
$0C:D385 60 RTS ; Return
;;; $D386..D38E: Table: debris initial Y speeds ;;;
$0C:D386 .db $C8,$C0,$C4,$C8,$C0,$B4,$C8,$B8 ; Debris initial Y speeds, slots 0-7 (negative = up)
$0C:D38E .db $C6,$B7,$C4,$B0,$C8,$C0,$C8,$C4 ; Debris initial Y speeds, slots 8-15
;;; $D396..D39E: Table: debris initial X speeds ;;;
$0C:D396 .db $18,$F8,$0A,$20,$E8,$1A,$EA,$08 ; Debris initial X speeds, slots 0-7
$0C:D39E .db $F0,$18,$E0,$2A,$F8,$20,$FA,$18 ; Debris initial X speeds, slots 8-15
;;; $D3A6: Spawn and move falling debris ;;;
;; $0CD3A6: every other frame while 1 <= [$1445] <= $E7, take a free slot (14 down to 4) and launch a piece of
;; debris
;; near Mario (+$18,+$20) with speeds from the two tables and gravity 4. $0CD3F4: apply gravity (up to speed
;; $40),
;; move each active piece, free it when Y >= $80. Falls through into the draw routine at $0CD425.
;; Called by:
;; $0C:CA3C: Pointer table: cutscene 4 states; cutscene 3 (Ptrs0CCA1F)
$0C:D3A6 AD 45 14 LDA.W $1445 ; \
$0C:D3A9 3A DEC A ; |
$0C:D3AA C9 E7 CMP.B #$E7 ; } Skip unless 1 <= [$1445] <= $E7 (scene timer window)
$0C:D3AC B0 45 BCS $D3F3 ; /
$0C:D3AE A5 13 LDA RAM_FrameCounter ; \
$0C:D3B0 29 01 AND.B #$01 ; } Only spawn on even frames
$0C:D3B2 D0 3F BNE $D3F3 ; /
$0C:D3B4 A2 0E LDX.B #$0E ; X = 14: look for a free debris slot (slots 14 down to 4)
$0C:D3B6 BD 8C 0B LDA.W $0B8C,X ; [$0B8C,X] = slot active flag
$0C:D3B9 D0 33 BNE $D3EE ; In use: try the next slot
$0C:D3BB A9 01 LDA.B #$01 ; \
$0C:D3BD 9D 8C 0B STA.W $0B8C,X ; } Mark the slot active
$0C:D3C0 A9 04 LDA.B #$04 ; \
$0C:D3C2 9D 7D 0B STA.W $0B7D,X ; } Gravity [$0B7D,X] = 4
$0C:D3C5 BD 86 D3 LDA.W $D386,X ; \
$0C:D3C8 9D 05 0B STA.W $0B05,X ; } Y speed = $D386[X] (initial upward speed)
$0C:D3CB BD 96 D3 LDA.W $D396,X ; \
$0C:D3CE 9D 14 0B STA.W $0B14,X ; } X speed = $D396[X]
$0C:D3D1 A5 94 LDA RAM_MarioXPos ; \
$0C:D3D3 18 CLC ; |
$0C:D3D4 69 18 ADC.B #$18 ; } X position = Mario X + $18
$0C:D3D6 9D 50 0B STA.W $0B50,X ; /
$0C:D3D9 A5 96 LDA RAM_MarioYPos ; \
$0C:D3DB 18 CLC ; |
$0C:D3DC 69 20 ADC.B #$20 ; } Y position = Mario Y + $20
$0C:D3DE 9D 41 0B STA.W $0B41,X ; /
$0C:D3E1 A5 13 LDA RAM_FrameCounter ; \
$0C:D3E3 29 02 AND.B #$02 ; } Play sound only when frame counter bit 1 is clear
$0C:D3E5 D0 0C BNE $D3F3 ; /
$0C:D3E7 A9 07 LDA.B #$07 ; \
$0C:D3E9 8D FC 1D STA.W $1DFC ; } Play sound effect $07
$0C:D3EC 80 05 BRA $D3F3 ; Done
$0C:D3EE CA DEX ; Next slot
$0C:D3EF E0 03 CPX.B #$03 ; Stop after slot 4
$0C:D3F1 D0 C3 BNE $D3B6 ; Loop
$0C:D3F3 60 RTS ; Return
$0C:D3F4 A2 0E LDX.B #$0E ; X = 14: update debris slots 14..4
$0C:D3F6 BD 8C 0B LDA.W $0B8C,X ; Slot active flag
$0C:D3F9 F0 20 BEQ $D41B ; Inactive: next slot
$0C:D3FB BD 05 0B LDA.W $0B05,X ; A = Y speed
$0C:D3FE 30 04 BMI $D404 ; Moving up: always accelerate
$0C:D400 C9 40 CMP.B #$40 ; \
$0C:D402 B0 07 BCS $D40B ; } Falling: only accelerate while speed < $40 (terminal velocity)
$0C:D404 18 CLC ; \
$0C:D405 7D 7D 0B ADC.W $0B7D,X ; } Y speed += gravity [$0B7D,X]
$0C:D408 9D 05 0B STA.W $0B05,X ; /
$0C:D40B 20 3A D3 JSR.W $D33A ; Move Y by speed
$0C:D40E 20 68 D3 JSR.W $D368 ; Move X by speed
$0C:D411 BD 41 0B LDA.W $0B41,X ; \
$0C:D414 C9 80 CMP.B #$80 ; } Still above Y = $80? then keep it
$0C:D416 90 03 BCC $D41B ; /
$0C:D418 9E 8C 0B STZ.W $0B8C,X ; Fell off the bottom: free the slot
$0C:D41B CA DEX ; Next slot
$0C:D41C E0 03 CPX.B #$03 ; Stop after slot 4
$0C:D41E D0 D6 BNE $D3F6 ; Loop
$0C:D420 82 02 00 BRL $D425 ; Continue into the debris draw routine
;;; $D423..D423: Table: debris tiles ;;;
$0C:D423 .db $3C,$3D ; Debris tiles: $3C, $3D (alternate every 2 frames)
;;; $D425: Draw falling debris ;;;
;; Draws every active debris slot (14 down to 4) as an 8x8 sprite, tile alternating $3C/$3D, skipping X < $50.
$0C:D425 A0 0E LDY.B #$0E ; Y = 14: debris slot index
$0C:D427 A2 14 LDX.B #$14 ; X = $14: OAM index (first slot used)
$0C:D429 B9 8C 0B LDA.W $0B8C,Y ; Slot active flag
$0C:D42C F0 2C BEQ $D45A ; Inactive: skip
$0C:D42E B9 50 0B LDA.W $0B50,Y ; \
$0C:D431 C9 50 CMP.B #$50 ; } Skip if X position < $50 (left clip)
$0C:D433 90 25 BCC $D45A ; /
$0C:D435 9D 00 02 STA.W OAM_ExtendedDispX,X ; OAM X = debris X position
$0C:D438 B9 41 0B LDA.W $0B41,Y ; \
$0C:D43B 9D 01 02 STA.W OAM_ExtendedDispY,X ; } OAM Y = debris Y position
$0C:D43E 5A PHY ; Save slot index
$0C:D43F A5 13 LDA RAM_FrameCounter ; \
$0C:D441 29 02 AND.B #$02 ; |
$0C:D443 4A LSR ; } Y = frame counter bit 1 (0 or 1)
$0C:D444 A8 TAY ; /
$0C:D445 B9 23 D4 LDA.W $D423,Y ; \
$0C:D448 9D 02 02 STA.W OAM_ExtendedTile,X ; } OAM tile = $D423[Y] (alternates $3C/$3D)
$0C:D44B 7A PLY ; Restore slot index
$0C:D44C A9 22 LDA.B #$22 ; \
$0C:D44E 9D 03 02 STA.W OAM_ExtendedProp,X ; } OAM properties = $22
$0C:D451 DA PHX ; \
$0C:D452 8A TXA ; |
$0C:D453 4A LSR ; |
$0C:D454 4A LSR ; |
$0C:D455 AA TAX ; |
$0C:D456 9E 20 04 STZ.W $0420,X ; } OAM high table entry for this sprite = 0 (8x8, X bit 8 clear)
$0C:D459 FA PLX ; /
$0C:D45A E8 INX ; \
$0C:D45B E8 INX ; |
$0C:D45C E8 INX ; } Next OAM entry
$0C:D45D E8 INX ; /
$0C:D45E 88 DEY ; Next slot
$0C:D45F C0 03 CPY.B #$03 ; Stop after slot 4
$0C:D461 D0 C6 BNE $D429 ; Loop
$0C:D463 60 RTS ; Return
;;; $D464..D47C: Table: spark sprite Y offsets ;;;
$0C:D464 .db $F8,$80,$80,$80,$FA,$80,$80,$80 ; Spark Y offsets for [$1445] = 0,1 ($80 = unused)
$0C:D46C .db $FA,$FC,$80,$80,$FA,$FC,$04,$80 ; Spark Y offsets for [$1445] = 2,3 ($80 = unused)
$0C:D474 .db $F8,$80,$80,$80,$F9,$80,$80,$80 ; Spark Y offsets for [$1445] = 4,5 ($80 = unused)
$0C:D47C .db $FA,$80,$80,$80,$FA,$80,$80,$80 ; Spark Y offsets for [$1445] = 6,7 ($80 = unused)
;;; $D484..D49C: Table: spark sprite X offsets ;;;
$0C:D484 .db $08,$80,$80,$80,$09,$80,$80,$80 ; Spark X offsets for [$1445] = 0,1 ($80 = no sprite)
$0C:D48C .db $09,$FF,$80,$80,$09,$FF,$F6,$80 ; Spark X offsets for [$1445] = 2,3 ($80 = no sprite)
$0C:D494 .db $04,$80,$80,$80,$00,$80,$80,$80 ; Spark X offsets for [$1445] = 4,5 ($80 = no sprite)
$0C:D49C .db $FF,$80,$80,$80,$00,$80,$80,$80 ; Spark X offsets for [$1445] = 6,7 ($80 = no sprite)
;;; $D4A4: Draw sparks around Mario (JSL) ;;;
;; Called with JSL from bank 00 ($00C773). Draws up to three 8x8 sprites (tile $B6, prop $31) at offsets from
;; Mario given
;; by $D484/0CD464 row [$1445]; offset $80 = skip. Y gets +8 when Mario is small.
;; Called by:
;; $00:C773: Mario animation C: scripted cutscene movement (UnknownAniC)
$0C:D4A4 8B PHB ; \
$0C:D4A5 4B PHK ; } Switch data bank to this bank
$0C:D4A6 AB PLB ; /
$0C:D4A7 A2 00 LDX.B #$00 ; \
$0C:D4A9 A5 19 LDA RAM_MarioPowerUp ; |
$0C:D4AB D0 02 BNE $D4AF ; |
$0C:D4AD A2 08 LDX.B #$08 ; } [$02] = 0 for big Mario, 8 for small Mario (Y offset)
$0C:D4AF 86 02 STX $02 ; /
$0C:D4B1 A2 40 LDX.B #$40 ; X = $40: OAM index
$0C:D4B3 A9 02 LDA.B #$02 ; \
$0C:D4B5 85 00 STA $00 ; } [$00] = 2: three sprites
$0C:D4B7 AD 45 14 LDA.W $1445 ; \
$0C:D4BA 0A ASL ; |
$0C:D4BB 0A ASL ; } Y = [$1445] * 4: row in the offset tables
$0C:D4BC A8 TAY ; /
$0C:D4BD B9 84 D4 LDA.W $D484,Y ; \
$0C:D4C0 C9 80 CMP.B #$80 ; } A = X offset; $80 = no sprite
$0C:D4C2 F0 29 BEQ $D4ED ; /
$0C:D4C4 18 CLC ; \
$0C:D4C5 65 94 ADC RAM_MarioXPos ; } OAM X = Mario X + offset
$0C:D4C7 9D 00 02 STA.W OAM_ExtendedDispX,X ; /
$0C:D4CA B9 64 D4 LDA.W $D464,Y ; \
$0C:D4CD 18 CLC ; |
$0C:D4CE 65 96 ADC RAM_MarioYPos ; |
$0C:D4D0 18 CLC ; |
$0C:D4D1 65 02 ADC $02 ; } OAM Y = Mario Y + Y offset + [$02]
$0C:D4D3 9D 01 02 STA.W OAM_ExtendedDispY,X ; /
$0C:D4D6 A9 B6 LDA.B #$B6 ; \
$0C:D4D8 9D 02 02 STA.W OAM_ExtendedTile,X ; } OAM tile = $B6
$0C:D4DB A9 31 LDA.B #$31 ; \
$0C:D4DD 9D 03 02 STA.W OAM_ExtendedProp,X ; } OAM properties = $31
$0C:D4E0 DA PHX ; \
$0C:D4E1 8A TXA ; |
$0C:D4E2 4A LSR ; |
$0C:D4E3 4A LSR ; |
$0C:D4E4 AA TAX ; |
$0C:D4E5 9E 20 04 STZ.W $0420,X ; } OAM high table entry = 0
$0C:D4E8 FA PLX ; /
$0C:D4E9 E8 INX ; \
$0C:D4EA E8 INX ; |
$0C:D4EB E8 INX ; } Next OAM entry
$0C:D4EC E8 INX ; /
$0C:D4ED C8 INY ; Next table entry
$0C:D4EE C6 00 DEC $00 ; Next sprite
$0C:D4F0 10 CB BPL $D4BD ; Loop
$0C:D4F2 AB PLB ; Restore data bank
$0C:D4F3 6B RTL ; Return
;;; $D4F4..D4F4: Table: rising sprite tiles ;;;
$0C:D4F4 .db $89,$99,$A9,$B9 ; Rising sprite animation tiles $89,$99,$A9,$B9
;;; $D4F8: Rising and sideways sprites near Mario ;;;
;; $0CD4F8: when [$1446] is set, object 2 rises at speed -3 until $0D pixels above Mario and is drawn with
;; tiles from
;; $D4F4 (prop $33). $0CD557: object 3 moves right/down from Mario and is drawn the same way; at X >=
;; $0D it ends,
;; clears [$1446] and advances [$1442]. $0CD5C6: advance the step, set [$1443] = $FF, [$144D] = $D0 and start
;; sound/music value $13 through the STA.W $1DFB stored as data at $0CD5D5.
;; Called by:
;; $0C:C9E6: Pointer table: cutscene 2 states; cutscene 5 (Ptrs0CC9D6)
$0C:D4F8 AD 46 14 LDA.W $1446 ; Is the rising sprite active? ([$1446])
$0C:D4FB D0 05 BNE $D502 ; Yes: go on
$0C:D4FD 9C 43 0B STZ.W $0B43 ; Inactive: clear its Y position
$0C:D500 80 54 BRA $D556 ; Return
$0C:D502 A2 02 LDX.B #$02 ; X = 2: object 2
$0C:D504 A9 FD LDA.B #$FD ; \
$0C:D506 9D 05 0B STA.W $0B05,X ; } Object 2 Y speed = $FD (-3, moving up)
$0C:D509 20 3A D3 JSR.W $D33A ; Move object 2
$0C:D50C BD 41 0B LDA.W $0B41,X ; \
$0C:D50F 49 FF EOR.B #$FF ; } A = -(object 2 Y position): distance risen
$0C:D511 1A INC A ; /
$0C:D512 C9 0D CMP.B #$0D ; Risen less than $0D pixels? keep going
$0C:D514 90 05 BCC $D51B ; Done: [$1446] = 0
$0C:D516 9C 46 14 STZ.W $1446 ; Return
$0C:D519 80 3B BRA $D556 ; Return
$0C:D51B A2 00 LDX.B #$00 ; \
$0C:D51D A5 19 LDA RAM_MarioPowerUp ; |
$0C:D51F D0 02 BNE $D523 ; } [$00] = Y offset: 0 for big Mario, 8 for small
$0C:D521 A2 08 LDX.B #$08 ; /
$0C:D523 86 00 STX $00
$0C:D525 A2 34 LDX.B #$34 ; X = $34: OAM index
$0C:D527 A9 04 LDA.B #$04 ; \
$0C:D529 18 CLC ; |
$0C:D52A 65 94 ADC RAM_MarioXPos ; } OAM X = Mario X + 4
$0C:D52C 9D 00 02 STA.W OAM_ExtendedDispX,X ; /
$0C:D52F AD 43 0B LDA.W $0B43 ; \
$0C:D532 18 CLC ; |
$0C:D533 65 96 ADC RAM_MarioYPos ; |
$0C:D535 18 CLC ; |
$0C:D536 65 00 ADC $00 ; } OAM Y = Mario Y + object 2 Y + [$00]
$0C:D538 9D 01 02 STA.W OAM_ExtendedDispY,X ; /
$0C:D53B AD 43 0B LDA.W $0B43 ; \
$0C:D53E 49 FF EOR.B #$FF ; |
$0C:D540 1A INC A ; |
$0C:D541 4A LSR ; |
$0C:D542 4A LSR ; } Y = distance risen / 4 (animation frame 0-3)
$0C:D543 A8 TAY ; /
$0C:D544 B9 F4 D4 LDA.W $D4F4,Y ; \
$0C:D547 9D 02 02 STA.W OAM_ExtendedTile,X ; } OAM tile = $D4F4[Y]
$0C:D54A A9 33 LDA.B #$33 ; \
$0C:D54C 9D 03 02 STA.W OAM_ExtendedProp,X ; } OAM properties = $33
$0C:D54F 8A TXA ; \
$0C:D550 4A LSR ; |
$0C:D551 4A LSR ; |
$0C:D552 AA TAX ; } OAM high table entry = 0
$0C:D553 9E 20 04 STZ.W $0420,X ; /
$0C:D556 60 RTS ; Return
$0C:D557 AD 46 14 LDA.W $1446 ; Is the sideways sprite active? ([$1446])
$0C:D55A D0 08 BNE $D564 ; Yes: go on
$0C:D55C 9C 44 0B STZ.W $0B44 ; \
$0C:D55F 9C 53 0B STZ.W $0B53 ; } Inactive: clear object 3 X and Y positions
$0C:D562 80 61 BRA $D5C5 ; Return
$0C:D564 A2 03 LDX.B #$03 ; X = 3: object 3
$0C:D566 A9 06 LDA.B #$06 ; \
$0C:D568 9D 14 0B STA.W $0B14,X ; } Object 3 X speed = 6
$0C:D56B A9 01 LDA.B #$01 ; \
$0C:D56D 9D 05 0B STA.W $0B05,X ; } Object 3 Y speed = 1
$0C:D570 20 3A D3 JSR.W $D33A ; Move object 3 vertically
$0C:D573 20 68 D3 JSR.W $D368 ; Move object 3 horizontally
$0C:D576 BD 50 0B LDA.W $0B50,X ; \
$0C:D579 C9 0D CMP.B #$0D ; } X position < $0D? keep going
$0C:D57B 90 08 BCC $D585
$0C:D57D 9C 46 14 STZ.W $1446 ; Finished: [$1446] = 0
$0C:D580 EE 42 14 INC.W $1442 ; Next scene step
$0C:D583 80 40 BRA $D5C5 ; Return
$0C:D585 A2 0F LDX.B #$0F ; \
$0C:D587 A0 0C LDY.B #$0C ; } X = $0F, Y = $0C: offsets for big Mario
$0C:D589 A5 19 LDA RAM_MarioPowerUp ; \
$0C:D58B D0 02 BNE $D58F ; } Small Mario: Y offset = $13
$0C:D58D A2 13 LDX.B #$13 ; /
$0C:D58F 86 00 STX $00 ; \
$0C:D591 84 01 STY $01 ; } [$00] = Y offset, [$01] = X offset
$0C:D593 A2 34 LDX.B #$34 ; X = $34: OAM index
$0C:D595 AD 53 0B LDA.W $0B53 ; \
$0C:D598 18 CLC ; |
$0C:D599 65 94 ADC RAM_MarioXPos ; |
$0C:D59B 18 CLC ; |
$0C:D59C 65 01 ADC $01 ; } OAM X = object 3 X + Mario X + [$01]
$0C:D59E 9D 00 02 STA.W OAM_ExtendedDispX,X ; /
$0C:D5A1 AD 44 0B LDA.W $0B44 ; \
$0C:D5A4 18 CLC ; |
$0C:D5A5 65 96 ADC RAM_MarioYPos ; |
$0C:D5A7 18 CLC ; |
$0C:D5A8 65 00 ADC $00 ; } OAM Y = object 3 Y + Mario Y + [$00]
$0C:D5AA 9D 01 02 STA.W OAM_ExtendedDispY,X ; /
$0C:D5AD AD 53 0B LDA.W $0B53 ; \
$0C:D5B0 4A LSR ; |
$0C:D5B1 4A LSR ; |
$0C:D5B2 A8 TAY ; |
$0C:D5B3 B9 F4 D4 LDA.W $D4F4,Y ; } OAM tile = $D4F4[object 3 X / 4]
$0C:D5B6 9D 02 02 STA.W OAM_ExtendedTile,X ; /
$0C:D5B9 A9 33 LDA.B #$33 ; \
$0C:D5BB 9D 03 02 STA.W OAM_ExtendedProp,X ; } OAM properties = $33
$0C:D5BE 8A TXA ; \
$0C:D5BF 4A LSR ; |
$0C:D5C0 4A LSR ; |
$0C:D5C1 AA TAX ; } OAM high table entry = 0
$0C:D5C2 9E 20 04 STZ.W $0420,X ; /
$0C:D5C5 60 RTS ; Return
$0C:D5C6 EE 42 14 INC.W $1442 ; Next scene step
$0C:D5C9 A9 FF LDA.B #$FF ; \
$0C:D5CB 8D 43 14 STA.W $1443 ; } [$1443] = $FF
$0C:D5CE A9 D0 LDA.B #$D0 ; \
$0C:D5D0 8D 4D 14 STA.W $144D ; } [$144D] = $D0
$0C:D5D3 A9 13 LDA.B #$13 ; A = $13 (music value written by the STA.W $1DFB at $0CD5D5)
;;; $D5D5: Start music $13 (code stored as data) (Instr0CD5D5) ;;;
;; STA.W $1DFB written as .db bytes because the Mario-frame table at $0CD5D6 overlaps it; part of the routine
;; above.
$0C:D5D5 .db $8D,$FB,$1D ; Raw bytes of STA.W $1DFB (play music/sound value [A] = $13)
$0C:D5D8 60 RTS ; Return
;;; $D5D9..D5E1: Table: Mario frame per animation tick ;;;
$0C:D5D9 .db $35,$36,$36,$36,$37,$37,$37,$37 ; Mario frame per animation tick, ticks 0-7 ($35-$37)
$0C:D5E1 .db $37,$37,$37,$36,$36,$35,$35,$35 ; Mario frame per animation tick, ticks 8-15
;;; $D5E9..D5F9: Table: accessory tile and slot group ;;;
$0C:D5E9 .db $8B,$8B,$8B,$AA,$8A,$CE,$CE,$8A ; Accessory tile (bit 0 = OAM slot group) by pose / tick, 0-7
$0C:D5F1 .db $8A,$AA,$AA,$8A,$AA,$8A,$CE,$8A ; Accessory tile by pose / tick, 8-15
$0C:D5F9 .db $AA,$8A,$8A ; Accessory tile by tick 16-18
;;; $D5FC..D60C: Table: accessory OAM properties ;;;
$0C:D5FC .db $61,$61,$61,$61,$61,$61,$61,$21 ; Accessory OAM properties (XORed with flip), by pose / tick 0-7
$0C:D604 .db $21,$21,$21,$A1,$21,$21,$61,$61 ; Accessory OAM properties, 8-15
$0C:D60C .db $61,$E1,$E1 ; Accessory OAM properties, 16-18
;;; $D60F..D62F: Table: accessory X offsets ;;;
$0C:D60F .db $FA,$FA,$F9,$FB,$F9,$FA,$F0,$F0 ; Accessory X offsets (small, big pairs), entries 0-3
$0C:D617 .db $F4,$F4,$FD,$FF,$FD,$FF,$0A,$0D ; Accessory X offsets (small, big pairs), entries 4-7
$0C:D61F .db $0A,$0D,$0E,$10,$0E,$10,$0D,$0E ; Accessory X offsets (small, big pairs), entries 8-11
$0C:D627 .db $0E,$10,$0A,$0D,$FD,$FF,$F4,$F4 ; Accessory X offsets (small, big pairs), entries 12-15
$0C:D62F .db $F0,$F0,$F3,$F0,$F3,$F0 ; Accessory X offsets (small, big pairs), entries 16-19
;;; $D635..D655: Table: accessory Y offsets ;;;
$0C:D635 .db $06,$03,$07,$00,$07,$01,$0D,$08 ; Accessory Y offsets (small, big pairs), entries 0-3
$0C:D63D .db $02,$FB,$FF,$F6,$FF,$F6,$03,$FD ; Accessory Y offsets (small, big pairs), entries 4-7
$0C:D645 .db $03,$FD,$0A,$06,$0A,$06,$12,$0F ; Accessory Y offsets (small, big pairs), entries 8-11
$0C:D64D .db $0A,$06,$03,$FD,$FF,$F6,$02,$FB ; Accessory Y offsets (small, big pairs), entries 12-15
$0C:D655 .db $0D,$08,$15,$10,$15,$10 ; Accessory Y offsets (small, big pairs), entries 16-19
;;; $D65B: Draw Mario accessory sprite (probably cape) ;;;
;; Runs when [$144A] >> 1 is non-zero. Plays a 16-tick animation counted down in [$1445] (sets Mario frame
;; from
;; the table at $0CD5D6), then draws one 16x16 sprite at $02FC (or $032C) relative to Mario, flipped with his
;; facing.
;; The tile, properties and offsets come from the tables at $0CD5E9-$0CD655, indexed by pose [$13DB] or tick.
;; Called by:
;; $0C:CA2F: Pointer table: cutscene 4 states; cutscene 3 (Ptrs0CCA1F)
$0C:D65B AD 4A 14 LDA.W $144A ; \
$0C:D65E 4A LSR ; } Return unless [$144A] >> 1 is non-zero
$0C:D65F F0 62 BEQ $D6C3 ; /
$0C:D661 AD 45 14 LDA.W $1445 ; \
$0C:D664 D0 05 BNE $D66B ; } [$1445] = 0: use pose [$13DB] directly
$0C:D666 AE DB 13 LDX.W $13DB ; X = [$13DB] (pose index)
$0C:D669 80 15 BRA $D680 ; Skip the animation
$0C:D66B CE 45 14 DEC.W $1445 ; [$1445] -= 1 (animation tick)
$0C:D66E C9 F0 CMP.B #$F0 ; \
$0C:D670 90 02 BCC $D674 ; } Ticks >= $F0 count as $0F
$0C:D672 A9 0F LDA.B #$0F ; /
$0C:D674 29 0F AND.B #$0F ; Low nibble of the tick
$0C:D676 18 CLC ; \
$0C:D677 69 03 ADC.B #$03 ; } X = (tick & $0F) + 3
$0C:D679 AA TAX ; /
$0C:D67A BD D6 D5 LDA.W ADDR_0CD5D6,X ; \
$0C:D67D 8D E0 13 STA.W MarioFrame ; } Mario frame = table at $0CD5D6 + X ($D5D9: frames $35-$37)
$0C:D680 A0 00 LDY.B #$00 ; Y = 0: first OAM slot group
$0C:D682 BD E9 D5 LDA.W $D5E9,X ; \
$0C:D685 4A LSR ; |
$0C:D686 90 02 BCC $D68A ; } Bit 0 of the tile entry selects the second slot group (Y = $30)
$0C:D688 A0 30 LDY.B #$30 ; /
$0C:D68A 0A ASL ; \
$0C:D68B 99 FE 02 STA.W $02FE,Y ; } OAM tile = entry with bit 0 cleared
$0C:D68E A5 76 LDA RAM_MarioDirection ; \
$0C:D690 4A LSR ; |
$0C:D691 6A ROR ; |
$0C:D692 4A LSR ; |
$0C:D693 5D FC D5 EOR.W $D5FC,X ; } OAM properties = (Mario direction << 6) XOR $D5FC[X] (X flip)
$0C:D696 99 FF 02 STA.W $02FF,Y ; /
$0C:D699 8A TXA ; \
$0C:D69A 0A ASL ; } X = X * 2
$0C:D69B AA TAX ; /
$0C:D69C A5 19 LDA RAM_MarioPowerUp ; \
$0C:D69E F0 01 BEQ $D6A1 ; } +1 if Mario is not small
$0C:D6A0 E8 INX ; /
$0C:D6A1 A5 96 LDA RAM_MarioYPos ; \
$0C:D6A3 18 CLC ; |
$0C:D6A4 7D 35 D6 ADC.W $D635,X ; } OAM Y = Mario Y + $D635[X]
$0C:D6A7 99 FD 02 STA.W $02FD,Y ; /
$0C:D6AA BD 0F D6 LDA.W $D60F,X ; A = X offset from $D60F[X]
$0C:D6AD A6 76 LDX RAM_MarioDirection ; \
$0C:D6AF D0 03 BNE $D6B4 ; |
$0C:D6B1 49 FF EOR.B #$FF ; } Mirror the X offset when Mario faces left
$0C:D6B3 1A INC A ; /
$0C:D6B4 18 CLC ; \
$0C:D6B5 65 94 ADC RAM_MarioXPos ; } OAM X = Mario X +/- offset
$0C:D6B7 99 FC 02 STA.W $02FC,Y ; /
$0C:D6BA 98 TYA ; \
$0C:D6BB 4A LSR ; |
$0C:D6BC 4A LSR ; } Y = OAM index / 4
$0C:D6BD A8 TAY ; /
$0C:D6BE A9 02 LDA.B #$02 ; \
$0C:D6C0 99 5F 04 STA.W $045F,Y ; } OAM high table entry = 2 (16x16)
$0C:D6C3 60 RTS ; Return
;;; $D6C4..D6E5: Tables: three-tile sprite and column steps ;;;
$0C:D6C4 .db $E7,$E6,$E6,$EA,$E6,$E7 ; Three-tile accessory X base by pose*2 + big
$0C:D6CA .db $F6,$F1,$F3,$F3,$F3,$F4 ; Three-tile accessory Y base by pose*2 + big
$0C:D6D0 .db $1B,$0E,$00 ; Offsets X of the three sprites: $1B, $0E, $00
$0C:D6D3 .db $15,$08,$00 ; Offsets Y of the three sprites: $15, $08, $00
$0C:D6D6 .db $8E,$8E,$8C ; Tiles of the three sprites: $8E, $8E, $8C
$0C:D6D9 .db $FC,$04,$FC,$04,$FC,$04,$FC ; Column Y step per scene step: -4 / +4 alternating
$0C:D6E0 .db $34,$68,$34,$68,$34 ; Column target Y per step ($34 / $68); continues into next row
$0C:D6E5 .db $68,$34,$B0,$00,$C0,$00,$C0 ; $68,$34 end the Y targets; then Mario target X for steps 2,4,6: $B0,$C0,$C0
;;; $D6EC: Draw three-tile sprite and move rope column ;;;
;; Runs when [$144A] >> 1 is non-zero. With [$1446] = 0 it draws three 16x16 sprites (tiles $8E,$8E,$8C)
;; diagonally
;; behind Mario (flipped with his direction). Otherwise it draws a column of five 16x16 sprites (tile $AC then
;; $AE) at Mario X
;; from Y = [$1446] - 1 (capped at $68), sets Mario frame $25/$38 and steps through [$1445]: move the column
;; between Y $34
;; and $68 in steps of 4, pausing [$1449] = $10 frames, with Mario walking right to the X targets. Purpose is
;; a guess.
;; Called by:
;; $0C:CA51: Pointer table: cutscene 3 states; cutscene 6 (Ptrs0CCA49)
$0C:D6EC AD 4A 14 LDA.W $144A ; \
$0C:D6EF 4A LSR ; } Return unless [$144A] >> 1 is non-zero
$0C:D6F0 F0 5F BEQ $D751 ; /
$0C:D6F2 A0 04 LDY.B #$04 ; \
$0C:D6F4 A9 02 LDA.B #$02 ; |
$0C:D6F6 99 70 04 STA.W $0470,Y ; |
$0C:D6F9 88 DEY ; } OAM high table entries $0470-$0474 = 2 (five 16x16 sprites)
$0C:D6FA 10 FA BPL $D6F6 ; /
$0C:D6FC AD 46 14 LDA.W $1446 ; Rope-column active? ([$1446] != 0)
$0C:D6FF D0 51 BNE $D752 ; Yes: draw it
$0C:D701 AD DB 13 LDA.W $13DB ; \
$0C:D704 0A ASL ; |
$0C:D705 A4 19 LDY RAM_MarioPowerUp ; |
$0C:D707 F0 01 BEQ $D70A ; |
$0C:D709 1A INC A ; } Y = pose [$13DB] * 2 (+1 if Mario is not small)
$0C:D70A A8 TAY ; /
$0C:D70B B9 C4 D6 LDA.W $D6C4,Y ; \
$0C:D70E 85 00 STA $00 ; } [$00] = X offset base $D6C4[Y]
$0C:D710 B9 CA D6 LDA.W $D6CA,Y ; \
$0C:D713 85 01 STA $01 ; } [$01] = Y offset base $D6CA[Y]
$0C:D715 A5 76 LDA RAM_MarioDirection ; \
$0C:D717 4A LSR ; |
$0C:D718 6A ROR ; |
$0C:D719 4A LSR ; |
$0C:D71A 49 61 EOR.B #$61 ; } [$02] = OAM properties: X flip from direction, EOR $61
$0C:D71C 85 02 STA $02 ; /
$0C:D71E A2 02 LDX.B #$02 ; X = 2: three sprites
$0C:D720 8A TXA ; \
$0C:D721 0A ASL ; |
$0C:D722 0A ASL ; } Y = OAM index = X * 4
$0C:D723 A8 TAY ; /
$0C:D724 A5 00 LDA $00 ; \
$0C:D726 18 CLC ; } A = [$00] + $D6D0[X]
$0C:D727 7D D0 D6 ADC.W $D6D0,X ; /
$0C:D72A 24 02 BIT $02 ; \
$0C:D72C 50 03 BVC $D731 ; |
$0C:D72E 49 FF EOR.B #$FF ; } Mirror the offset when flipped
$0C:D730 1A INC A ; /
$0C:D731 18 CLC ; \
$0C:D732 65 94 ADC RAM_MarioXPos ; } OAM X = Mario X + offset
$0C:D734 99 40 03 STA.W $0340,Y ; /
$0C:D737 A5 01 LDA $01 ; \
$0C:D739 18 CLC ; |
$0C:D73A 7D D3 D6 ADC.W $D6D3,X ; |
$0C:D73D 18 CLC ; |
$0C:D73E 65 96 ADC RAM_MarioYPos ; } OAM Y = Mario Y + [$01] + $D6D3[X]
$0C:D740 99 41 03 STA.W $0341,Y ; /
$0C:D743 BD D6 D6 LDA.W $D6D6,X ; \
$0C:D746 99 42 03 STA.W $0342,Y ; } OAM tile = $D6D6[X]
$0C:D749 A5 02 LDA $02 ; \
$0C:D74B 99 43 03 STA.W $0343,Y ; } OAM properties = [$02]
$0C:D74E CA DEX ; Next sprite
$0C:D74F 10 CF BPL $D720 ; Loop
$0C:D751 60 RTS ; Return
$0C:D752 29 07 AND.B #$07 ; \
$0C:D754 D0 03 BNE $D759 ; } Every 8th frame queue a stripe image update
$0C:D756 20 2D D2 JSR.W $D22D ; /
$0C:D759 A0 25 LDY.B #$25 ; \
$0C:D75B AD 46 14 LDA.W $1446 ; |
$0C:D75E C9 4C CMP.B #$4C ; |
$0C:D760 90 02 BCC $D764 ; |
$0C:D762 A0 38 LDY.B #$38 ; } Mario frame = $25 above [$1446] = $4C, else $38 (ducking, back to camera)
$0C:D764 8C E0 13 STY.W MarioFrame ; /
$0C:D767 A0 00 LDY.B #$00 ; Y = 0: OAM index
$0C:D769 3A DEC A ; A = [$1446] - 1: Y of the top sprite
$0C:D76A 85 00 STA $00 ; [$00] = Y of this sprite
$0C:D76C A9 AC LDA.B #$AC ; \
$0C:D76E 99 42 03 STA.W $0342,Y ; } OAM tile = $AC (top; later $AE)
$0C:D771 A9 21 LDA.B #$21 ; \
$0C:D773 99 43 03 STA.W $0343,Y ; } OAM properties = $21
$0C:D776 A5 94 LDA RAM_MarioXPos ; OAM X = Mario X
$0C:D778 99 40 03 STA.W $0340,Y ; \
$0C:D77B A5 00 LDA $00 ; } OAM Y = [$00]
$0C:D77D 99 41 03 STA.W $0341,Y ; /
$0C:D780 18 CLC ; \
$0C:D781 69 10 ADC.B #$10 ; |
$0C:D783 C9 68 CMP.B #$68 ; |
$0C:D785 90 02 BCC $D789 ; |
$0C:D787 A9 68 LDA.B #$68 ; } [$00] += $10 for the next sprite, capped at $68
$0C:D789 85 00 STA $00 ; /
$0C:D78B C8 INY ; \
$0C:D78C C8 INY ; |
$0C:D78D C8 INY ; } Next OAM entry
$0C:D78E C8 INY ; /
$0C:D78F A9 AE LDA.B #$AE ; Tile $AE for the following sprites
$0C:D791 C0 14 CPY.B #$14 ; Five sprites done?
$0C:D793 90 D9 BCC $D76E ; Loop
$0C:D795 AE 45 14 LDX.W $1445 ; X = step [$1445]
$0C:D798 AD 46 14 LDA.W $1446 ; A = [$1446]
$0C:D79B DD E0 D6 CMP.W $D6E0,X ; \
$0C:D79E D0 3E BNE $D7DE ; } At the target Y for this step ($D6E0)? If not, move toward it
$0C:D7A0 AD 49 14 LDA.W $1449 ; \
$0C:D7A3 F0 04 BEQ $D7A9 ; |
$0C:D7A5 CE 49 14 DEC.W $1449 ; } Pause timer [$1449]: count down and return
$0C:D7A8 60 RTS ; /
$0C:D7A9 8A TXA ; Pause over
$0C:D7AA F0 1D BEQ $D7C9 ; Step 0: advance immediately
$0C:D7AC 4A LSR ; \
$0C:D7AD B0 1A BCS $D7C9 ; } Odd steps: advance immediately
$0C:D7AF A5 13 LDA RAM_FrameCounter ; \
$0C:D7B1 29 04 AND.B #$04 ; |
$0C:D7B3 F0 05 BEQ $D7BA ; |
$0C:D7B5 A9 39 LDA.B #$39 ; } Even steps: every 4 frames show Mario frame $39 (standing, back to camera)
$0C:D7B7 8D E0 13 STA.W MarioFrame ; /
$0C:D7BA A5 94 LDA RAM_MarioXPos ; \
$0C:D7BC DD E5 D6 CMP.W $D6E5,X ; } Mario walks right to X = $D6E5[X]
$0C:D7BF F0 08 BEQ $D7C9 ; /
$0C:D7C1 1A INC A ; \
$0C:D7C2 85 94 STA RAM_MarioXPos ; } Mario X += 1
$0C:D7C4 29 0F AND.B #$0F ; \
$0C:D7C6 F0 1D BEQ $D7E5 ; } Every 16 pixels: restart the pause timer
$0C:D7C8 60 RTS ; Return
$0C:D7C9 EE 45 14 INC.W $1445 ; Next step [$1445]++
$0C:D7CC E0 06 CPX.B #$06 ; \
$0C:D7CE 90 04 BCC $D7D4 ; } Step 6 or more?
$0C:D7D0 9C 46 14 STZ.W $1446 ; \
$0C:D7D3 60 RTS ; } Last step: [$1446] = 0 (column gone)
$0C:D7D4 8A TXA ; \
$0C:D7D5 4A LSR ; } Play a sound on even steps
$0C:D7D6 B0 05 BCS $D7DD ; /
$0C:D7D8 A9 0F LDA.B #$0F ; \
$0C:D7DA 8D F9 1D STA.W $1DF9 ; } Play sound effect $0F
$0C:D7DD 60 RTS ; Return
$0C:D7DE 18 CLC ; \
$0C:D7DF 7D D9 D6 ADC.W $D6D9,X ; } [$1446] += $D6D9[X] (+/-4: move column up or down)
$0C:D7E2 8D 46 14 STA.W $1446 ; /
$0C:D7E5 A9 10 LDA.B #$10 ; \
$0C:D7E7 8D 49 14 STA.W $1449 ; } Pause timer [$1449] = $10
$0C:D7EA 60 RTS ; Return
;;; $D7EB..D7FB: Tables: carried item position ;;;
$0C:D7EB .db $F7,$F6 ; Carried item X offset from Mario: small $F7, big $F6
$0C:D7ED .db $63,$5F,$62,$5F,$62,$5E ; Carried item Y position by pose*2 + big
$0C:D7F3 .db $67,$66,$65,$65,$64,$64,$64,$64 ; Bobbing Y position of carried item, 16 frames
$0C:D7FB .db $64,$64,$64,$64,$65,$65,$66,$67 ; Bobbing Y position, frames 8-15
;;; $D803: Carried item sprite and Mario exit walk ;;;
;; Called every frame from the cutscene update ($0CC98C). Draws a 16x16 sprite (tile 0, prop $21) following
;; Mario at
;; X = Mario - 9/10, with Y bobbing over 16 frames from $D7F3. When Mario is still at X < $40 it starts
;; the pick-up
;; image timer ([$1498] = $10); when he reaches X <= 5 and is not moving left it increments [$144A] (scene
;; done).
;; Called by:
;; $0C:C99A: Cutscene main entry and text timer
$0C:D803 AE 4A 14 LDX.W $144A ; X = [$144A]
$0C:D806 D0 35 BNE $D83D ; Non-zero: skip ahead
$0C:D808 AD 98 14 LDA.W RAM_PickUpImgTimer ; Pick-up image timer
$0C:D80B F0 05 BEQ $D812 ; Zero: look for Mario
$0C:D80D 4A LSR ; \
$0C:D80E F0 39 BEQ $D849 ; } Timer = 1: advance [$144A]
$0C:D810 80 3D BRA $D84F ; Otherwise just animate
$0C:D812 A4 19 LDY RAM_MarioPowerUp ; \
$0C:D814 F0 02 BEQ $D818 ; } Y = 0 (small) or 1 (not small)
$0C:D816 A0 01 LDY.B #$01 ; /
$0C:D818 A5 94 LDA RAM_MarioXPos ; \
$0C:D81A 18 CLC ; |
$0C:D81B 79 EB D7 ADC.W $D7EB,Y ; } [$144C] = Mario X + $D7EB[Y] (item X position)
$0C:D81E 8D 4C 14 STA.W $144C ; /
$0C:D821 98 TYA ; \
$0C:D822 4A LSR ; |
$0C:D823 AD DB 13 LDA.W $13DB ; |
$0C:D826 2A ROL ; } Y = [$13DB] * 2 + (Y & 1)
$0C:D827 A8 TAY ; /
$0C:D828 B9 ED D7 LDA.W $D7ED,Y ; A = item Y position from $D7ED[Y]
$0C:D82B A4 94 LDY RAM_MarioXPos ; \
$0C:D82D C0 40 CPY.B #$40 ; } Mario X >= $40: just place the item
$0C:D82F B0 27 BCS $D858 ; /
$0C:D831 A4 7B LDY RAM_MarioSpeedX ; \
$0C:D833 D0 23 BNE $D858 ; } Mario still moving: just place the item
$0C:D835 A9 10 LDA.B #$10 ; \
$0C:D837 8D 98 14 STA.W RAM_PickUpImgTimer ; } Pick-up image timer = $10
$0C:D83A 9C 8F 14 STZ.W $148F ; [$148F] = 0
$0C:D83D A9 05 LDA.B #$05 ; \
$0C:D83F C5 94 CMP RAM_MarioXPos ; |
$0C:D841 90 09 BCC $D84C ; } A = 5; if Mario X > 5 keep walking, else clamp X to 5
$0C:D843 85 94 STA RAM_MarioXPos ; /
$0C:D845 A5 7B LDA RAM_MarioSpeedX ; \
$0C:D847 30 03 BMI $D84C ; } Moving left: keep going; otherwise [$144A]++ (scene done)
$0C:D849 EE 4A 14 INC.W $144A ; /
$0C:D84C EE 4B 14 INC.W $144B ; [$144B]++ (bobbing frame)
$0C:D84F AD 4B 14 LDA.W $144B ; \
$0C:D852 29 0F AND.B #$0F ; |
$0C:D854 A8 TAY ; } A = $D7F3[[$144B] & $0F]: bobbing Y position
$0C:D855 B9 F3 D7 LDA.W $D7F3,Y ; /
$0C:D858 8D 81 03 STA.W $0381 ; OAM Y = A
$0C:D85B AD 4C 14 LDA.W $144C
$0C:D85E 8D 80 03 STA.W $0380 ; OAM X = [$144C]
$0C:D861 9C 82 03 STZ.W $0382 ; OAM tile = 0
$0C:D864 A9 21 LDA.B #$21 ; \
$0C:D866 8D 83 03 STA.W $0383 ; } OAM properties = $21
$0C:D869 A9 02 LDA.B #$02 ; \
$0C:D86B 8D 80 04 STA.W $0480 ; } OAM high table entry = 2 (16x16)
$0C:D86E 60 RTS ; Return
;;; $D86F..D8FF: Padding: $FF fill ;;;
$0C:D86F .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D877 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D87F .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D887 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D88F .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D897 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D89F .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8A7 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8AF .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8B7 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8BF .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8C7 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8CF .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8D7 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8DF .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8E7 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8EF .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8F7 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:D8FF .db $FF
;;; $D900..DAB8: Level layer 2 tilemap 1 (RLE) ;;;
;; RLE tilemap of 864 tiles for a level Layer 2 background, pointed to by Layer2Ptrs in bank 05 ($05E600).
;; Token: bit 7 set = repeat next byte (count&$7F)+1 times; bit 7 clear = (count+1) literal bytes follow. Ends
;; with $FF,$FF.
$0C:D900 .db $E2,$00,$00,$01,$81,$02,$00,$03 ; L2 map 1: 99x00; raw 01; 2x02; raw 03
$0C:D908 .db $B0,$00,$03,$04,$05,$06,$07,$8B ; 49x00; raw 04 05 06 07; 12x00
$0C:D910 .db $00,$00,$08,$81,$09,$00,$0A,$8B ; raw 08; 2x09; raw 0A; 12x00
$0C:D918 .db $00,$03,$0B,$0C,$09,$0D,$8B,$00 ; raw 0B 0C 09 0D; 12x00
$0C:D920 .db $00,$0B,$81,$09,$00,$0D,$8B,$00 ; raw 0B; 2x09; raw 0D; 12x00
$0C:D928 .db $08,$0B,$0E,$09,$0D,$0F,$10,$11 ; raw 0B 0E 09 0D 0F..
$0C:D930 .db $00,$11,$86,$00,$00,$0B,$81,$09 ; 7x00; raw 0B; 2x09
$0C:D938 .db $05,$0D,$12,$13,$14,$00,$14,$84 ; raw 0D 12 13 14 00..; 5x00
$0C:D940 .db $00,$0D,$04,$05,$15,$16,$0C,$0D ; raw 04 05 15 16 0C..
$0C:D948 .db $02,$17,$18,$00,$18,$01,$02,$03 ; (continued)
$0C:D950 .db $81,$00,$00,$08,$81,$09,$09,$19 ; 2x00; raw 08; 2x09; raw 19 1A 1B 1C 1D..
$0C:D958 .db $1A,$1B,$1C,$1D,$18,$02,$18,$02 ; (continued)
$0C:D960 .db $03,$82,$00,$04,$0B,$0C,$09,$0D ; 3x00; raw 0B 0C 09 0D 1E
$0C:D968 .db $1E,$81,$09,$05,$1F,$18,$00,$20 ; 2x09; raw 1F 18 00 20 06..
$0C:D970 .db $06,$07,$82,$00,$10,$0B,$09,$0E ; 3x00; raw 0B 09 0E 0D 0B..
$0C:D978 .db $0D,$0B,$09,$0E,$0D,$18,$00,$0C ; (continued)
$0C:D980 .db $09,$0A,$00,$04,$05,$0B,$81,$09 ; 2x09
$0C:D988 .db $01,$0D,$0B,$81,$09,$02,$0D,$18 ; raw 0D 0B; 2x09; raw 0D 18 00
$0C:D990 .db $00,$81,$09,$0D,$0D,$00,$08,$09 ; 2x09; raw 0D 00 08 09 0B..
$0C:D998 .db $0B,$0C,$09,$0D,$0B,$0C,$09,$0D ; (continued)
$0C:D9A0 .db $18,$00,$81,$09,$04,$0D,$02,$0B ; 2x09; raw 0D 02 0B 09 0B
$0C:D9A8 .db $09,$0B,$81,$09,$01,$0D,$0B,$81 ; 2x09; raw 0D 0B; 2x09
$0C:D9B0 .db $09,$00,$0D,$81,$02,$06,$09,$0E ; raw 0D; 2x02; raw 09 0E 0D 00 0B..
$0C:D9B8 .db $0D,$00,$0B,$0E,$0B,$81,$09,$08 ; 2x09; raw 0D 0B 09 0E 0D..
$0C:D9C0 .db $0D,$0B,$09,$0E,$0D,$02,$03,$09 ; (continued)
$0C:D9C8 .db $21,$88,$22,$06,$23,$09,$0D,$18 ; 9x22; raw 23 09 0D 18 00..
$0C:D9D0 .db $00,$16,$24,$88,$25,$0A,$26,$09 ; 9x25; raw 26 09 0D 18 02..
$0C:D9D8 .db $0D,$18,$02,$22,$23,$0D,$02,$0B ; (continued)
$0C:D9E0 .db $21,$89,$22,$05,$25,$26,$0D,$22 ; 10x22; raw 25 26 0D 22 0B..
$0C:D9E8 .db $0B,$24,$89,$25,$FF,$00,$87,$00 ; 10x25; 128x00; 8x00
$0C:D9F0 .db $00,$01,$81,$02,$00,$03,$84,$00 ; raw 01; 2x02; raw 03; 5x00
$0C:D9F8 .db $00,$01,$81,$02,$00,$03,$D8,$00 ; raw 01; 2x02; raw 03; 89x00
$0C:DA00 .db $01,$0F,$10,$8D,$00,$02,$12,$13 ; raw 0F 10; 14x00; raw 12 13 03
$0C:DA08 .db $03,$83,$00,$02,$0F,$10,$11,$82 ; 4x00; raw 0F 10 11; 3x00
$0C:DA10 .db $00,$04,$0F,$10,$11,$27,$28,$84 ; raw 0F 10 11 27 28; 5x00
$0C:DA18 .db $00,$02,$12,$13,$14,$82,$00,$04 ; raw 12 13 14; 3x00; raw 12 13 14 29 28
$0C:DA20 .db $12,$13,$14,$29,$28,$82,$00,$00 ; 3x00; raw 01
$0C:DA28 .db $01,$81,$02,$01,$17,$18,$82,$00 ; 2x02; raw 17 18; 3x00
$0C:DA30 .db $07,$29,$28,$18,$27,$2A,$0F,$10 ; raw 29 28 18 27 2A..
$0C:DA38 .db $11,$81,$00,$03,$27,$13,$18,$01 ; 2x00; raw 27 13 18 01
$0C:DA40 .db $81,$02,$07,$17,$28,$18,$27,$2B ; 2x02; raw 17 28 18 27 2B..
$0C:DA48 .db $12,$13,$14,$81,$00,$02,$29,$28 ; 2x00; raw 29 28 18
$0C:DA50 .db $18,$82,$00,$18,$29,$28,$2C,$02 ; 3x00; raw 29 28 2C 02 0B..
$0C:DA58 .db $0B,$02,$17,$18,$04,$05,$1C,$1D ; (continued)
$0C:DA60 .db $18,$00,$01,$02,$2A,$20,$1C,$1D ; (continued)
$0C:DA68 .db $0B,$29,$28,$18,$08,$81,$09,$01 ; 2x09; raw 1F 18
$0C:DA70 .db $1F,$18,$81,$02,$01,$03,$2B,$81 ; 2x02; raw 03 2B; 2x09
$0C:DA78 .db $09,$15,$1F,$0B,$27,$13,$18,$0B ; raw 1F 0B 27 13 18..
$0C:DA80 .db $0C,$09,$0D,$18,$00,$2D,$22,$0B ; (continued)
$0C:DA88 .db $09,$0C,$0D,$0B,$29,$2C,$02,$0B ; (continued)
$0C:DA90 .db $81,$09,$09,$0D,$02,$03,$2E,$25 ; 2x09; raw 0D 02 03 2E 25..
$0C:DA98 .db $0B,$09,$1A,$1B,$15,$83,$22,$02 ; 4x22; raw 23 0E 0D
$0C:DAA0 .db $23,$0E,$0D,$83,$22,$01,$0B,$21 ; 4x22; raw 0B 21
$0C:DAA8 .db $82,$22,$83,$25,$02,$26,$09,$0D ; 3x22; 4x25; raw 26 09 0D
$0C:DAB0 .db $83,$25,$01,$0B,$24,$82,$25,$FF ; 4x25; raw 0B 24; 3x25; end $FF,$FF
$0C:DAB8 .db $FF ; (continued)
;;; $DAB9..DC69: Level layer 2 tilemap 2 (RLE) ;;;
;; RLE tilemap of 864 tiles for a level Layer 2 background, pointed to by Layer2Ptrs in bank 05 ($05E600).
;; Token: bit 7 set = repeat next byte (count&$7F)+1 times; bit 7 clear = (count+1) literal bytes follow. Ends
;; with $FF,$FF.
$0C:DAB9 .db $D6,$00,$02,$2F,$30,$31,$95,$00 ; L2 map 2: 87x00; raw 2F 30 31; 22x00
$0C:DAC1 .db $02,$2F,$30,$31,$BE,$00,$01,$32 ; raw 2F 30 31; 63x00; raw 32 33
$0C:DAC9 .db $33,$8C,$00,$02,$34,$35,$36,$8C ; 13x00; raw 34 35 36; 13x00
$0C:DAD1 .db $00,$02,$37,$38,$32,$86,$00,$00 ; raw 37 38 32; 7x00; raw 33
$0C:DAD9 .db $33,$84,$00,$81,$39,$01,$3A,$3B ; 5x00; 2x39; raw 3A 3B
$0C:DAE1 .db $81,$00,$01,$2F,$31,$81,$00,$01 ; 2x00; raw 2F 31; 2x00; raw 36 3C
$0C:DAE9 .db $36,$3C,$83,$00,$03,$3D,$34,$35 ; 4x00; raw 3D 34 35 3E
$0C:DAF1 .db $3E,$84,$00,$01,$33,$32,$81,$00 ; 5x00; raw 33 32; 2x00
$0C:DAF9 .db $00,$3F,$81,$00,$04,$32,$40,$41 ; raw 3F; 2x00; raw 32 40 41 3D 42
$0C:DB01 .db $3D,$42,$83,$00,$01,$36,$39,$81 ; 4x00; raw 36 39; 2x00
$0C:DB09 .db $00,$00,$43,$81,$00,$00,$39,$81 ; raw 43; 2x00; raw 39; 2x00
$0C:DB11 .db $00,$01,$3C,$44,$83,$00,$04,$45 ; raw 3C 44; 4x00; raw 45 41 00 3F 46
$0C:DB19 .db $41,$00,$3F,$46,$84,$00,$01,$47 ; 5x00; raw 47 3D
$0C:DB21 .db $3D,$86,$00,$01,$48,$49,$83,$00 ; 7x00; raw 48 49; 4x00
$0C:DB29 .db $02,$4A,$4B,$4C,$84,$00,$0A,$2F ; raw 4A 4B 4C; 5x00; raw 2F 31 43 4D 4E..
$0C:DB31 .db $31,$43,$4D,$4E,$2F,$31,$00,$4F ; (continued)
$0C:DB39 .db $50,$3E,$82,$00,$00,$32,$82,$00 ; 3x00; raw 32; 3x00
$0C:DB41 .db $02,$51,$52,$3E,$82,$00,$02,$53 ; raw 51 52 3E; 3x00; raw 53 54 55
$0C:DB49 .db $54,$55,$81,$00,$02,$33,$3A,$3B ; 2x00; raw 33 3A 3B
$0C:DB51 .db $81,$00,$02,$4F,$54,$3E,$82,$00 ; 2x00; raw 4F 54 3E; 3x00
$0C:DB59 .db $0C,$51,$56,$49,$30,$31,$36,$57 ; raw 51 56 49 30 31..
$0C:DB61 .db $3E,$00,$33,$58,$49,$55,$82,$00 ; 3x00
$0C:DB69 .db $0C,$4F,$59,$5A,$3F,$3C,$34,$35 ; raw 4F 59 5A 3F 3C..
$0C:DB71 .db $40,$00,$36,$51,$56,$49,$81,$00 ; 2x00
$0C:DB79 .db $0D,$3F,$58,$5B,$5C,$48,$3F,$5D ; raw 3F 58 5B 5C 48..
$0C:DB81 .db $32,$39,$00,$5D,$46,$57,$4D,$81 ; 2x00
$0C:DB89 .db $00,$0D,$48,$34,$35,$5E,$43,$48 ; raw 48 34 35 5E 43..
$0C:DB91 .db $32,$39,$33,$00,$39,$35,$3A,$35 ; (continued)
$0C:DB99 .db $81,$00,$00,$43,$81,$45,$0A,$39 ; 2x00; raw 43; 2x45; raw 39 3D 43 41 40..
$0C:DBA1 .db $3D,$43,$41,$40,$36,$3C,$39,$41 ; (continued)
$0C:DBA9 .db $39,$5D,$E5,$00,$02,$2F,$30,$31 ; 102x00; raw 2F 30 31
$0C:DBB1 .db $D6,$00,$02,$2F,$30,$31,$93,$00 ; 87x00; raw 2F 30 31; 20x00
$0C:DBB9 .db $00,$32,$8D,$00,$07,$2F,$5E,$31 ; raw 32; 14x00; raw 2F 5E 31 3C 00..
$0C:DBC1 .db $3C,$00,$2F,$30,$31,$81,$00,$01 ; 2x00; raw 2F 31
$0C:DBC9 .db $2F,$31,$82,$00,$04,$33,$34,$35 ; 3x00; raw 33 34 35 2F 31
$0C:DBD1 .db $2F,$31,$89,$00,$04,$3C,$36,$5F ; 10x00; raw 3C 36 5F 3A 3B
$0C:DBD9 .db $3A,$3B,$8B,$00,$03,$45,$39,$38 ; 12x00; raw 45 39 38 41
$0C:DBE1 .db $41,$82,$00,$01,$2F,$31,$86,$00 ; 3x00; raw 2F 31; 7x00
$0C:DBE9 .db $02,$33,$5D,$45,$82,$00,$00,$33 ; raw 33 5D 45; 3x00; raw 33
$0C:DBF1 .db $86,$00,$02,$32,$00,$36,$83,$00 ; 7x00; raw 32 00 36; 4x00
$0C:DBF9 .db $01,$33,$36,$86,$00,$02,$3A,$3B ; raw 33 36; 7x00; raw 3A 3B 39
$0C:DC01 .db $39,$83,$00,$01,$36,$32,$81,$00 ; 4x00; raw 36 32; 2x00
$0C:DC09 .db $07,$33,$00,$3F,$00,$34,$35,$41 ; raw 33 00 3F 00 34..
$0C:DC11 .db $3F,$81,$00,$03,$46,$00,$34,$35 ; 2x00; raw 46 00 34 35
$0C:DC19 .db $81,$00,$26,$36,$00,$43,$00,$5F ; 2x00; raw 36 00 43 00 5F..
$0C:DC21 .db $39,$3D,$43,$00,$4A,$4B,$4C,$45 ; (continued)
$0C:DC29 .db $39,$00,$33,$32,$00,$45,$00,$41 ; (continued)
$0C:DC31 .db $3A,$3B,$45,$00,$53,$54,$3E,$40 ; (continued)
$0C:DC39 .db $41,$3C,$36,$39,$00,$4E,$3F,$33 ; (continued)
$0C:DC41 .db $40,$41,$81,$00,$28,$4A,$4B,$4C ; 2x00; raw 4A 4B 4C 3F 47..
$0C:DC49 .db $3F,$47,$3F,$00,$41,$00,$3D,$48 ; (continued)
$0C:DC51 .db $36,$3C,$33,$00,$3F,$4F,$50,$54 ; (continued)
$0C:DC59 .db $43,$49,$48,$33,$00,$33,$41,$43 ; (continued)
$0C:DC61 .db $39,$00,$36,$00,$43,$53,$54,$49 ; (continued)
$0C:DC69 .db $51,$5A,$43,$36,$00,$36,$FF,$FF ; end $FF,$FF
;;; $DC71..DD41: Level layer 2 tilemap 3 (RLE) ;;;
;; RLE tilemap of 864 tiles for a level Layer 2 background, pointed to by Layer2Ptrs in bank 05 ($05E600).
;; Token: bit 7 set = repeat next byte (count&$7F)+1 times; bit 7 clear = (count+1) literal bytes follow. Ends
;; with $FF,$FF.
$0C:DC71 .db $A1,$00,$01,$60,$61,$F5,$00,$01 ; L2 map 3: 34x00; raw 60 61; 118x00; raw 60 61
$0C:DC79 .db $60,$61,$9A,$00,$01,$60,$61,$DA ; 27x00; raw 60 61; 91x00
$0C:DC81 .db $00,$01,$60,$61,$BE,$00,$00,$62 ; raw 60 61; 63x00; raw 62
$0C:DC89 .db $88,$00,$00,$63,$83,$00,$02,$64 ; 9x00; raw 63; 4x00; raw 64 65 66
$0C:DC91 .db $65,$66,$82,$00,$00,$67,$82,$00 ; 3x00; raw 67; 3x00
$0C:DC99 .db $01,$63,$68,$82,$00,$0C,$64,$69 ; raw 63 68; 3x00; raw 64 69 6A 6B 66..
$0C:DCA1 .db $6A,$6B,$66,$6C,$6D,$6E,$6F,$70 ; (continued)
$0C:DCA9 .db $71,$68,$22,$81,$00,$01,$64,$69 ; 2x00; raw 64 69
$0C:DCB1 .db $81,$72,$0C,$73,$6B,$74,$75,$76 ; 2x72; raw 73 6B 74 75 76..
$0C:DCB9 .db $77,$78,$79,$7A,$22,$00,$64,$69 ; (continued)
$0C:DCC1 .db $81,$72,$00,$6A,$81,$72,$01,$6B ; 2x72; raw 6A; 2x72; raw 6B 74
$0C:DCC9 .db $74,$82,$76,$06,$77,$78,$79,$64 ; 3x76; raw 77 78 79 64 69..
$0C:DCD1 .db $69,$6A,$73,$81,$72,$09,$73,$6A ; 2x72; raw 73 6A 73 6B 74..
$0C:DCD9 .db $73,$6B,$74,$75,$76,$75,$76,$77 ; (continued)
$0C:DCE1 .db $E8,$00,$01,$60,$61,$E7,$00,$01 ; 105x00; raw 60 61; 104x00; raw 60 61
$0C:DCE9 .db $60,$61,$BE,$00,$01,$63,$7B,$84 ; 63x00; raw 63 7B; 5x00
$0C:DCF1 .db $00,$01,$60,$61,$85,$00,$03,$63 ; raw 60 61; 6x00; raw 63 68 7C 7B
$0C:DCF9 .db $68,$7C,$7B,$89,$00,$02,$7D,$7E ; 10x00; raw 7D 7E 68
$0C:DD01 .db $68,$81,$22,$01,$7C,$7B,$87,$00 ; 2x22; raw 7C 7B; 8x00
$0C:DD09 .db $01,$63,$68,$84,$22,$02,$7C,$7F ; raw 63 68; 5x22; raw 7C 7F 80
$0C:DD11 .db $80,$85,$00,$00,$68,$87,$22,$01 ; 6x00; raw 68; 8x22; raw 7C 7B
$0C:DD19 .db $7C,$7B,$84,$00,$89,$22,$01,$7C ; 5x00; 10x22; raw 7C 7B
$0C:DD21 .db $7B,$83,$00,$8A,$22,$01,$7C,$7B ; 4x00; 11x22; raw 7C 7B
$0C:DD29 .db $82,$00,$8B,$22,$01,$7C,$7B,$81 ; 3x00; 12x22; raw 7C 7B; 2x00
$0C:DD31 .db $00,$00,$7A,$8B,$22,$05,$7C,$7B ; raw 7A; 12x22; raw 7C 7B 00 78 79..
$0C:DD39 .db $00,$78,$79,$7A,$8A,$22,$01,$7C ; 11x22; raw 7C 7B
$0C:DD41 .db $7B,$FF,$FF ; end $FF,$FF
;;; $DD44..DE4C: Level layer 2 tilemap 4 (RLE) ;;;
;; RLE tilemap of 864 tiles for a level Layer 2 background, pointed to by Layer2Ptrs in bank 05 ($05E600).
;; Token: bit 7 set = repeat next byte (count&$7F)+1 times; bit 7 clear = (count+1) literal bytes follow. Ends
;; with $FF,$FF.
$0C:DD44 .db $DA,$00,$01,$60,$61,$93,$00,$01 ; L2 map 4: 91x00; raw 60 61; 20x00; raw 60 61
$0C:DD4C .db $60,$61,$B4,$00,$02,$7D,$7E,$7B ; 53x00; raw 7D 7E 7B
$0C:DD54 .db $8B,$00,$04,$63,$68,$22,$81,$7B ; 12x00; raw 63 68 22 81 7B
$0C:DD5C .db $89,$00,$01,$63,$68,$82,$22,$01 ; 10x00; raw 63 68; 3x22; raw 7C 7B
$0C:DD64 .db $7C,$7B,$87,$00,$01,$63,$68,$84 ; 8x00; raw 63 68; 5x22
$0C:DD6C .db $22,$02,$7C,$7F,$80,$83,$00,$02 ; raw 7C 7F 80; 4x00; raw 7D 7E 68
$0C:DD74 .db $7D,$7E,$68,$87,$22,$01,$7C,$7F ; 8x22; raw 7C 7F
$0C:DD7C .db $81,$00,$01,$63,$68,$8A,$22,$03 ; 2x00; raw 63 68; 11x22; raw 82 00 63 68
$0C:DD84 .db $82,$00,$63,$68,$8A,$22,$03,$83 ; 11x22; raw 83 68 63 68
$0C:DD8C .db $68,$63,$68,$8A,$22,$03,$83,$68 ; 11x22; raw 83 68 22 68
$0C:DD94 .db $22,$68,$87,$22,$04,$83,$84,$85 ; 8x22; raw 83 84 85 81 68
$0C:DD9C .db $81,$68,$81,$22,$00,$86,$86,$22 ; 2x22; raw 86; 7x22
$0C:DDA4 .db $04,$83,$68,$22,$7C,$86,$82,$22 ; raw 83 68 22 7C 86; 3x22
$0C:DDAC .db $03,$7C,$86,$82,$85,$82,$22,$01 ; raw 7C 86 82 85; 3x22; raw 83 68
$0C:DDB4 .db $83,$68,$82,$22,$01,$7C,$87,$82 ; 3x22; raw 7C 87; 3x22
$0C:DDBC .db $22,$06,$7C,$68,$7C,$87,$82,$88 ; raw 7C 68 7C 87 82..
$0C:DDC4 .db $68,$8B,$22,$01,$83,$68,$8C,$22 ; 12x22; raw 83 68; 13x22
$0C:DDCC .db $01,$83,$68,$84,$22,$01,$82,$85 ; raw 83 68; 5x22; raw 82 85
$0C:DDD4 .db $85,$22,$01,$81,$68,$84,$22,$01 ; 6x22; raw 81 68; 5x22; raw 81 68
$0C:DDDC .db $81,$68,$A4,$22,$EB,$00,$01,$60 ; 37x22; 108x00; raw 60 61
$0C:DDE4 .db $61,$97,$00,$01,$60,$61,$C9,$00 ; 24x00; raw 60 61; 74x00
$0C:DDEC .db $01,$63,$7B,$8B,$00,$04,$80,$63 ; raw 63 7B; 12x00; raw 80 63 68 7C 7B
$0C:DDF4 .db $68,$7C,$7B,$8A,$00,$01,$88,$68 ; 11x00; raw 88 68
$0C:DDFC .db $81,$22,$01,$83,$7B,$86,$00,$02 ; 2x22; raw 83 7B; 7x00; raw 60 61 00
$0C:DE04 .db $60,$61,$00,$82,$22,$03,$83,$68 ; 3x22; raw 83 68 7C 7B
$0C:DE0C .db $7C,$7B,$88,$00,$81,$22,$01,$81 ; 9x00; 2x22; raw 81 68
$0C:DE14 .db $68,$81,$22,$04,$7C,$7F,$80,$63 ; 2x22; raw 7C 7F 80 63 7B
$0C:DE1C .db $7B,$84,$00,$87,$22,$07,$83,$68 ; 5x00; 8x22; raw 83 68 7C 7B 7D..
$0C:DE24 .db $7C,$7B,$7D,$80,$7D,$7E,$86,$22 ; 7x22
$0C:DE2C .db $01,$81,$68,$81,$22,$04,$7C,$86 ; raw 81 68; 2x22; raw 7C 86 7C 86 83
$0C:DE34 .db $7C,$86,$83,$8B,$22,$06,$7C,$86 ; 12x22; raw 7C 86 7C 68 22..
$0C:DE3C .db $7C,$68,$22,$83,$86,$89,$22,$06 ; 10x22; raw 7C 87 22 81 68..
$0C:DE44 .db $7C,$87,$22,$81,$68,$7C,$86,$8E ; 15x22
$0C:DE4C .db $22,$01,$7C,$84,$BA,$22,$FF,$FF ; raw 7C 84; 59x22; end $FF,$FF
;;; $DE54..DF54: Level layer 2 tilemap 5 (RLE) ;;;
;; RLE tilemap of 864 tiles for a level Layer 2 background, pointed to by Layer2Ptrs in bank 05 ($05E600).
;; Token: bit 7 set = repeat next byte (count&$7F)+1 times; bit 7 clear = (count+1) literal bytes follow. Ends
;; with $FF,$FF.
$0C:DE54 .db $A2,$00,$01,$60,$61,$CD,$00,$01 ; L2 map 5: 35x00; raw 60 61; 78x00; raw 60 61
$0C:DE5C .db $60,$61,$F8,$00,$01,$60,$61,$8A ; 121x00; raw 60 61; 11x00
$0C:DE64 .db $00,$01,$60,$61,$A9,$00,$00,$67 ; raw 60 61; 42x00; raw 67
$0C:DE6C .db $8C,$00,$05,$6C,$6D,$6E,$6F,$70 ; 13x00; raw 6C 6D 6E 6F 70..
$0C:DE74 .db $67,$87,$00,$09,$6C,$6D,$89,$76 ; 8x00; raw 6C 6D 89 76 77..
$0C:DE7C .db $77,$75,$78,$6E,$6F,$70,$83,$00 ; 4x00
$0C:DE84 .db $04,$6C,$6D,$89,$77,$8A,$83,$76 ; raw 6C 6D 89 77 8A; 4x76
$0C:DE8C .db $0D,$77,$76,$78,$6F,$70,$8B,$6D ; raw 77 76 78 6F 70..
$0C:DE94 .db $89,$75,$77,$8C,$65,$74,$77,$82 ; 3x76
$0C:DE9C .db $76,$04,$75,$77,$8D,$8E,$8F,$81 ; raw 75 77 8D 8E 8F; 2x77
$0C:DEA4 .db $77,$0B,$76,$8C,$69,$6A,$6B,$74 ; raw 76 8C 69 6A 6B..
$0C:DEAC .db $76,$75,$76,$8D,$8E,$8F,$81,$72 ; 2x72
$0C:DEB4 .db $0C,$76,$77,$8C,$69,$6A,$72,$6A ; raw 76 77 8C 69 6A..
$0C:DEBC .db $6B,$74,$8D,$8E,$8F,$6A,$82,$72 ; 3x72
$0C:DEC4 .db $02,$90,$8C,$69,$83,$72,$03,$73 ; raw 90 8C 69; 4x72; raw 73 6B 91 73
$0C:DECC .db $6B,$91,$73,$83,$72,$06,$6A,$8C ; 4x72; raw 6A 8C 69 73 6A..
$0C:DED4 .db $69,$73,$6A,$72,$6A,$82,$72,$01 ; 3x72; raw 6B 91
$0C:DEDC .db $6B,$91,$81,$6A,$02,$72,$92,$93 ; 2x6A; raw 72 92 93
$0C:DEE4 .db $B2,$00,$01,$60,$61,$C8,$00,$01 ; 51x00; raw 60 61; 73x00; raw 60 61
$0C:DEEC .db $60,$61,$95,$00,$01,$60,$61,$EB ; 22x00; raw 60 61; 108x00
$0C:DEF4 .db $00,$01,$60,$61,$A5,$00,$01,$60 ; raw 60 61; 38x00; raw 60 61
$0C:DEFC .db $61,$92,$00,$00,$94,$8D,$00,$03 ; 19x00; raw 94; 14x00; raw 95 65 96 97
$0C:DF04 .db $95,$65,$96,$97,$83,$00,$00,$67 ; 4x00; raw 67
$0C:DF0C .db $86,$00,$0A,$72,$6A,$73,$98,$96 ; 7x00; raw 72 6A 73 98 96..
$0C:DF14 .db $97,$6C,$6D,$6E,$6F,$70,$83,$00 ; 4x00
$0C:DF1C .db $01,$6C,$6A,$82,$72,$03,$92,$93 ; raw 6C 6A; 3x72; raw 92 93 89 77
$0C:DF24 .db $89,$77,$81,$76,$05,$78,$6F,$70 ; 2x76; raw 78 6F 70 6C 6D..
$0C:DF2C .db $6C,$6D,$89,$81,$72,$02,$92,$93 ; 2x72; raw 92 93 89
$0C:DF34 .db $89,$84,$76,$09,$75,$77,$78,$99 ; 5x76; raw 75 77 78 99 90..
$0C:DF3C .db $90,$77,$92,$93,$89,$77,$84,$76 ; 5x76
$0C:DF44 .db $00,$75,$83,$76,$04,$78,$99,$89 ; raw 75; 4x76; raw 78 99 89 76 77
$0C:DF4C .db $76,$77,$82,$76,$01,$77,$75,$86 ; 3x76; raw 77 75; 7x76
$0C:DF54 .db $76,$00,$77,$FF,$FF ; raw 77; end $FF,$FF
;;; $DF59..E101: Level layer 2 tilemap 6 (RLE) ;;;
;; RLE tilemap of 864 tiles for a level Layer 2 background, pointed to by Layer2Ptrs in bank 05 ($05E600).
;; Token: bit 7 set = repeat next byte (count&$7F)+1 times; bit 7 clear = (count+1) literal bytes follow. Ends
;; with $FF,$FF.
$0C:DF59 .db $BB,$00,$01,$60,$61,$83,$00,$01 ; L2 map 6: 60x00; raw 60 61; 4x00; raw 60 61
$0C:DF61 .db $60,$61,$D4,$00,$01,$60,$61,$B5 ; 85x00; raw 60 61; 54x00
$0C:DF69 .db $00,$01,$60,$61,$9B,$00,$00,$7D ; raw 60 61; 28x00; raw 7D
$0C:DF71 .db $8D,$00,$01,$63,$68,$84,$00,$02 ; 14x00; raw 63 68; 5x00; raw 9A 9B 9C
$0C:DF79 .db $9A,$9B,$9C,$83,$00,$0C,$7D,$7E ; 4x00; raw 7D 7E 68 22 9D..
$0C:DF81 .db $68,$22,$9D,$9A,$9B,$9C,$9A,$9E ; (continued)
$0C:DF89 .db $9F,$09,$9C,$81,$00,$01,$71,$68 ; 2x00; raw 71 68
$0C:DF91 .db $82,$22,$0B,$A0,$9E,$A1,$09,$A2 ; 3x22; raw A0 9E A1 09 A2..
$0C:DF99 .db $9F,$A3,$A4,$A5,$9A,$A6,$A7,$83 ; 4x22
$0C:DFA1 .db $22,$01,$A8,$9F,$81,$09,$01,$A9 ; raw A8 9F; 2x09; raw A9 A3
$0C:DFA9 .db $A3,$81,$72,$03,$AA,$AB,$9F,$A9 ; 2x72; raw AA AB 9F A9
$0C:DFB1 .db $82,$22,$05,$A0,$9F,$A3,$AC,$AD ; 3x22; raw A0 9F A3 AC AD..
$0C:DFB9 .db $AE,$82,$72,$08,$AF,$AD,$B0,$A6 ; 3x72; raw AF AD B0 A6 A7..
$0C:DFC1 .db $A7,$A0,$9B,$A2,$A3,$82,$72,$00 ; 3x72; raw B1
$0C:DFC9 .db $B1,$81,$72,$56,$AF,$A3,$B2,$9E ; 2x72; raw AF A3 B2 9E 9F..
$0C:DFD1 .db $9F,$B3,$B4,$A1,$09,$B5,$72,$B2 ; (continued)
$0C:DFD9 .db $9B,$B6,$B2,$9B,$B3,$B2,$9E,$9F ; (continued)
$0C:DFE1 .db $09,$A3,$B2,$A1,$09,$B6,$B5,$9F ; (continued)
$0C:DFE9 .db $A3,$A5,$B7,$AC,$09,$A2,$9B,$09 ; (continued)
$0C:DFF1 .db $A3,$AA,$9E,$B8,$A9,$A4,$AA,$AE ; (continued)
$0C:DFF9 .db $72,$B9,$BA,$72,$AC,$09,$B3,$A9 ; (continued)
$0C:E001 .db $72,$B2,$9E,$9F,$09,$72,$BB,$B7 ; (continued)
$0C:E009 .db $B2,$B8,$09,$B6,$B1,$A4,$AF,$A3 ; (continued)
$0C:E011 .db $B2,$BC,$9B,$BD,$B3,$AA,$BE,$B2 ; (continued)
$0C:E019 .db $9E,$B7,$A4,$A5,$72,$AA,$A3,$B2 ; (continued)
$0C:E021 .db $BF,$C0,$B8,$81,$09,$D6,$00,$01 ; 2x09; 87x00; raw 60 61
$0C:E029 .db $60,$61,$A8,$00,$01,$60,$61,$A8 ; 41x00; raw 60 61; 41x00
$0C:E031 .db $00,$01,$60,$61,$95,$00,$01,$60 ; raw 60 61; 22x00; raw 60 61
$0C:E039 .db $61,$98,$00,$00,$80,$8E,$00,$01 ; 25x00; raw 80; 15x00; raw 7C 7B
$0C:E041 .db $7C,$7B,$84,$00,$02,$9A,$9F,$9C ; 5x00; raw 9A 9F 9C
$0C:E049 .db $85,$00,$09,$22,$7C,$7F,$7E,$7F ; 6x00; raw 22 7C 7F 7E 7F..
$0C:E051 .db $80,$9A,$9F,$A3,$A5,$81,$00,$01 ; 2x00; raw 7D 80
$0C:E059 .db $7D,$80,$81,$00,$84,$22,$4A,$7C ; 2x00; 5x22; raw 7C A8 9F C1 AA..
$0C:E061 .db $A8,$9F,$C1,$AA,$00,$63,$68,$7C ; (continued)
$0C:E069 .db $7F,$7E,$22,$A0,$9B,$C2,$22,$A0 ; (continued)
$0C:E071 .db $9F,$A3,$BA,$C3,$71,$68,$A0,$9F ; (continued)
$0C:E079 .db $A7,$22,$C4,$9F,$A3,$AA,$C4,$9F ; (continued)
$0C:E081 .db $A3,$B2,$9E,$9F,$A7,$22,$A8,$A1 ; (continued)
$0C:E089 .db $09,$A7,$9E,$A1,$C1,$AA,$BD,$AE ; (continued)
$0C:E091 .db $B2,$9F,$BD,$A3,$C5,$A0,$9F,$A3 ; (continued)
$0C:E099 .db $A4,$B2,$A2,$A1,$C1,$AF,$A3,$B2 ; (continued)
$0C:E0A1 .db $9F,$09,$A3,$B2,$9B,$BE,$AC,$C1 ; (continued)
$0C:E0A9 .db $B2,$9F,$81,$A3,$02,$AA,$B0,$9B ; 2xA3; raw AA B0 9B
$0C:E0B1 .db $81,$BD,$20,$B3,$C1,$A8,$A1,$A3 ; 2xBD; raw B3 C1 A8 A1 A3..
$0C:E0B9 .db $AA,$B2,$BC,$A6,$72,$B5,$B2,$9E ; (continued)
$0C:E0C1 .db $9F,$09,$A3,$A5,$B2,$9E,$B8,$B6 ; (continued)
$0C:E0C9 .db $72,$C0,$A2,$9F,$B6,$72,$A8,$9F ; (continued)
$0C:E0D1 .db $09,$A3,$72,$AA,$81,$9E,$04,$9F ; 2x9E; raw 9F A9 72 AA 09
$0C:E0D9 .db $A9,$72,$AA,$09,$81,$A3,$11,$B2 ; 2xA3; raw B2 9E A1 09 BE..
$0C:E0E1 .db $9E,$A1,$09,$BE,$72,$AA,$9E,$9F ; (continued)
$0C:E0E9 .db $09,$A3,$72,$AA,$AE,$72,$BD,$A2 ; (continued)
$0C:E0F1 .db $9F,$81,$09,$05,$A3,$72,$AF,$BD ; 2x09; raw A3 72 AF BD 09..
$0C:E0F9 .db $09,$A9,$81,$72,$02,$B2,$B7,$72 ; 2x72; raw B2 B7 72
$0C:E101 .db $FF,$FF ; end $FF,$FF
;;; $E103..E46B: Level layer 2 tilemap 7 (RLE) ;;;
;; RLE tilemap of 864 tiles for a level Layer 2 background, pointed to by Layer2Ptrs in bank 05 ($05E600).
;; Token: bit 7 set = repeat next byte (count&$7F)+1 times; bit 7 clear = (count+1) literal bytes follow. Ends
;; with $FF,$FF.
$0C:E103 .db $7F,$C6,$9E,$C7,$9E,$C6,$9E,$C8 ; L2 map 7: raw C6 9E C7 9E C6..
$0C:E10B .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E113 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E11B .db $C9,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E123 .db $9E,$C6,$9E,$C8,$9E,$CA,$9E,$C8 ; (continued)
$0C:E12B .db $9E,$C6,$9E,$C8,$9E,$CA,$9E,$C8 ; (continued)
$0C:E133 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E13B .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E143 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E14B .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E153 .db $CB,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E15B .db $CB,$CC,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E163 .db $9E,$C6,$9E,$C7,$9E,$C6,$9E,$C8 ; (continued)
$0C:E16B .db $9E,$C6,$9E,$C8,$C9,$C6,$9E,$C8 ; (continued)
$0C:E173 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E17B .db $9E,$CA,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E183 .db $C9,$80,$C6,$7F,$9E,$C8,$9E,$CA ; 1xC6; raw 9E C8 9E CA 9E..
$0C:E18B .db $9E,$C8,$9E,$C6,$C9,$C8,$9E,$C6 ; (continued)
$0C:E193 .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E19B .db $9E,$C7,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E1A3 .db $C9,$C8,$9E,$C6,$9E,$CD,$CE,$C6 ; (continued)
$0C:E1AB .db $9E,$C8,$9E,$C6,$9E,$C8,$CB,$CC ; (continued)
$0C:E1B3 .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E1BB .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E1C3 .db $9E,$C8,$9E,$CA,$9E,$C8,$9E,$C6 ; (continued)
$0C:E1CB .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E1D3 .db $9E,$C8,$C9,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E1DB .db $9E,$C8,$C9,$C6,$9E,$C8,$9E,$CA ; (continued)
$0C:E1E3 .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E1EB .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$CA ; (continued)
$0C:E1F3 .db $9E,$C8,$9E,$C6,$CF,$C8,$9E,$C6 ; (continued)
$0C:E1FB .db $CF,$C8,$C9,$C6,$CF,$C8,$C9,$C6 ; (continued)
$0C:E203 .db $CF,$C8,$9E,$C6,$80,$D0,$7F,$C8 ; 1xD0; raw C8 9E CA D0 C8..
$0C:E20B .db $9E,$CA,$D0,$C8,$9E,$C6,$D0,$C8 ; (continued)
$0C:E213 .db $9E,$C6,$D0,$C7,$9E,$D1,$D2,$D3 ; (continued)
$0C:E21B .db $D4,$D1,$D2,$D3,$D4,$D1,$D2,$D3 ; (continued)
$0C:E223 .db $D4,$D1,$D2,$D3,$D4,$D5,$D6,$D7 ; (continued)
$0C:E22B .db $D8,$D5,$D6,$D7,$D8,$D5,$D6,$D7 ; (continued)
$0C:E233 .db $D8,$D5,$D6,$D7,$D8,$00,$D9,$00 ; (continued)
$0C:E23B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E243 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E24B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E253 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E25B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E263 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E26B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E273 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E27B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E283 .db $DA,$00,$D9,$00,$DA,$00,$D9,$80 ; 1x00
$0C:E28B .db $00,$7F,$DA,$00,$D9,$00,$DA,$00 ; raw DA 00 D9 00 DA..
$0C:E293 .db $D9,$00,$DA,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E29B .db $D9,$00,$DA,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E2A3 .db $D9,$00,$DA,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E2AB .db $D9,$00,$DA,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E2B3 .db $D9,$00,$DA,$00,$D9,$00,$DA,$C6 ; (continued)
$0C:E2BB .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E2C3 .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E2CB .db $9E,$C7,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E2D3 .db $9E,$C8,$9E,$C6,$9E,$C8,$C9,$C6 ; (continued)
$0C:E2DB .db $9E,$C8,$9E,$C6,$9E,$C7,$9E,$C6 ; (continued)
$0C:E2E3 .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E2EB .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E2F3 .db $9E,$C8,$C9,$C6,$9E,$C8,$9E,$CC ; (continued)
$0C:E2FB .db $9E,$C8,$9E,$CA,$9E,$C8,$CB,$CC ; (continued)
$0C:E303 .db $9E,$C8,$9E,$C6,$C9,$C8,$9E,$C6 ; (continued)
$0C:E30B .db $9E,$C8,$80,$9E,$7F,$C6,$9E,$C8 ; 1x9E; raw C6 9E C8 9E C6..
$0C:E313 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E31B .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E323 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C7 ; (continued)
$0C:E32B .db $9E,$C6,$C9,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E333 .db $C9,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E33B .db $9E,$C6,$9E,$C8,$C9,$C6,$9E,$C8 ; (continued)
$0C:E343 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E34B .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E353 .db $9E,$C6,$9E,$C8,$9E,$CA,$9E,$C8 ; (continued)
$0C:E35B .db $9E,$C6,$9E,$C7,$9E,$C6,$9E,$C8 ; (continued)
$0C:E363 .db $9E,$CA,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E36B .db $9E,$C6,$9E,$C8,$9E,$C6,$C9,$C8 ; (continued)
$0C:E373 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C7 ; (continued)
$0C:E37B .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E383 .db $9E,$C6,$9E,$C8,$9E,$C6,$9E,$C8 ; (continued)
$0C:E38B .db $9E,$C6,$9E,$C8,$C9,$80,$C6,$7F ; 1xC6; raw 9E C8 9E C6 9E..
$0C:E393 .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$CA ; (continued)
$0C:E39B .db $9E,$C8,$9E,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E3A3 .db $9E,$C8,$C9,$C6,$9E,$C8,$9E,$C6 ; (continued)
$0C:E3AB .db $9E,$C8,$9E,$C6,$CF,$C8,$9E,$C6 ; (continued)
$0C:E3B3 .db $CF,$C8,$9E,$C6,$CF,$C8,$C9,$C6 ; (continued)
$0C:E3BB .db $CF,$C8,$9E,$C6,$D0,$CD,$CE,$C6 ; (continued)
$0C:E3C3 .db $D0,$C8,$C9,$C6,$D0,$C8,$9E,$C6 ; (continued)
$0C:E3CB .db $D0,$C8,$C9,$D1,$D2,$D3,$D4,$D1 ; (continued)
$0C:E3D3 .db $D2,$D3,$D4,$D1,$D2,$D3,$D4,$D1 ; (continued)
$0C:E3DB .db $D2,$D3,$D4,$D5,$D6,$D7,$D8,$D5 ; (continued)
$0C:E3E3 .db $D6,$D7,$D8,$D5,$D6,$D7,$D8,$D5 ; (continued)
$0C:E3EB .db $D6,$D7,$D8,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E3F3 .db $D9,$00,$DA,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E3FB .db $D9,$00,$DA,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E403 .db $D9,$00,$DA,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E40B .db $D9,$00,$DA,$00,$D9,$00,$DA,$00 ; (continued)
$0C:E413 .db $80,$D9,$59,$00,$DA,$00,$D9,$00 ; 1xD9; raw 00 DA 00 D9 00..
$0C:E41B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E423 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E42B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E433 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E43B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E443 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E44B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E453 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E45B .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E463 .db $DA,$00,$D9,$00,$DA,$00,$D9,$00 ; (continued)
$0C:E46B .db $DA,$00,$D9,$00,$DA,$FF,$FF ; end $FF,$FF
;;; $E472..E672: Level layer 2 tilemap 8 (RLE) ;;;
;; RLE tilemap of 864 tiles for a level Layer 2 background, pointed to by Layer2Ptrs in bank 05 ($05E600).
;; Token: bit 7 set = repeat next byte (count&$7F)+1 times; bit 7 clear = (count+1) literal bytes follow. Ends
;; with $FF,$FF.
$0C:E472 .db $81,$00,$01,$60,$61,$C4,$00,$01 ; L2 map 8: 2x00; raw 60 61; 69x00; raw 60 61
$0C:E47A .db $60,$61,$A1,$00,$02,$63,$7F,$80 ; 34x00; raw 63 7F 80
$0C:E482 .db $8B,$00,$03,$63,$68,$22,$7C,$89 ; 12x00; raw 63 68 22 7C; 10x00
$0C:E48A .db $00,$02,$7D,$7E,$68,$82,$22,$88 ; raw 7D 7E 68; 3x22; 9x00
$0C:E492 .db $00,$01,$63,$68,$84,$22,$87,$00 ; raw 63 68; 5x22; 8x00
$0C:E49A .db $01,$63,$68,$85,$22,$86,$00,$01 ; raw 63 68; 6x22; 7x00; raw 63 68
$0C:E4A2 .db $63,$68,$86,$22,$83,$00,$03,$63 ; 7x22; 4x00; raw 63 7B 71 68
$0C:E4AA .db $7B,$71,$68,$87,$22,$82,$00,$03 ; 8x22; 3x00; raw 63 68 7C 86
$0C:E4B2 .db $63,$68,$7C,$86,$88,$22,$03,$DB ; 9x22; raw DB 7D 7E 68
$0C:E4BA .db $7D,$7E,$68,$81,$22,$02,$7C,$84 ; 2x22; raw 7C 84 85
$0C:E4C2 .db $85,$81,$22,$00,$DC,$83,$22,$01 ; 2x22; raw DC; 4x22; raw DD DE
$0C:E4CA .db $DD,$DE,$87,$22,$02,$DF,$65,$E0 ; 8x22; raw DF 65 E0
$0C:E4D2 .db $81,$22,$03,$E1,$76,$DD,$DE,$85 ; 2x22; raw E1 76 DD DE; 6x22
$0C:E4DA .db $22,$06,$DF,$69,$6A,$6B,$E0,$E1 ; raw DF 69 6A 6B E0..
$0C:E4E2 .db $E2,$81,$76,$01,$DD,$DE,$83,$22 ; 2x76; raw DD DE; 4x22
$0C:E4EA .db $01,$DF,$69,$81,$72,$02,$6A,$6B ; raw DF 69; 2x72; raw 6A 6B 74
$0C:E4F2 .db $74,$82,$76,$02,$77,$DD,$DE,$81 ; 3x76; raw 77 DD DE; 2x22
$0C:E4FA .db $22,$02,$DF,$69,$6A,$83,$72,$02 ; raw DF 69 6A; 4x72; raw 6B 74 77
$0C:E502 .db $6B,$74,$77,$82,$76,$05,$DD,$DE ; 3x76; raw DD DE DF 69 73..
$0C:E50A .db $DF,$69,$73,$6A,$84,$72,$00,$6B ; 5x72; raw 6B
$0C:E512 .db $84,$76,$01,$8C,$69,$87,$72,$06 ; 5x76; raw 8C 69; 8x72; raw 6A 90 76 77 76..
$0C:E51A .db $6A,$90,$76,$77,$76,$8C,$69,$83 ; 4x72
$0C:E522 .db $72,$00,$73,$84,$72,$04,$78,$99 ; raw 73; 5x72; raw 78 99 90 8C 69
$0C:E52A .db $90,$8C,$69,$81,$72,$00,$6A,$84 ; 2x72; raw 6A; 5x72
$0C:E532 .db $72,$00,$73,$81,$72,$03,$77,$76 ; raw 73; 2x72; raw 77 76 8C 69
$0C:E53A .db $8C,$69,$88,$72,$07,$6A,$73,$E3 ; 9x72; raw 6A 73 E3 76 8C..
$0C:E542 .db $76,$8C,$69,$72,$73,$87,$72,$05 ; 8x72; raw E3 E4 8F 8C 69..
$0C:E54A .db $E3,$E4,$8F,$8C,$69,$73,$86,$72 ; 7x72
$0C:E552 .db $03,$73,$E3,$E4,$8F,$81,$72,$00 ; raw 73 E3 E4 8F; 2x72; raw 69
$0C:E55A .db $69,$81,$73,$02,$6A,$72,$6A,$82 ; 2x73; raw 6A 72 6A; 3x72
$0C:E562 .db $72,$03,$E3,$E4,$8F,$73,$82,$72 ; raw E3 E4 8F 73; 3x72
$0C:E56A .db $A7,$00,$01,$60,$61,$BD,$00,$00 ; 40x00; raw 60 61; 62x00; raw E5
$0C:E572 .db $E5,$86,$00,$01,$7F,$E6,$84,$00 ; 7x00; raw 7F E6; 5x00
$0C:E57A .db $02,$E7,$E8,$DB,$85,$00,$02,$22 ; raw E7 E8 DB; 6x00; raw 22 E9 80
$0C:E582 .db $E9,$80,$82,$00,$04,$E7,$E2,$76 ; 3x00; raw E7 E2 76 DD DB
$0C:E58A .db $DD,$DB,$84,$00,$81,$22,$04,$7C ; 5x00; 2x22; raw 7C 7F 80 E7 E2
$0C:E592 .db $7F,$80,$E7,$E2,$82,$76,$01,$DD ; 3x76; raw DD DB
$0C:E59A .db $DB,$83,$00,$83,$22,$03,$E1,$E2 ; 4x00; 4x22; raw E1 E2 76 77
$0C:E5A2 .db $76,$77,$82,$76,$01,$DD,$DB,$82 ; 3x76; raw DD DB; 3x00
$0C:E5AA .db $00,$82,$22,$01,$E1,$E2,$81,$77 ; 3x22; raw E1 E2; 2x77
$0C:E5B2 .db $83,$76,$02,$75,$DD,$DB,$81,$00 ; 4x76; raw 75 DD DB; 2x00
$0C:E5BA .db $81,$22,$01,$E1,$E2,$88,$76,$05 ; 2x22; raw E1 E2; 9x76; raw DD DB 00 22 E1..
$0C:E5C2 .db $DD,$DB,$00,$22,$E1,$E2,$8A,$76 ; 11x76
$0C:E5CA .db $03,$DD,$DB,$E1,$E2,$86,$76,$00 ; raw DD DB E1 E2; 7x76; raw 75
$0C:E5D2 .db $75,$82,$76,$03,$75,$76,$DD,$E2 ; 3x76; raw 75 76 DD E2
$0C:E5DA .db $8D,$76,$00,$77,$83,$76,$00,$77 ; 14x76; raw 77; 4x76; raw 77
$0C:E5E2 .db $84,$76,$00,$77,$84,$76,$01,$75 ; 5x76; raw 77; 5x76; raw 75 77
$0C:E5EA .db $77,$85,$76,$00,$EA,$8C,$76,$04 ; 6x76; raw EA; 13x76; raw EB EC 6E 99 90
$0C:E5F2 .db $EB,$EC,$6E,$99,$90,$82,$76,$08 ; 3x76; raw 75 76 74 76 75..
$0C:E5FA .db $75,$76,$74,$76,$75,$76,$EB,$EC ; (continued)
$0C:E602 .db $89,$82,$76,$02,$78,$99,$90,$82 ; 3x76; raw 78 99 90; 3x76
$0C:E60A .db $76,$05,$6B,$74,$EB,$EC,$89,$77 ; raw 6B 74 EB EC 89..
$0C:E612 .db $81,$76,$01,$77,$75,$81,$76,$07 ; 2x76; raw 77 75; 2x76; raw 78 99 90 76 72..
$0C:E61A .db $78,$99,$90,$76,$72,$6B,$74,$ED ; (continued)
$0C:E622 .db $81,$76,$01,$75,$77,$84,$76,$08 ; 2x76; raw 75 77; 5x76; raw 77 78 99 72 E3..
$0C:E62A .db $77,$78,$99,$72,$E3,$E4,$EE,$EF ; (continued)
$0C:E632 .db $F0,$88,$76,$02,$77,$E4,$8F,$81 ; 9x76; raw 77 E4 8F; 2x72
$0C:E63A .db $72,$05,$6A,$98,$EF,$F0,$76,$77 ; raw 6A 98 EF F0 76..
$0C:E642 .db $83,$76,$02,$75,$76,$73,$85,$72 ; 4x76; raw 75 76 73; 6x72
$0C:E64A .db $02,$98,$EF,$F0,$81,$76,$00,$75 ; raw 98 EF F0; 2x76; raw 75
$0C:E652 .db $82,$76,$03,$72,$6A,$72,$73,$82 ; 3x76; raw 72 6A 72 73; 3x72
$0C:E65A .db $72,$05,$6A,$72,$98,$EF,$F0,$77 ; raw 6A 72 98 EF F0..
$0C:E662 .db $82,$76,$83,$72,$00,$73,$83,$72 ; 3x76; 4x72; raw 73; 4x72
$0C:E66A .db $06,$6A,$72,$98,$EF,$F0,$76,$8C ; raw 6A 72 98 EF F0..
$0C:E672 .db $FF,$FF ; end $FF,$FF
;;; $E674..E67C: Layer 2 tilemap 9: flat fill (RLE) ;;;
;; RLE stream: 6 x 128 tiles $F1 then 96 tiles $F1 = 864 tiles, end $FF,$FF. Used by levels that point
;; Layer2Ptrs here.
$0C:E674 .db $FF,$F1,$FF,$F1,$FF,$F1,$FF,$F1 ; L2 map 9: 128xF1; 128xF1; 128xF1; 128xF1
$0C:E67C .db $FF,$F1,$FF,$F1,$DF,$F1,$FF,$FF ; 128xF1; 128xF1; 96xF1; end $FF,$FF
;;; $E684..E7BC: Credits background tilemap, RLE (not in scene table) ;;;
;; RLE stream of 864 Map16 tile low bytes, terminated by $FFFF. Control byte: bit 7 set = repeat next byte
;; ([n]&$7F)+1 times;
;; bit 7 clear = copy the next [n]+1 literal bytes. Decoded by $944C into $7EB900.
;; Not referenced by the scene pointer table $93C1, so probably an unused or alternate scene.
$0C:E684 .db $8D,$00,$00,$F2,$83,$00,$02,$F3 ; @0 Run 14 x $00; @14 Lit 1: F2; @15 Run 4 x $00; @19 Lit 3: F3 00 F3
$0C:E68C .db $00,$F3,$95,$00,$00,$F4,$83,$00 ; @22 Run 22 x $00; @44 Lit 1: F4; @45 Run 4 x $00
$0C:E694 .db $00,$F4,$87,$00,$00,$F2,$89,$00 ; @49 Lit 1: F4; @50 Run 8 x $00; @58 Lit 1: F2; @59 Run 10 x $00
$0C:E69C .db $00,$F2,$81,$00,$00,$F5,$93,$00 ; @69 Lit 1: F2; @70 Run 2 x $00; @72 Lit 1: F5; @73 Run 20 x $00
$0C:E6A4 .db $00,$F3,$88,$00,$00,$F2,$89,$00 ; @93 Lit 1: F3; @94 Run 9 x $00; @103 Lit 1: F2; @104 Run 10 x $00
$0C:E6AC .db $00,$F5,$88,$00,$00,$F2,$82,$00 ; @114 Lit 1: F5; @115 Run 9 x $00; @124 Lit 1: F2; @125 Run 3 x $00
$0C:E6B4 .db $00,$F2,$92,$00,$00,$F2,$82,$00 ; @128 Lit 1: F2; @129 Run 19 x $00; @148 Lit 1: F2; @149 Run 3 x $00
$0C:E6BC .db $00,$F4,$89,$00,$00,$F3,$88,$00 ; @152 Lit 1: F4; @153 Run 10 x $00; @163 Lit 1: F3; @164 Run 9 x $00
$0C:E6C4 .db $00,$F5,$8F,$00,$00,$F2,$83,$00 ; @173 Lit 1: F5; @174 Run 16 x $00; @190 Lit 1: F2; @191 Run 4 x $00
$0C:E6CC .db $02,$F3,$00,$F3,$95,$00,$00,$F4 ; @195 Lit 3: F3 00 F3; @198 Run 22 x $00; @220 Lit 1: F4
$0C:E6D4 .db $83,$00,$00,$F4,$87,$00,$00,$F2 ; @221 Run 4 x $00; @225 Lit 1: F4; @226 Run 8 x $00; @234 Lit 1: F2
$0C:E6DC .db $89,$00,$00,$F2,$81,$00,$00,$F5 ; @235 Run 10 x $00; @245 Lit 1: F2; @246 Run 2 x $00; @248 Lit 1: F5
$0C:E6E4 .db $93,$00,$00,$F3,$88,$00,$00,$F2 ; @249 Run 20 x $00; @269 Lit 1: F3; @270 Run 9 x $00; @279 Lit 1: F2
$0C:E6EC .db $89,$00,$00,$F5,$88,$00,$00,$F2 ; @280 Run 10 x $00; @290 Lit 1: F5; @291 Run 9 x $00; @300 Lit 1: F2
$0C:E6F4 .db $82,$00,$00,$F2,$92,$00,$00,$F2 ; @301 Run 3 x $00; @304 Lit 1: F2; @305 Run 19 x $00; @324 Lit 1: F2
$0C:E6FC .db $82,$00,$00,$F4,$89,$00,$00,$F3 ; @325 Run 3 x $00; @328 Lit 1: F4; @329 Run 10 x $00; @339 Lit 1: F3
$0C:E704 .db $88,$00,$00,$F5,$8C,$00,$00,$F3 ; @340 Run 9 x $00; @349 Lit 1: F5; @350 Run 13 x $00; @363 Lit 1: F3
$0C:E70C .db $83,$00,$0D,$F6,$F7,$F8,$F6,$F7 ; @364 Run 4 x $00; @368 Lit 14: F6 F7 F8 F6 F7 F8 ..
$0C:E714 .db $F8,$F6,$F7,$F8,$F6,$F7,$F8,$F6 ; (continues previous entry)
$0C:E71C .db $F7,$81,$F8,$AF,$72,$8D,$00,$00 ; @382 Run 2 x $F8; @384 Run 48 x $72; @432 Run 14 x $00; @446 Lit 1: F2
$0C:E724 .db $F2,$83,$00,$02,$F3,$00,$F3,$95 ; @447 Run 4 x $00; @451 Lit 3: F3 00 F3; @454 Run 22 x $00
$0C:E72C .db $00,$00,$F4,$83,$00,$00,$F4,$87 ; @476 Lit 1: F4; @477 Run 4 x $00; @481 Lit 1: F4; @482 Run 8 x $00
$0C:E734 .db $00,$00,$F2,$89,$00,$00,$F2,$81 ; @490 Lit 1: F2; @491 Run 10 x $00; @501 Lit 1: F2; @502 Run 2 x $00
$0C:E73C .db $00,$00,$F5,$93,$00,$00,$F3,$88 ; @504 Lit 1: F5; @505 Run 20 x $00; @525 Lit 1: F3; @526 Run 9 x $00
$0C:E744 .db $00,$00,$F2,$89,$00,$00,$F5,$88 ; @535 Lit 1: F2; @536 Run 10 x $00; @546 Lit 1: F5; @547 Run 9 x $00
$0C:E74C .db $00,$00,$F2,$82,$00,$00,$F2,$92 ; @556 Lit 1: F2; @557 Run 3 x $00; @560 Lit 1: F2; @561 Run 19 x $00
$0C:E754 .db $00,$00,$F2,$82,$00,$00,$F4,$89 ; @580 Lit 1: F2; @581 Run 3 x $00; @584 Lit 1: F4; @585 Run 10 x $00
$0C:E75C .db $00,$00,$F3,$88,$00,$00,$F5,$8F ; @595 Lit 1: F3; @596 Run 9 x $00; @605 Lit 1: F5; @606 Run 16 x $00
$0C:E764 .db $00,$00,$F2,$83,$00,$02,$F3,$00 ; @622 Lit 1: F2; @623 Run 4 x $00; @627 Lit 3: F3 00 F3
$0C:E76C .db $F3,$95,$00,$00,$F4,$83,$00,$00 ; @630 Run 22 x $00; @652 Lit 1: F4; @653 Run 4 x $00; @657 Lit 1: F4
$0C:E774 .db $F4,$87,$00,$00,$F2,$89,$00,$00 ; @658 Run 8 x $00; @666 Lit 1: F2; @667 Run 10 x $00; @677 Lit 1: F2
$0C:E77C .db $F2,$81,$00,$00,$F5,$93,$00,$00 ; @678 Run 2 x $00; @680 Lit 1: F5; @681 Run 20 x $00; @701 Lit 1: F3
$0C:E784 .db $F3,$88,$00,$00,$F2,$89,$00,$00 ; @702 Run 9 x $00; @711 Lit 1: F2; @712 Run 10 x $00; @722 Lit 1: F5
$0C:E78C .db $F5,$88,$00,$00,$F2,$82,$00,$00 ; @723 Run 9 x $00; @732 Lit 1: F2; @733 Run 3 x $00; @736 Lit 1: F2
$0C:E794 .db $F2,$92,$00,$00,$F2,$82,$00,$00 ; @737 Run 19 x $00; @756 Lit 1: F2; @757 Run 3 x $00; @760 Lit 1: F4
$0C:E79C .db $F4,$89,$00,$00,$F3,$88,$00,$00 ; @761 Run 10 x $00; @771 Lit 1: F3; @772 Run 9 x $00; @781 Lit 1: F5
$0C:E7A4 .db $F5,$8C,$00,$00,$F3,$83,$00,$0D ; @782 Run 13 x $00; @795 Lit 1: F3; @796 Run 4 x $00; @800 Lit 14: F6 F7 F8 F6 F7 F8 ..
$0C:E7AC .db $F6,$F7,$F8,$F6,$F7,$F8,$F6,$F7 ; (continues previous entry)
$0C:E7B4 .db $F8,$F6,$F7,$F8,$F6,$F7,$81,$F8 ; @814 Run 2 x $F8
$0C:E7BC .db $AF,$72,$FF,$FF ; @816 Run 48 x $72; End marker $FFFF
;;; $E7C0..E8E8: Credits background tilemap 1, RLE ;;;
;; Scene 1 of the credits background pointer table $93C1: 864 Map16 tile low bytes in the $00 page
;; (pointer < $E8FE).
;; Format: bit 7 set = repeat next byte ([n]&$7F)+1 times, else [n]+1 literal bytes; ends with $FFFF.
;; Quirk: the stream actually expands to 865 bytes (last literal overruns by one); harmless.
$0C:E7C0 .db $9A,$00,$01,$60,$61,$C9,$00,$01 ; @0 Run 27 x $00; @27 Lit 2: 60 61; @29 Run 74 x $00; @103 Lit 2: 60 61
$0C:E7C8 .db $60,$61,$EE,$00,$01,$9A,$9C,$87 ; @105 Run 111 x $00; @216 Lit 2: 9A 9C; @218 Run 8 x $00
$0C:E7D0 .db $00,$01,$60,$61,$83,$00,$02,$A8 ; @226 Lit 2: 60 61; @228 Run 4 x $00; @232 Lit 3: A8 A1 9C
$0C:E7D8 .db $A1,$9C,$8B,$00,$03,$9A,$9E,$A1 ; @235 Run 12 x $00; @247 Lit 4: 9A 9E A1 A3
$0C:E7E0 .db $A3,$82,$00,$01,$60,$61,$85,$00 ; @251 Run 3 x $00; @254 Lit 2: 60 61; @256 Run 6 x $00
$0C:E7E8 .db $05,$9A,$9E,$9F,$09,$AA,$9C,$89 ; @262 Lit 6: 9A 9E 9F 09 AA 9C; @268 Run 10 x $00
$0C:E7F0 .db $00,$05,$A8,$9E,$A1,$A3,$AF,$A9 ; @278 Lit 6: A8 9E A1 A3 AF A9
$0C:E7F8 .db $88,$00,$06,$9A,$9E,$9F,$A3,$AF ; @284 Run 9 x $00; @293 Lit 7: 9A 9E 9F A3 AF 09 ..
$0C:E800 .db $09,$A3,$88,$00,$06,$A8,$9E,$A1 ; @300 Run 9 x $00; @309 Lit 7: A8 9E A1 AF B8 A3 ..
$0C:E808 .db $AF,$B8,$A3,$AA,$88,$00,$07,$A8 ; @316 Run 9 x $00; @325 Lit 8: A8 9F B0 A3 09 B6 ..
$0C:E810 .db $9F,$B0,$A3,$09,$B6,$AF,$9C,$81 ; @333 Run 2 x $00
$0C:E818 .db $00,$00,$9A,$84,$00,$0A,$9F,$B0 ; @335 Lit 1: 9A; @336 Run 5 x $00; @341 Lit 11: 9F B0 9F 72 09 B0 ..
$0C:E820 .db $9F,$72,$09,$B0,$A1,$A9,$00,$9A ; (continues previous entry)
$0C:E828 .db $9F,$83,$00,$00,$9A,$81,$09,$08 ; @352 Run 4 x $00; @356 Lit 1: 9A; @357 Run 2 x $09; @359 Lit 9: A3 AF B0 9E A1 A3 ..
$0C:E830 .db $A3,$AF,$B0,$9E,$A1,$A3,$9A,$9E ; (continues previous entry)
$0C:E838 .db $A1,$82,$00,$09,$9A,$9E,$09,$A3 ; @368 Run 3 x $00; @371 Lit 10: 9A 9E 09 A3 AF A9 ..
$0C:E840 .db $AF,$A9,$9E,$9F,$C1,$AA,$81,$9E ; @381 Run 2 x $9E
$0C:E848 .db $00,$A1,$81,$00,$00,$9A,$81,$9E ; @383 Lit 1: A1; @384 Run 2 x $00; @386 Lit 1: 9A; @387 Run 2 x $9E
$0C:E850 .db $0A,$B0,$A1,$AC,$A9,$9F,$09,$C1 ; @389 Lit 11: B0 A1 AC A9 9F 09 ..
$0C:E858 .db $AF,$A2,$9F,$09,$81,$00,$01,$A8 ; @400 Run 2 x $00; @402 Lit 2: A8 9F
$0C:E860 .db $9F,$81,$9E,$07,$A1,$72,$A3,$AF ; @404 Run 2 x $9E; @406 Lit 8: A1 72 A3 AF A3 AF ..
$0C:E868 .db $A3,$AF,$09,$A3,$81,$09,$06,$00 ; @414 Run 2 x $09; @416 Lit 7: 00 9A 9F A3 9E 9F ..
$0C:E870 .db $9A,$9F,$A3,$9E,$9F,$A3,$83,$72 ; @423 Run 4 x $72
$0C:E878 .db $04,$09,$A3,$72,$AC,$B0,$CC,$00 ; @427 Lit 5: 09 A3 72 AC B0; @432 Run 77 x $00
$0C:E880 .db $01,$60,$61,$A3,$00,$01,$60,$61 ; @509 Lit 2: 60 61; @511 Run 36 x $00; @547 Lit 2: 60 61
$0C:E888 .db $FF,$00,$95,$00,$01,$60,$61,$83 ; @549 Run 128 x $00; @677 Run 22 x $00; @699 Lit 2: 60 61; @701 Run 4 x $00
$0C:E890 .db $00,$01,$9A,$9C,$8C,$00,$02,$9A ; @705 Lit 2: 9A 9C; @707 Run 13 x $00; @720 Lit 3: 9A 9F A3
$0C:E898 .db $9F,$A3,$8C,$00,$02,$A8,$A1,$AA ; @723 Run 13 x $00; @736 Lit 3: A8 A1 AA
$0C:E8A0 .db $8C,$00,$03,$9F,$09,$AC,$9C,$8B ; @739 Run 13 x $00; @752 Lit 4: 9F 09 AC 9C; @756 Run 12 x $00
$0C:E8A8 .db $00,$04,$09,$B0,$B6,$AC,$9C,$8A ; @768 Lit 5: 09 B0 B6 AC 9C; @773 Run 11 x $00
$0C:E8B0 .db $00,$01,$B0,$9F,$81,$72,$03,$AA ; @784 Lit 2: B0 9F; @786 Run 2 x $72; @788 Lit 4: AA 9A 9B 9C
$0C:E8B8 .db $9A,$9B,$9C,$87,$00,$01,$9F,$A3 ; @792 Run 8 x $00; @800 Lit 2: 9F A3
$0C:E8C0 .db $81,$72,$03,$AA,$9E,$B8,$A3,$87 ; @802 Run 2 x $72; @804 Lit 4: AA 9E B8 A3; @808 Run 8 x $00
$0C:E8C8 .db $00,$07,$09,$BB,$09,$B6,$AF,$C0 ; @816 Lit 8: 09 BB 09 B6 AF C0 ..
$0C:E8D0 .db $9E,$AA,$87,$00,$08,$B0,$B7,$72 ; @824 Run 8 x $00; @832 Lit 9: B0 B7 72 AF A3 72 ..
$0C:E8D8 .db $AF,$A3,$72,$C0,$AF,$9C,$86,$00 ; @841 Run 7 x $00
$0C:E8E0 .db $08,$B7,$72,$AF,$A3,$AF,$C1,$AA ; @848 Lit 9: B7 72 AF A3 AF C1 ..
$0C:E8E8 .db $B8,$A3,$87,$00,$FF,$FF ; @857 Run 8 x $00; End marker $FFFF
;;; $E8EE..E8F6: Blank credits tilemap, RLE (all tile $00) ;;;
;; Sixteen bytes: 6 x (128 x $00), 97 x $00, $FFFF end. Not referenced by $93C1; probably an unused
;; blank scene.
$0C:E8EE .db $FF,$00,$FF,$00,$FF,$00,$FF,$00 ; @0 Run 128 x $00; @128 Run 128 x $00; @256 Run 128 x $00; @384 Run 128 x $00
$0C:E8F6 .db $FF,$00,$FF,$00,$E0,$00,$FF,$FF ; @512 Run 128 x $00; @640 Run 128 x $00; @768 Run 97 x $00; End marker $FFFF
;;; $E8FE..EC7E: Credits background tilemap, RLE (not in scene table) ;;;
;; RLE stream of 864 Map16 tile low bytes (same format as above). Not referenced by $93C1, probably
;; unused.
;; Streams at or above $E8FE would get Map16 high byte 1 from the loader at $93DD.
$0C:E8FE .db $0C,$00,$01,$02,$03,$04,$05,$06 ; @0 Lit 13: 00 01 02 03 04 05 ..
$0C:E906 .db $07,$08,$02,$09,$0A,$0B,$81,$01 ; @13 Run 2 x $01
$0C:E90E .db $0D,$0C,$0D,$01,$0E,$02,$0F,$10 ; @15 Lit 14: 0C 0D 01 0E 02 0F ..
$0C:E916 .db $06,$07,$11,$03,$12,$13,$14,$81 ; @29 Run 2 x $01
$0C:E91E .db $01,$13,$0C,$0D,$15,$0C,$03,$12 ; @31 Lit 20: 0C 0D 15 0C 03 12 ..
$0C:E926 .db $09,$06,$07,$08,$03,$16,$17,$18 ; (continues previous entry)
$0C:E92E .db $01,$15,$00,$19,$1A,$00,$81,$03 ; @51 Run 2 x $03
$0C:E936 .db $08,$1B,$06,$1C,$11,$02,$01,$05 ; @53 Lit 9: 1B 06 1C 11 02 01 ..
$0C:E93E .db $1D,$01,$81,$0D,$1E,$1E,$1F,$0D ; @62 Run 2 x $0D; @64 Lit 31: 1E 1F 0D 02 20 05 ..
$0C:E946 .db $02,$20,$05,$06,$21,$08,$0E,$01 ; (continues previous entry)
$0C:E94E .db $0B,$22,$15,$23,$19,$21,$1F,$22 ; (continues previous entry)
$0C:E956 .db $03,$0F,$10,$06,$21,$24,$0C,$09 ; (continues previous entry)
$0C:E95E .db $10,$0D,$23,$25,$81,$1E,$0D,$1F ; @95 Run 2 x $1E; @97 Lit 14: 1F 0D 0E 26 01 06 ..
$0C:E966 .db $0D,$0E,$26,$01,$06,$1E,$1F,$00 ; (continues previous entry)
$0C:E96E .db $27,$01,$0D,$28,$1E,$81,$21,$0C ; @111 Run 2 x $21; @113 Lit 13: 1F 0D 0C 12 09 29 ..
$0C:E976 .db $1F,$0D,$0C,$12,$09,$29,$2A,$2B ; (continues previous entry)
$0C:E97E .db $0D,$0E,$01,$22,$28,$82,$21,$06 ; @126 Run 3 x $21; @129 Lit 7: 1F 22 00 02 05 18 ..
$0C:E986 .db $1F,$22,$00,$02,$05,$18,$22,$81 ; @136 Run 2 x $0D
$0C:E98E .db $0D,$0C,$0C,$01,$0D,$2C,$1E,$2D ; @138 Lit 13: 0C 01 0D 2C 1E 2D ..
$0C:E996 .db $1E,$2E,$23,$19,$03,$06,$18,$82 ; @151 Run 3 x $0D
$0C:E99E .db $0D,$0C,$00,$01,$22,$2F,$21,$1F ; @154 Lit 13: 00 01 22 2F 21 1F ..
$0C:E9A6 .db $21,$30,$31,$21,$02,$06,$1D,$82 ; @167 Run 3 x $0D
$0C:E9AE .db $0D,$05,$22,$15,$23,$32,$1E,$1F ; @170 Lit 6: 22 15 23 32 1E 1F
$0C:E9B6 .db $81,$21,$06,$07,$1E,$03,$06,$19 ; @176 Run 2 x $21; @178 Lit 7: 07 1E 03 06 19 1A ..
$0C:E9BE .db $1A,$22,$82,$0D,$00,$28,$81,$21 ; @185 Run 3 x $0D; @188 Lit 1: 28; @189 Run 2 x $21
$0C:E9C6 .db $00,$1F,$81,$21,$05,$1C,$21,$03 ; @191 Lit 1: 1F; @192 Run 2 x $21; @194 Lit 6: 1C 21 03 0B 21 1F
$0C:E9CE .db $0B,$21,$1F,$82,$0D,$01,$22,$28 ; @200 Run 3 x $0D; @203 Lit 2: 22 28
$0C:E9D6 .db $81,$21,$00,$33,$82,$21,$09,$2D ; @205 Run 2 x $21; @207 Lit 1: 33; @208 Run 3 x $21; @211 Lit 10: 2D 0E 06 1E 2E 0D ..
$0C:E9DE .db $0E,$06,$1E,$2E,$0D,$23,$19,$34 ; (continues previous entry)
$0C:E9E6 .db $28,$81,$21,$0E,$1E,$21,$35,$21 ; @221 Run 2 x $21; @223 Lit 15: 1E 21 35 21 1F 0C ..
$0C:E9EE .db $1F,$0C,$06,$21,$08,$0D,$28,$21 ; (continues previous entry)
$0C:E9F6 .db $01,$36,$37,$81,$21,$7F,$38,$39 ; @238 Run 2 x $21; @240 Lit 128: 38 39 1E 1F 0C 0B ..
$0C:E9FE .db $1E,$1F,$0C,$0B,$21,$30,$1A,$2C ; (continues previous entry)
$0C:EA06 .db $1E,$01,$3A,$2F,$1E,$2D,$11,$36 ; (continues previous entry)
$0C:EA0E .db $2A,$2B,$3B,$06,$1E,$35,$3C,$3D ; (continues previous entry)
$0C:EA16 .db $21,$01,$18,$3E,$21,$1F,$3F,$22 ; (continues previous entry)
$0C:EA1E .db $34,$40,$02,$06,$2A,$39,$1C,$21 ; (continues previous entry)
$0C:EA26 .db $41,$01,$42,$36,$2A,$2B,$1F,$40 ; (continues previous entry)
$0C:EA2E .db $01,$0C,$03,$43,$3A,$28,$21,$35 ; (continues previous entry)
$0C:EA36 .db $08,$01,$0B,$19,$1A,$22,$1F,$44 ; (continues previous entry)
$0C:EA3E .db $01,$44,$02,$45,$18,$28,$1E,$07 ; (continues previous entry)
$0C:EA46 .db $08,$01,$06,$1E,$1F,$0D,$33,$02 ; (continues previous entry)
$0C:EA4E .db $01,$03,$46,$01,$18,$28,$21,$07 ; (continues previous entry)
$0C:EA56 .db $30,$01,$06,$2A,$2B,$40,$21,$03 ; (continues previous entry)
$0C:EA5E .db $01,$03,$47,$01,$42,$36,$2A,$07 ; (continues previous entry)
$0C:EA66 .db $1E,$01,$0B,$40,$3A,$0C,$1E,$03 ; (continues previous entry)
$0C:EA6E .db $01,$46,$04,$01,$43,$3A,$34,$48 ; (continues previous entry)
$0C:EA76 .db $37,$01,$49,$3B,$18,$44,$80,$2A ; @368 Run 1 x $2A
$0C:EA7E .db $12,$02,$4A,$4B,$4C,$4D,$4B,$18 ; @369 Lit 19: 02 4A 4B 4C 4D 4B ..
$0C:EA86 .db $01,$2B,$3E,$4D,$4B,$46,$42,$03 ; (continues previous entry)
$0C:EA8E .db $34,$46,$49,$4E,$81,$46,$0F,$4E ; @388 Run 2 x $46; @390 Lit 16: 4E 4F 01 22 40 50 ..
$0C:EA96 .db $4F,$01,$22,$40,$50,$4E,$45,$49 ; (continues previous entry)
$0C:EA9E .db $02,$4D,$4B,$45,$49,$26,$45,$81 ; @406 Run 2 x $49
$0C:EAA6 .db $49,$0D,$4D,$3A,$0C,$45,$43,$4A ; @408 Lit 14: 4D 3A 0C 45 43 4A ..
$0C:EAAE .db $26,$03,$46,$13,$01,$26,$47,$4A ; (continues previous entry)
$0C:EAB6 .db $81,$26,$31,$02,$4F,$0C,$4D,$4B ; @422 Run 2 x $26; @424 Lit 50: 02 4F 0C 4D 4B 49 ..
$0C:EABE .db $49,$26,$02,$04,$09,$0A,$04,$0F ; (continues previous entry)
$0C:EAC6 .db $01,$12,$26,$05,$01,$0B,$06,$21 ; (continues previous entry)
$0C:EACE .db $07,$21,$01,$0F,$27,$13,$0F,$27 ; (continues previous entry)
$0C:EAD6 .db $09,$20,$05,$06,$01,$06,$0B,$21 ; (continues previous entry)
$0C:EADE .db $07,$38,$15,$27,$16,$13,$51,$02 ; (continues previous entry)
$0C:EAE6 .db $05,$04,$0B,$06,$09,$81,$06,$7F ; @474 Run 2 x $06; @476 Lit 128: 21 1C 11 0D 03 01 ..
$0C:EAEE .db $21,$1C,$11,$0D,$03,$01,$13,$06 ; (continues previous entry)
$0C:EAF6 .db $03,$06,$0F,$10,$0B,$12,$06,$0B ; (continues previous entry)
$0C:EAFE .db $52,$21,$24,$23,$03,$01,$17,$29 ; (continues previous entry)
$0C:EB06 .db $16,$0B,$27,$01,$29,$03,$0B,$06 ; (continues previous entry)
$0C:EB0E .db $36,$2A,$2B,$28,$03,$01,$51,$1D ; (continues previous entry)
$0C:EB16 .db $01,$29,$0E,$09,$18,$53,$49,$06 ; (continues previous entry)
$0C:EB1E .db $23,$19,$1A,$28,$03,$09,$06,$0D ; (continues previous entry)
$0C:EB26 .db $01,$1D,$00,$27,$18,$0C,$26,$14 ; (continues previous entry)
$0C:EB2E .db $28,$21,$1F,$28,$02,$12,$06,$22 ; (continues previous entry)
$0C:EB36 .db $15,$0D,$22,$16,$1D,$0C,$26,$18 ; (continues previous entry)
$0C:EB3E .db $2C,$21,$1F,$28,$53,$02,$06,$0D ; (continues previous entry)
$0C:EB46 .db $23,$19,$1A,$01,$22,$00,$27,$18 ; (continues previous entry)
$0C:EB4E .db $54,$1E,$55,$2C,$0C,$03,$14,$0D ; (continues previous entry)
$0C:EB56 .db $28,$1E,$1F,$15,$23,$19,$03,$18 ; (continues previous entry)
$0C:EB5E .db $54,$21,$24,$2F,$0C,$02,$18,$0D ; (continues previous entry)
$0C:EB66 .db $2C,$21,$1F,$23,$25,$21,$16,$1D ; (continues previous entry)
$0C:EB6E .db $80,$54,$0A,$41,$2B,$2F,$00,$03 ; @604 Run 1 x $54; @605 Lit 11: 41 2B 2F 00 03 18 ..
$0C:EB76 .db $18,$0D,$2F,$1E,$33,$31,$81,$21 ; @616 Run 2 x $21
$0C:EB7E .db $0A,$01,$55,$2F,$08,$23,$32,$1A ; @618 Lit 11: 01 55 2F 08 23 32 ..
$0C:EB86 .db $16,$1D,$22,$3E,$81,$21,$00,$07 ; @629 Run 2 x $21; @631 Lit 1: 07
$0C:EB8E .db $81,$21,$07,$01,$24,$54,$08,$28 ; @632 Run 2 x $21; @634 Lit 8: 01 24 54 08 28 21 ..
$0C:EB96 .db $21,$1F,$01,$81,$0D,$00,$28,$81 ; @642 Run 2 x $0D; @644 Lit 1: 28; @645 Run 2 x $1E
$0C:EB9E .db $1E,$0A,$1C,$21,$2D,$01,$3A,$54 ; @647 Lit 11: 1C 21 2D 01 3A 54 ..
$0C:EBA6 .db $08,$28,$21,$1F,$15,$81,$0D,$01 ; @658 Run 2 x $0D; @660 Lit 2: 36 52
$0C:EBAE .db $36,$52,$81,$21,$08,$2D,$2B,$01 ; @662 Run 2 x $21; @664 Lit 9: 2D 2B 01 18 3E 24 ..
$0C:EBB6 .db $18,$3E,$24,$28,$21,$2B,$81,$22 ; @673 Run 2 x $22
$0C:EBBE .db $39,$0D,$34,$36,$52,$21,$2E,$40 ; @675 Lit 58: 0D 34 36 52 21 2E ..
$0C:EBC6 .db $4A,$18,$23,$19,$31,$21,$22,$34 ; (continues previous entry)
$0C:EBCE .db $0D,$2C,$01,$55,$28,$1E,$08,$0C ; (continues previous entry)
$0C:EBD6 .db $49,$18,$28,$21,$07,$21,$40,$01 ; (continues previous entry)
$0C:EBDE .db $0D,$54,$01,$24,$28,$21,$11,$0C ; (continues previous entry)
$0C:EBE6 .db $45,$4F,$28,$21,$1C,$21,$0C,$4D ; (continues previous entry)
$0C:EBEE .db $3A,$3E,$4D,$3A,$2C,$21,$3F,$44 ; (continues previous entry)
$0C:EBF6 .db $01,$0B,$28,$82,$21,$16,$3B,$46 ; @733 Run 3 x $21; @736 Lit 23: 3B 46 18 40 02 42 ..
$0C:EBFE .db $18,$40,$02,$42,$2F,$1E,$33,$02 ; (continues previous entry)
$0C:EC06 .db $01,$06,$36,$52,$21,$56,$46,$45 ; (continues previous entry)
$0C:EC0E .db $18,$0C,$03,$06,$54,$81,$21,$2F ; @759 Run 2 x $21; @761 Lit 48: 02 01 49 3A 28 21 ..
$0C:EC16 .db $02,$01,$49,$3A,$28,$21,$07,$45 ; (continues previous entry)
$0C:EC1E .db $01,$4F,$0C,$02,$06,$57,$35,$1E ; (continues previous entry)
$0C:EC26 .db $03,$4D,$4B,$4F,$25,$41,$07,$4D ; (continues previous entry)
$0C:EC2E .db $01,$49,$3B,$03,$0B,$58,$07,$37 ; (continues previous entry)
$0C:EC36 .db $03,$02,$13,$0B,$1E,$11,$07,$46 ; (continues previous entry)
$0C:EC3E .db $4D,$4B,$50,$03,$06,$36,$39,$3E ; (continues previous entry)
$0C:EC46 .db $81,$03,$0B,$4E,$06,$21,$08,$48 ; @809 Run 2 x $03; @811 Lit 12: 4E 06 21 08 48 47 ..
$0C:EC4E .db $47,$50,$4E,$47,$02,$06,$22,$81 ; @823 Run 2 x $36
$0C:EC56 .db $36,$1F,$03,$02,$49,$0B,$1E,$3F ; @825 Lit 32: 03 02 49 0B 1E 3F ..
$0C:EC5E .db $2B,$04,$26,$49,$4C,$46,$06,$40 ; (continues previous entry)
$0C:EC66 .db $3A,$34,$02,$03,$26,$06,$2A,$2B ; (continues previous entry)
$0C:EC6E .db $40,$04,$26,$47,$46,$45,$06,$44 ; (continues previous entry)
$0C:EC76 .db $42,$01,$81,$46,$04,$26,$0B,$3A ; @857 Run 2 x $46; @859 Lit 5: 26 0B 3A 34 0C
$0C:EC7E .db $34,$0C,$FF,$FF ; End marker $FFFF
;;; $EC82..EF7A: Credits background tilemap 2, RLE ;;;
;; Scene 2 of the credits background pointer table $93C1: 864 Map16 tile low bytes, RLE as above.
;; Pointer >= $E8FE, so the loader fills the high-byte plane $7EBD00/$7EBF00 with 1 (tiles $100+).
$0C:EC82 .db $86,$59,$01,$5A,$5B,$87,$59,$01 ; @0 Run 7 x $59; @7 Lit 2: 5A 5B; @9 Run 8 x $59; @17 Lit 2: 5A 5B
$0C:EC8A .db $5A,$5B,$94,$59,$04,$5C,$5D,$59 ; @19 Run 21 x $59; @40 Lit 5: 5C 5D 59 5A 5B
$0C:EC92 .db $5A,$5B,$87,$59,$05,$5C,$5D,$5C ; @45 Run 8 x $59; @53 Lit 6: 5C 5D 5C 5E 5F 5D
$0C:EC9A .db $5E,$5F,$5D,$88,$59,$03,$5C,$5E ; @59 Run 9 x $59; @68 Lit 4: 5C 5E 5F 5E
$0C:ECA2 .db $5F,$5E,$81,$60,$03,$5F,$5D,$5C ; @72 Run 2 x $60; @74 Lit 4: 5F 5D 5C 5D
$0C:ECAA .db $5D,$82,$59,$06,$5C,$5D,$5C,$5E ; @78 Run 3 x $59; @81 Lit 7: 5C 5D 5C 5E 60 61 ..
$0C:ECB2 .db $60,$61,$62,$81,$60,$04,$63,$5F ; @88 Run 2 x $60; @90 Lit 5: 63 5F 5E 5F 5D
$0C:ECBA .db $5E,$5F,$5D,$81,$5C,$07,$5E,$5F ; @95 Run 2 x $5C; @97 Lit 8: 5E 5F 5E 60 61 64 ..
$0C:ECC2 .db $5E,$60,$61,$64,$65,$62,$84,$60 ; @105 Run 5 x $60
$0C:ECCA .db $00,$5F,$81,$5E,$01,$66,$63,$81 ; @110 Lit 1: 5F; @111 Run 2 x $5E; @113 Lit 2: 66 63; @115 Run 2 x $60
$0C:ECD2 .db $60,$04,$5F,$5D,$5C,$5E,$66,$86 ; @117 Lit 5: 5F 5D 5C 5E 66; @122 Run 7 x $60
$0C:ECDA .db $60,$01,$67,$68,$82,$60,$01,$5F ; @129 Lit 2: 67 68; @131 Run 3 x $60; @134 Lit 2: 5F 5E
$0C:ECE2 .db $5E,$87,$60,$05,$67,$69,$6A,$68 ; @136 Run 8 x $60; @144 Lit 6: 67 69 6A 68 67 68
$0C:ECEA .db $67,$68,$81,$60,$01,$67,$68,$83 ; @150 Run 2 x $60; @152 Lit 2: 67 68; @154 Run 4 x $60
$0C:ECF2 .db $60,$14,$67,$68,$69,$6B,$6C,$6A ; @158 Lit 21: 67 68 69 6B 6C 6A ..
$0C:ECFA .db $69,$6A,$68,$67,$69,$6A,$68,$67 ; (continues previous entry)
$0C:ED02 .db $68,$67,$69,$6A,$6B,$6C,$6D,$82 ; @179 Run 3 x $6B
$0C:ED0A .db $6B,$01,$6A,$69,$81,$6B,$03,$6A ; @182 Lit 2: 6A 69; @184 Run 2 x $6B; @186 Lit 4: 6A 69 6A 69
$0C:ED12 .db $69,$6A,$69,$81,$6B,$00,$6E,$82 ; @190 Run 2 x $6B; @192 Lit 1: 6E; @193 Run 3 x $6B
$0C:ED1A .db $6B,$04,$6F,$6E,$6B,$6C,$6D,$81 ; @196 Lit 5: 6F 6E 6B 6C 6D; @201 Run 2 x $6B
$0C:ED22 .db $6B,$20,$70,$71,$70,$71,$6B,$72 ; @203 Lit 33: 70 71 70 71 6B 72 ..
$0C:ED2A .db $6E,$6B,$6F,$73,$72,$6E,$6B,$6C ; (continues previous entry)
$0C:ED32 .db $6B,$70,$74,$75,$74,$75,$71,$67 ; (continues previous entry)
$0C:ED3A .db $69,$6C,$6A,$68,$60,$72,$6E,$6B ; (continues previous entry)
$0C:ED42 .db $70,$74,$76,$82,$77,$01,$75,$69 ; @236 Run 3 x $77; @239 Lit 2: 75 69
$0C:ED4A .db $81,$6B,$07,$6F,$73,$60,$67,$69 ; @241 Run 2 x $6B; @243 Lit 8: 6F 73 60 67 69 6B ..
$0C:ED52 .db $6B,$78,$79,$82,$77,$01,$7A,$79 ; @251 Run 3 x $77; @254 Lit 2: 7A 79
$0C:ED5A .db $82,$6B,$03,$6A,$68,$67,$69,$81 ; @256 Run 3 x $6B; @259 Lit 4: 6A 68 67 69; @263 Run 2 x $6B
$0C:ED62 .db $6B,$06,$70,$74,$77,$76,$7A,$7B ; @265 Lit 7: 70 74 77 76 7A 7B ..
$0C:ED6A .db $78,$81,$6B,$03,$70,$71,$70,$71 ; @272 Run 2 x $6B; @274 Lit 4: 70 71 70 71
$0C:ED72 .db $81,$6B,$10,$70,$74,$77,$76,$7C ; @278 Run 2 x $6B; @280 Lit 17: 70 74 77 76 7C 75 ..
$0C:ED7A .db $75,$71,$70,$6B,$70,$74,$75,$74 ; (continues previous entry)
$0C:ED82 .db $75,$71,$70,$74,$84,$77,$03,$75 ; @297 Run 5 x $77; @302 Lit 4: 75 74 70 74
$0C:ED8A .db $74,$70,$74,$83,$77,$01,$75,$74 ; @306 Run 4 x $77; @310 Lit 2: 75 74
$0C:ED92 .db $86,$77,$01,$7A,$74,$82,$77,$01 ; @312 Run 7 x $77; @319 Lit 2: 7A 74; @321 Run 3 x $77; @324 Lit 2: 76 7C
$0C:ED9A .db $76,$7C,$83,$77,$01,$7D,$7E,$82 ; @326 Run 4 x $77; @330 Lit 2: 7D 7E; @332 Run 3 x $77
$0C:EDA2 .db $77,$01,$75,$7E,$83,$77,$01,$76 ; @335 Lit 2: 75 7E; @337 Run 4 x $77; @341 Lit 2: 76 7C
$0C:EDAA .db $7C,$81,$77,$03,$7D,$7F,$80,$7E ; @343 Run 2 x $77; @345 Lit 4: 7D 7F 80 7E
$0C:EDB2 .db $82,$77,$03,$80,$7E,$7D,$7E,$83 ; @349 Run 3 x $77; @352 Lit 4: 80 7E 7D 7E; @356 Run 4 x $77
$0C:EDBA .db $77,$05,$7D,$7F,$81,$82,$80,$7E ; @360 Lit 6: 7D 7F 81 82 80 7E
$0C:EDC2 .db $81,$77,$09,$83,$80,$7F,$80,$7E ; @366 Run 2 x $77; @368 Lit 10: 83 80 7F 80 7E 7D ..
$0C:EDCA .db $7D,$7E,$77,$84,$85,$82,$83,$02 ; @378 Run 3 x $83; @381 Lit 3: 80 7E 77
$0C:EDD2 .db $80,$7E,$77,$81,$83,$12,$82,$83 ; @384 Run 2 x $83; @386 Lit 19: 82 83 80 7F 80 7E ..
$0C:EDDA .db $80,$7F,$80,$7E,$77,$84,$85,$86 ; (continues previous entry)
$0C:EDE2 .db $85,$86,$87,$77,$83,$81,$83,$86 ; (continues previous entry)
$0C:EDEA .db $85,$81,$83,$08,$80,$7E,$77,$84 ; @405 Run 2 x $83; @407 Lit 9: 80 7E 77 84 87 84 ..
$0C:EDF2 .db $87,$84,$87,$77,$76,$81,$83,$07 ; @416 Run 2 x $83; @418 Lit 8: 86 87 84 85 83 82 ..
$0C:EDFA .db $86,$87,$84,$85,$83,$82,$80,$7E ; (continues previous entry)
$0C:EE02 .db $85,$77,$8F,$59,$01,$5A,$5B,$85 ; @426 Run 6 x $77; @432 Run 16 x $59; @448 Lit 2: 5A 5B; @450 Run 6 x $59
$0C:EE0A .db $59,$01,$5A,$5B,$8A,$59,$01,$5A ; @456 Lit 2: 5A 5B; @458 Run 11 x $59; @469 Lit 2: 5A 5B
$0C:EE12 .db $5B,$89,$59,$03,$5C,$5D,$5C,$5D ; @471 Run 10 x $59; @481 Lit 4: 5C 5D 5C 5D
$0C:EE1A .db $8A,$59,$07,$5C,$5E,$5F,$5E,$5F ; @485 Run 11 x $59; @496 Lit 8: 5C 5E 5F 5E 5F 5D ..
$0C:EE22 .db $5D,$5C,$5D,$85,$59,$02,$5A,$5B ; @504 Run 6 x $59; @510 Lit 3: 5A 5B 5E
$0C:EE2A .db $5E,$82,$60,$04,$66,$5F,$5E,$5F ; @513 Run 3 x $60; @516 Lit 5: 66 5F 5E 5F 5D
$0C:EE32 .db $5D,$81,$59,$01,$5C,$5D,$82,$59 ; @521 Run 2 x $59; @523 Lit 2: 5C 5D; @525 Run 3 x $59
$0C:EE3A .db $81,$60,$01,$61,$62,$81,$60,$07 ; @528 Run 2 x $60; @530 Lit 2: 61 62; @532 Run 2 x $60; @534 Lit 8: 63 60 5F 5D 5C 5E ..
$0C:EE42 .db $63,$60,$5F,$5D,$5C,$5E,$5F,$5D ; (continues previous entry)
$0C:EE4A .db $81,$59,$06,$60,$61,$64,$65,$62 ; @542 Run 2 x $59; @544 Lit 7: 60 61 64 65 62 61 ..
$0C:EE52 .db $61,$62,$81,$60,$08,$5F,$5E,$60 ; @551 Run 2 x $60; @553 Lit 9: 5F 5E 60 63 5F 5D ..
$0C:EE5A .db $63,$5F,$5D,$5C,$61,$64,$81,$59 ; @562 Run 2 x $59
$0C:EE62 .db $05,$65,$64,$65,$62,$60,$66,$83 ; @564 Lit 6: 65 64 65 62 60 66; @570 Run 4 x $60
$0C:EE6A .db $60,$05,$5F,$5E,$5F,$5D,$5C,$5D ; @574 Lit 6: 5F 5E 5F 5D 5C 5D
$0C:EE72 .db $81,$59,$01,$5C,$5E,$81,$60,$01 ; @580 Run 2 x $59; @582 Lit 2: 5C 5E; @584 Run 2 x $60; @586 Lit 2: 67 68
$0C:EE7A .db $67,$68,$83,$60,$19,$68,$5F,$5E ; @588 Run 4 x $60; @592 Lit 26: 68 5F 5E 5F 5D 5C ..
$0C:EE82 .db $5F,$5D,$5C,$5E,$67,$68,$67,$69 ; (continues previous entry)
$0C:EE8A .db $6A,$68,$67,$68,$67,$6A,$68,$66 ; (continues previous entry)
$0C:EE92 .db $60,$67,$68,$67,$69,$6A,$69,$81 ; @618 Run 2 x $6B
$0C:EE9A .db $6B,$0F,$6A,$69,$6A,$69,$6D,$6A ; @620 Lit 16: 6A 69 6A 69 6D 6A ..
$0C:EEA2 .db $68,$67,$69,$6A,$69,$6B,$70,$71 ; (continues previous entry)
$0C:EEAA .db $6B,$6D,$82,$6B,$00,$6F,$81,$6B ; @636 Run 3 x $6B; @639 Lit 1: 6F; @640 Run 2 x $6B
$0C:EEB2 .db $10,$6A,$69,$6C,$6D,$6B,$70,$74 ; @642 Lit 17: 6A 69 6C 6D 6B 70 ..
$0C:EEBA .db $75,$71,$70,$71,$6B,$6F,$73,$71 ; (continues previous entry)
$0C:EEC2 .db $70,$71,$83,$6B,$0C,$78,$79,$76 ; @659 Run 4 x $6B; @663 Lit 13: 78 79 76 75 74 75 ..
$0C:EECA .db $75,$74,$75,$71,$6A,$68,$75,$74 ; (continues previous entry)
$0C:EED2 .db $75,$71,$83,$6B,$0E,$78,$79,$7A ; @676 Run 4 x $6B; @680 Lit 15: 78 79 7A 79 7A 7B ..
$0C:EEDA .db $79,$7A,$7B,$6B,$6A,$79,$77,$7C ; (continues previous entry)
$0C:EEE2 .db $75,$71,$6B,$6C,$81,$6B,$08,$78 ; @695 Run 2 x $6B; @697 Lit 9: 78 7B 78 7B 6B 70 ..
$0C:EEEA .db $7B,$78,$7B,$6B,$70,$71,$74,$76 ; (continues previous entry)
$0C:EEF2 .db $81,$77,$04,$75,$71,$70,$71,$6D ; @706 Run 2 x $77; @708 Lit 5: 75 71 70 71 6D
$0C:EEFA .db $82,$6B,$05,$70,$71,$78,$7B,$7A ; @713 Run 3 x $6B; @716 Lit 6: 70 71 78 7B 7A 79
$0C:EF02 .db $79,$82,$77,$0D,$75,$74,$75,$71 ; @722 Run 3 x $77; @725 Lit 14: 75 74 75 71 70 71 ..
$0C:EF0A .db $70,$71,$70,$74,$75,$71,$6B,$7B ; (continues previous entry)
$0C:EF12 .db $78,$79,$84,$77,$06,$75,$74,$75 ; @739 Run 5 x $77; @744 Lit 7: 75 74 75 74 77 7C ..
$0C:EF1A .db $74,$77,$7C,$75,$81,$71,$04,$6B ; @751 Run 2 x $71; @753 Lit 5: 6B 78 79 77 7C
$0C:EF22 .db $78,$79,$77,$7C,$88,$77,$81,$75 ; @758 Run 9 x $77; @767 Run 2 x $75
$0C:EF2A .db $05,$71,$70,$74,$77,$76,$7C,$87 ; @769 Lit 6: 71 70 74 77 76 7C; @775 Run 8 x $77
$0C:EF32 .db $77,$03,$7D,$77,$75,$74,$87,$77 ; @783 Lit 4: 7D 77 75 74; @787 Run 8 x $77
$0C:EF3A .db $07,$76,$7C,$77,$7D,$7F,$77,$7D ; @795 Lit 8: 76 7C 77 7D 7F 77 ..
$0C:EF42 .db $7E,$83,$77,$01,$7D,$7E,$84,$77 ; @803 Run 4 x $77; @807 Lit 2: 7D 7E; @809 Run 5 x $77
$0C:EF4A .db $0B,$84,$85,$77,$84,$87,$77,$7D ; @814 Lit 12: 84 85 77 84 87 77 ..
$0C:EF52 .db $7E,$7D,$7F,$80,$7E,$83,$77,$02 ; @826 Run 4 x $77; @830 Lit 3: 7D 7F 7C
$0C:EF5A .db $7D,$7F,$7C,$81,$77,$07,$7D,$7F ; @833 Run 2 x $77; @835 Lit 8: 7D 7F 80 7F 83 82 ..
$0C:EF62 .db $80,$7F,$83,$82,$80,$7E,$81,$77 ; @843 Run 2 x $77
$0C:EF6A .db $02,$7D,$7F,$83,$81,$77,$03,$7D ; @845 Lit 3: 7D 7F 83; @848 Run 2 x $77; @850 Lit 4: 7D 7F 81 82
$0C:EF72 .db $7F,$81,$82,$83,$83,$05,$80,$7E ; @854 Run 4 x $83; @858 Lit 6: 80 7E 77 84 85 83
$0C:EF7A .db $77,$84,$85,$83,$FF,$FF ; End marker $FFFF
;;; $EF80..F170: Credits background tilemap, RLE (not in scene table) ;;;
;; RLE stream of 864 Map16 tile low bytes, same format. Not referenced by $93C1, probably unused.
$0C:EF80 .db $86,$83,$00,$88,$81,$83,$00,$88 ; @0 Run 7 x $83; @7 Lit 1: 88; @8 Run 2 x $83; @10 Lit 1: 88
$0C:EF88 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @11 Run 12 x $83; @23 Lit 1: 88; @24 Run 2 x $83; @26 Lit 1: 88
$0C:EF90 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @27 Run 12 x $83; @39 Lit 1: 88; @40 Run 2 x $83; @42 Lit 1: 88
$0C:EF98 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @43 Run 12 x $83; @55 Lit 1: 88; @56 Run 2 x $83; @58 Lit 1: 88
$0C:EFA0 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @59 Run 12 x $83; @71 Lit 1: 88; @72 Run 2 x $83; @74 Lit 1: 88
$0C:EFA8 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @75 Run 12 x $83; @87 Lit 1: 88; @88 Run 2 x $83; @90 Lit 1: 88
$0C:EFB0 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @91 Run 12 x $83; @103 Lit 1: 88; @104 Run 2 x $83; @106 Lit 1: 88
$0C:EFB8 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @107 Run 12 x $83; @119 Lit 1: 88; @120 Run 2 x $83; @122 Lit 1: 88
$0C:EFC0 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @123 Run 12 x $83; @135 Lit 1: 88; @136 Run 2 x $83; @138 Lit 1: 88
$0C:EFC8 .db $88,$83,$07,$89,$83,$8A,$8B,$8C ; @139 Run 9 x $83; @148 Lit 8: 89 83 8A 8B 8C 83 ..
$0C:EFD0 .db $83,$8B,$8C,$86,$83,$0A,$8D,$8E ; @156 Run 7 x $83; @163 Lit 11: 8D 8E 8F 90 91 92 ..
$0C:EFD8 .db $8F,$90,$91,$92,$8A,$91,$92,$8A ; (continues previous entry)
$0C:EFE0 .db $8C,$83,$83,$0D,$8D,$8C,$93,$90 ; @174 Run 4 x $83; @178 Lit 14: 8D 8C 93 90 94 95 ..
$0C:EFE8 .db $94,$95,$96,$97,$95,$96,$97,$8C ; (continues previous entry)
$0C:EFF0 .db $89,$83,$82,$98,$1C,$99,$9A,$9B ; @192 Run 3 x $98; @195 Lit 29: 99 9A 9B 9C 9D 9E ..
$0C:EFF8 .db $9C,$9D,$9E,$9C,$9D,$9E,$9F,$A0 ; (continues previous entry)
$0C:F000 .db $A1,$98,$83,$89,$8A,$90,$A2,$A3 ; (continues previous entry)
$0C:F008 .db $A4,$A5,$A4,$A6,$A5,$A4,$A6,$96 ; (continues previous entry)
$0C:F010 .db $A7,$8C,$82,$98,$5C,$99,$9A,$9B ; @224 Run 3 x $98; @227 Lit 93: 99 9A 9B 9C A8 9E ..
$0C:F018 .db $9C,$A8,$9E,$9C,$A8,$9E,$9F,$A0 ; (continues previous entry)
$0C:F020 .db $A1,$98,$A9,$83,$8D,$8E,$A2,$A3 ; (continues previous entry)
$0C:F028 .db $A4,$AA,$A6,$AB,$AA,$A6,$AB,$96 ; (continues previous entry)
$0C:F030 .db $AC,$8F,$AD,$AE,$8D,$AD,$AE,$AF ; (continues previous entry)
$0C:F038 .db $A3,$B0,$AB,$B1,$B0,$B2,$AF,$AD ; (continues previous entry)
$0C:F040 .db $AE,$A9,$B3,$B4,$92,$B3,$B4,$92 ; (continues previous entry)
$0C:F048 .db $90,$B5,$B6,$B1,$B5,$B6,$B1,$B3 ; (continues previous entry)
$0C:F050 .db $B4,$B7,$B8,$B9,$B7,$B8,$B9,$92 ; (continues previous entry)
$0C:F058 .db $8C,$88,$97,$8E,$88,$97,$8E,$B8 ; (continues previous entry)
$0C:F060 .db $B9,$8C,$BA,$8C,$B7,$93,$A9,$8D ; (continues previous entry)
$0C:F068 .db $8C,$88,$8A,$A9,$88,$8A,$A9,$83 ; (continues previous entry)
$0C:F070 .db $93,$8C,$8F,$98,$8F,$B5,$8F,$88 ; @320 Run 16 x $98; @336 Run 16 x $B5; @352 Run 16 x $88
$0C:F078 .db $C6,$83,$00,$88,$81,$83,$00,$88 ; @368 Run 71 x $83; @439 Lit 1: 88; @440 Run 2 x $83; @442 Lit 1: 88
$0C:F080 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @443 Run 12 x $83; @455 Lit 1: 88; @456 Run 2 x $83; @458 Lit 1: 88
$0C:F088 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @459 Run 12 x $83; @471 Lit 1: 88; @472 Run 2 x $83; @474 Lit 1: 88
$0C:F090 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @475 Run 12 x $83; @487 Lit 1: 88; @488 Run 2 x $83; @490 Lit 1: 88
$0C:F098 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @491 Run 12 x $83; @503 Lit 1: 88; @504 Run 2 x $83; @506 Lit 1: 88
$0C:F0A0 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @507 Run 12 x $83; @519 Lit 1: 88; @520 Run 2 x $83; @522 Lit 1: 88
$0C:F0A8 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @523 Run 12 x $83; @535 Lit 1: 88; @536 Run 2 x $83; @538 Lit 1: 88
$0C:F0B0 .db $8B,$83,$00,$88,$81,$83,$00,$88 ; @539 Run 12 x $83; @551 Lit 1: 88; @552 Run 2 x $83; @554 Lit 1: 88
$0C:F0B8 .db $8B,$83,$03,$88,$83,$93,$88,$88 ; @555 Run 12 x $83; @567 Lit 4: 88 83 93 88; @571 Run 9 x $83
$0C:F0C0 .db $83,$07,$89,$83,$8A,$8B,$8C,$83 ; @580 Lit 8: 89 83 8A 8B 8C 83 ..
$0C:F0C8 .db $8B,$8C,$86,$83,$0C,$8D,$8E,$8F ; @588 Run 7 x $83; @595 Lit 13: 8D 8E 8F 90 91 90 ..
$0C:F0D0 .db $90,$91,$90,$BB,$91,$92,$8A,$8C ; (continues previous entry)
$0C:F0D8 .db $83,$89,$81,$83,$0D,$8D,$8A,$8E ; @608 Run 2 x $83; @610 Lit 14: 8D 8A 8E A2 A3 95 ..
$0C:F0E0 .db $A2,$A3,$95,$BC,$A3,$95,$BD,$BC ; (continues previous entry)
$0C:F0E8 .db $B1,$8F,$8C,$82,$98,$1C,$99,$9A ; @624 Run 3 x $98; @627 Lit 29: 99 9A 9B 9C 9D 9E ..
$0C:F0F0 .db $9B,$9C,$9D,$9E,$9C,$9D,$9E,$9F ; (continues previous entry)
$0C:F0F8 .db $A0,$A1,$98,$83,$89,$8A,$90,$A2 ; (continues previous entry)
$0C:F100 .db $A3,$A4,$A5,$A4,$A6,$A5,$A4,$A6 ; (continues previous entry)
$0C:F108 .db $96,$A7,$8C,$82,$98,$5C,$99,$9A ; @656 Run 3 x $98; @659 Lit 93: 99 9A 9B 9C A8 9E ..
$0C:F110 .db $9B,$9C,$A8,$9E,$9C,$A8,$9E,$9F ; (continues previous entry)
$0C:F118 .db $A0,$A1,$98,$A9,$83,$8D,$8E,$A2 ; (continues previous entry)
$0C:F120 .db $A3,$A4,$AA,$A6,$AB,$AA,$A4,$A6 ; (continues previous entry)
$0C:F128 .db $96,$AC,$8F,$AD,$AE,$8D,$AD,$AE ; (continues previous entry)
$0C:F130 .db $AF,$A3,$B0,$BE,$BC,$B0,$BE,$BC ; (continues previous entry)
$0C:F138 .db $AD,$AE,$A9,$B3,$B4,$B7,$B3,$B4 ; (continues previous entry)
$0C:F140 .db $92,$90,$B5,$B6,$B1,$B5,$B6,$B1 ; (continues previous entry)
$0C:F148 .db $B3,$B4,$B7,$B8,$B9,$B7,$B8,$B9 ; (continues previous entry)
$0C:F150 .db $92,$8C,$88,$97,$8E,$88,$97,$8E ; (continues previous entry)
$0C:F158 .db $B8,$B9,$8E,$83,$8D,$8E,$8F,$8C ; (continues previous entry)
$0C:F160 .db $8D,$8C,$88,$8A,$A9,$88,$8A,$BA ; (continues previous entry)
$0C:F168 .db $8A,$A9,$8D,$8F,$98,$8F,$B5,$8F ; @752 Run 16 x $98; @768 Run 16 x $B5; @784 Run 16 x $88
$0C:F170 .db $88,$BF,$83,$FF,$FF ; @800 Run 64 x $83; End marker $FFFF
;;; $F175..F455: Credits background tilemap, RLE (not in scene table) ;;;
;; RLE stream of 864 Map16 tile low bytes, same format. Not referenced by $93C1, probably unused.
$0C:F175 .db $00,$BF,$81,$C0,$04,$C1,$C2,$C3 ; @0 Lit 1: BF; @1 Run 2 x $C0; @3 Lit 5: C1 C2 C3 C0 BF
$0C:F17D .db $C0,$BF,$81,$C0,$00,$BF,$81,$C0 ; @8 Run 2 x $C0; @10 Lit 1: BF; @11 Run 2 x $C0
$0C:F185 .db $00,$BF,$81,$C0,$00,$C4,$81,$C5 ; @13 Lit 1: BF; @14 Run 2 x $C0; @16 Lit 1: C4; @17 Run 2 x $C5
$0C:F18D .db $04,$C1,$C2,$C6,$C5,$C4,$81,$C5 ; @19 Lit 5: C1 C2 C6 C5 C4; @24 Run 2 x $C5
$0C:F195 .db $00,$C4,$81,$C5,$00,$C4,$81,$C5 ; @26 Lit 1: C4; @27 Run 2 x $C5; @29 Lit 1: C4; @30 Run 2 x $C5
$0C:F19D .db $82,$C0,$02,$C1,$C2,$C3,$89,$C0 ; @32 Run 3 x $C0; @35 Lit 3: C1 C2 C3; @38 Run 10 x $C0
$0C:F1A5 .db $82,$C5,$02,$C1,$C2,$C6,$89,$C5 ; @48 Run 3 x $C5; @51 Lit 3: C1 C2 C6; @54 Run 10 x $C5
$0C:F1AD .db $82,$C7,$01,$C8,$C2,$88,$C7,$01 ; @64 Run 3 x $C7; @67 Lit 2: C8 C2; @69 Run 9 x $C7; @78 Lit 2: C9 C7
$0C:F1B5 .db $C9,$C7,$82,$CA,$01,$C1,$C2,$83 ; @80 Run 3 x $CA; @83 Lit 2: C1 C2; @85 Run 4 x $CA
$0C:F1BD .db $CA,$81,$CB,$84,$CA,$82,$CC,$02 ; @89 Run 2 x $CB; @91 Run 5 x $CA; @96 Run 3 x $CC; @99 Lit 3: C1 C2 CD
$0C:F1C5 .db $C1,$C2,$CD,$89,$CC,$82,$C5,$02 ; @102 Run 10 x $CC; @112 Run 3 x $C5; @115 Lit 3: C1 C2 C6
$0C:F1CD .db $C1,$C2,$C6,$89,$C5,$82,$C0,$04 ; @118 Run 10 x $C5; @128 Run 3 x $C0; @131 Lit 5: C1 C2 C3 C0 BF
$0C:F1D5 .db $C1,$C2,$C3,$C0,$BF,$81,$C0,$00 ; @136 Run 2 x $C0; @138 Lit 1: BF
$0C:F1DD .db $BF,$81,$C0,$00,$CE,$81,$59,$82 ; @139 Run 2 x $C0; @141 Lit 1: CE; @142 Run 2 x $59; @144 Run 3 x $C5
$0C:F1E5 .db $C5,$04,$C1,$CF,$C6,$C5,$C4,$81 ; @147 Lit 5: C1 CF C6 C5 C4; @152 Run 2 x $C5
$0C:F1ED .db $C5,$00,$C4,$81,$C5,$00,$D0,$81 ; @154 Lit 1: C4; @155 Run 2 x $C5; @157 Lit 1: D0; @158 Run 2 x $59
$0C:F1F5 .db $59,$00,$D1,$81,$C0,$02,$C8,$C2 ; @160 Lit 1: D1; @161 Run 2 x $C0; @163 Lit 3: C8 C2 C3
$0C:F1FD .db $C3,$85,$C0,$00,$CE,$82,$59,$00 ; @166 Run 6 x $C0; @172 Lit 1: CE; @173 Run 3 x $59; @176 Lit 1: D2
$0C:F205 .db $D2,$81,$C5,$02,$C1,$C2,$C6,$85 ; @177 Run 2 x $C5; @179 Lit 3: C1 C2 C6; @182 Run 6 x $C5
$0C:F20D .db $C5,$00,$D0,$81,$59,$00,$D3,$82 ; @188 Lit 1: D0; @189 Run 2 x $59; @191 Lit 1: D3; @192 Run 3 x $C0
$0C:F215 .db $C0,$02,$C1,$C2,$C3,$84,$C0,$00 ; @195 Lit 3: C1 C2 C3; @198 Run 5 x $C0; @203 Lit 1: CE
$0C:F21D .db $CE,$81,$59,$01,$D1,$D4,$82,$C5 ; @204 Run 2 x $59; @206 Lit 2: D1 D4; @208 Run 3 x $C5
$0C:F225 .db $02,$C1,$C2,$C6,$84,$C5,$04,$D0 ; @211 Lit 3: C1 C2 C6; @214 Run 5 x $C5; @219 Lit 5: D0 D3 D5 D2 C5
$0C:F22D .db $D3,$D5,$D2,$C5,$82,$C0,$04,$C1 ; @224 Run 3 x $C0; @227 Lit 5: C1 C2 C3 C0 BF
$0C:F235 .db $C2,$C3,$C0,$BF,$83,$C0,$03,$D4 ; @232 Run 4 x $C0; @236 Lit 4: D4 C0 BF C0
$0C:F23D .db $C0,$BF,$C0,$82,$C5,$04,$C1,$C2 ; @240 Run 3 x $C5; @243 Lit 5: C1 C2 C6 C5 C4
$0C:F245 .db $C6,$C5,$C4,$81,$C5,$00,$D6,$82 ; @248 Run 2 x $C5; @250 Lit 1: D6; @251 Run 3 x $C5
$0C:F24D .db $C5,$07,$C4,$C5,$59,$D1,$C0,$C1 ; @254 Lit 8: C4 C5 59 D1 C0 C1 ..
$0C:F255 .db $C2,$C3,$81,$C0,$02,$CE,$59,$D7 ; @262 Run 2 x $C0; @264 Lit 3: CE 59 D7
$0C:F25D .db $85,$59,$04,$D2,$C5,$C1,$C2,$C6 ; @267 Run 6 x $59; @273 Lit 5: D2 C5 C1 C2 C6
$0C:F265 .db $81,$C5,$00,$D0,$82,$59,$00,$D5 ; @278 Run 2 x $C5; @280 Lit 1: D0; @281 Run 3 x $59; @284 Lit 1: D5
$0C:F26D .db $81,$59,$00,$D3,$82,$C7,$01,$C1 ; @285 Run 2 x $59; @287 Lit 1: D3; @288 Run 3 x $C7; @291 Lit 2: C1 C2
$0C:F275 .db $C2,$84,$C7,$00,$C9,$84,$C7,$81 ; @293 Run 5 x $C7; @298 Lit 1: C9; @299 Run 5 x $C7; @304 Run 2 x $CA
$0C:F27D .db $CA,$03,$CB,$C1,$C2,$CB,$87,$CA ; @306 Lit 4: CB C1 C2 CB; @310 Run 8 x $CA
$0C:F285 .db $01,$CB,$CA,$82,$CC,$02,$C1,$CF ; @318 Lit 2: CB CA; @320 Run 3 x $CC; @323 Lit 3: C1 CF CD
$0C:F28D .db $CD,$89,$CC,$82,$C5,$02,$C1,$C2 ; @326 Run 10 x $CC; @336 Run 3 x $C5; @339 Lit 3: C1 C2 C6
$0C:F295 .db $C6,$89,$C5,$00,$BF,$81,$C0,$04 ; @342 Run 10 x $C5; @352 Lit 1: BF; @353 Run 2 x $C0; @355 Lit 5: C8 C2 C3 C0 CE
$0C:F29D .db $C8,$C2,$C3,$C0,$CE,$82,$59,$02 ; @360 Run 3 x $59; @363 Lit 3: D1 C0 BF
$0C:F2A5 .db $D1,$C0,$BF,$81,$C0,$00,$C4,$81 ; @366 Run 2 x $C0; @368 Lit 1: C4; @369 Run 2 x $C5
$0C:F2AD .db $C5,$0A,$C1,$C2,$C6,$C5,$D0,$59 ; @371 Lit 11: C1 C2 C6 C5 D0 59 ..
$0C:F2B5 .db $D3,$59,$D2,$D6,$C4,$81,$C5,$82 ; @382 Run 2 x $C5; @384 Run 3 x $C0
$0C:F2BD .db $C0,$02,$C1,$C2,$C3,$82,$C0,$03 ; @387 Lit 3: C1 C2 C3; @390 Run 3 x $C0; @393 Lit 4: D4 CE 59 D7
$0C:F2C5 .db $D4,$CE,$59,$D7,$82,$59,$82,$C5 ; @397 Run 3 x $59; @400 Run 3 x $C5
$0C:F2CD .db $02,$C1,$CF,$C6,$83,$C5,$01,$D0 ; @403 Lit 3: C1 CF C6; @406 Run 4 x $C5; @410 Lit 2: D0 59
$0C:F2D5 .db $59,$81,$D5,$01,$D3,$59,$82,$C0 ; @412 Run 2 x $D5; @414 Lit 2: D3 59; @416 Run 3 x $C0
$0C:F2DD .db $02,$C1,$C2,$C3,$87,$C0,$02,$D4 ; @419 Lit 3: C1 C2 C3; @422 Run 8 x $C0; @430 Lit 3: D4 C0 BF
$0C:F2E5 .db $C0,$BF,$81,$C0,$04,$C1,$C2,$C3 ; @433 Run 2 x $C0; @435 Lit 5: C1 C2 C3 C0 BF
$0C:F2ED .db $C0,$BF,$81,$C0,$00,$BF,$81,$C0 ; @440 Run 2 x $C0; @442 Lit 1: BF; @443 Run 2 x $C0
$0C:F2F5 .db $00,$BF,$81,$C0,$00,$C4,$81,$C5 ; @445 Lit 1: BF; @446 Run 2 x $C0; @448 Lit 1: C4; @449 Run 2 x $C5
$0C:F2FD .db $04,$C1,$C2,$C6,$C5,$C4,$81,$C5 ; @451 Lit 5: C1 C2 C6 C5 C4; @456 Run 2 x $C5
$0C:F305 .db $00,$C4,$81,$C5,$00,$C4,$81,$C5 ; @458 Lit 1: C4; @459 Run 2 x $C5; @461 Lit 1: C4; @462 Run 2 x $C5
$0C:F30D .db $82,$C0,$02,$C8,$C2,$C3,$89,$C0 ; @464 Run 3 x $C0; @467 Lit 3: C8 C2 C3; @470 Run 10 x $C0
$0C:F315 .db $82,$C5,$02,$C1,$C2,$C6,$89,$C5 ; @480 Run 3 x $C5; @483 Lit 3: C1 C2 C6; @486 Run 10 x $C5
$0C:F31D .db $82,$C7,$03,$C1,$C2,$C7,$C9,$83 ; @496 Run 3 x $C7; @499 Lit 4: C1 C2 C7 C9; @503 Run 4 x $C7
$0C:F325 .db $C7,$00,$C9,$83,$C7,$82,$CA,$01 ; @507 Lit 1: C9; @508 Run 4 x $C7; @512 Run 3 x $CA; @515 Lit 2: C1 C2
$0C:F32D .db $C1,$C2,$81,$CA,$00,$CB,$87,$CA ; @517 Run 2 x $CA; @519 Lit 1: CB; @520 Run 8 x $CA
$0C:F335 .db $82,$CC,$02,$C1,$C2,$CD,$89,$CC ; @528 Run 3 x $CC; @531 Lit 3: C1 C2 CD; @534 Run 10 x $CC
$0C:F33D .db $82,$C5,$02,$C1,$C2,$C6,$89,$C5 ; @544 Run 3 x $C5; @547 Lit 3: C1 C2 C6; @550 Run 10 x $C5
$0C:F345 .db $00,$D1,$81,$C0,$04,$C1,$C2,$C3 ; @560 Lit 1: D1; @561 Run 2 x $C0; @563 Lit 5: C1 C2 C3 C0 CE
$0C:F34D .db $C0,$CE,$83,$59,$01,$D1,$BF,$81 ; @568 Run 4 x $59; @572 Lit 2: D1 BF; @574 Run 2 x $C0
$0C:F355 .db $C0,$00,$D2,$81,$C5,$04,$C1,$C2 ; @576 Lit 1: D2; @577 Run 2 x $C5; @579 Lit 5: C1 C2 C6 C5 D0
$0C:F35D .db $C6,$C5,$D0,$83,$59,$01,$D2,$C4 ; @584 Run 4 x $59; @588 Lit 2: D2 C4
$0C:F365 .db $81,$C5,$82,$59,$03,$C1,$C2,$C3 ; @590 Run 2 x $C5; @592 Run 3 x $59; @595 Lit 4: C1 C2 C3 CE
$0C:F36D .db $CE,$89,$59,$05,$D5,$59,$C1,$C2 ; @599 Run 10 x $59; @609 Lit 6: D5 59 C1 C2 C6 D0
$0C:F375 .db $C6,$D0,$81,$59,$03,$D3,$59,$D5 ; @615 Run 2 x $59; @617 Lit 4: D3 59 D5 D3
$0C:F37D .db $D3,$81,$59,$00,$D5,$82,$C0,$02 ; @621 Run 2 x $59; @623 Lit 1: D5; @624 Run 3 x $C0; @627 Lit 3: C8 C2 C3
$0C:F385 .db $C8,$C2,$C3,$82,$C0,$03,$D4,$BF ; @630 Run 3 x $C0; @633 Lit 4: D4 BF C0 D4
$0C:F38D .db $C0,$D4,$82,$C0,$82,$C5,$02,$C1 ; @637 Run 3 x $C0; @640 Run 3 x $C5; @643 Lit 3: C1 C2 C6
$0C:F395 .db $C2,$C6,$81,$C5,$02,$D6,$C5,$C4 ; @646 Run 2 x $C5; @648 Lit 3: D6 C5 C4
$0C:F39D .db $84,$C5,$82,$C0,$01,$C1,$C2,$82 ; @651 Run 5 x $C5; @656 Run 3 x $C0; @659 Lit 2: C1 C2; @661 Run 3 x $59
$0C:F3A5 .db $59,$00,$D7,$83,$59,$00,$D1,$81 ; @664 Lit 1: D7; @665 Run 4 x $59; @669 Lit 1: D1; @670 Run 2 x $C0
$0C:F3AD .db $C0,$82,$C5,$02,$C1,$C2,$D5,$86 ; @672 Run 3 x $C5; @675 Lit 3: C1 C2 D5; @678 Run 7 x $59
$0C:F3B5 .db $59,$09,$D2,$D6,$C5,$59,$D1,$C0 ; @685 Lit 10: D2 D6 C5 59 D1 C0 ..
$0C:F3BD .db $C1,$CF,$C3,$CE,$81,$59,$00,$D1 ; @695 Run 2 x $59; @697 Lit 1: D1
$0C:F3C5 .db $82,$C0,$01,$CE,$D7,$81,$59,$08 ; @698 Run 3 x $C0; @701 Lit 2: CE D7; @703 Run 2 x $59; @705 Lit 9: D2 C5 C1 C2 C6 D0 ..
$0C:F3CD .db $D2,$C5,$C1,$C2,$C6,$D0,$D5,$59 ; (continues previous entry)
$0C:F3D5 .db $D2,$82,$C5,$00,$D0,$81,$59,$82 ; @714 Run 3 x $C5; @717 Lit 1: D0; @718 Run 2 x $59; @720 Run 3 x $C7
$0C:F3DD .db $C7,$03,$C1,$C2,$C7,$C9,$84,$C7 ; @723 Lit 4: C1 C2 C7 C9; @727 Run 5 x $C7
$0C:F3E5 .db $00,$C9,$82,$C7,$82,$CA,$01,$C1 ; @732 Lit 1: C9; @733 Run 3 x $C7; @736 Run 3 x $CA; @739 Lit 2: C1 CF
$0C:F3ED .db $CF,$84,$CA,$00,$CB,$84,$CA,$82 ; @741 Run 5 x $CA; @746 Lit 1: CB; @747 Run 5 x $CA; @752 Run 3 x $CC
$0C:F3F5 .db $CC,$02,$C1,$C2,$CD,$89,$CC,$82 ; @755 Lit 3: C1 C2 CD; @758 Run 10 x $CC; @768 Run 3 x $C5
$0C:F3FD .db $C5,$02,$C1,$C2,$C6,$89,$C5,$00 ; @771 Lit 3: C1 C2 C6; @774 Run 10 x $C5; @784 Lit 1: BF
$0C:F405 .db $BF,$81,$C0,$05,$C8,$C2,$C3,$C0 ; @785 Run 2 x $C0; @787 Lit 6: C8 C2 C3 C0 BF CE
$0C:F40D .db $BF,$CE,$81,$59,$02,$D1,$C0,$BF ; @793 Run 2 x $59; @795 Lit 3: D1 C0 BF
$0C:F415 .db $81,$C0,$00,$C4,$81,$C5,$05,$C1 ; @798 Run 2 x $C0; @800 Lit 1: C4; @801 Run 2 x $C5; @803 Lit 6: C1 CF C6 C5 C4 D0
$0C:F41D .db $CF,$C6,$C5,$C4,$D0,$81,$59,$02 ; @809 Run 2 x $59; @811 Lit 3: D2 D6 C4
$0C:F425 .db $D2,$D6,$C4,$81,$C5,$00,$D1,$81 ; @814 Run 2 x $C5; @816 Lit 1: D1; @817 Run 2 x $C0
$0C:F42D .db $C0,$03,$C1,$C2,$C3,$CE,$84,$59 ; @819 Lit 4: C1 C2 C3 CE; @823 Run 5 x $59
$0C:F435 .db $01,$D7,$D1,$81,$C0,$00,$D2,$81 ; @828 Lit 2: D7 D1; @830 Run 2 x $C0; @832 Lit 1: D2; @833 Run 2 x $C5
$0C:F43D .db $C5,$04,$C1,$C2,$C6,$D0,$D3,$81 ; @835 Lit 5: C1 C2 C6 D0 D3; @840 Run 2 x $59
$0C:F445 .db $59,$00,$D5,$81,$59,$00,$D2,$81 ; @842 Lit 1: D5; @843 Run 2 x $59; @845 Lit 1: D2; @846 Run 2 x $C5
$0C:F44D .db $C5,$82,$C0,$04,$C1,$C2,$C3,$C0 ; @848 Run 3 x $C0; @851 Lit 5: C1 C2 C3 C0 D4
$0C:F455 .db $D4,$87,$C0,$FF,$FF ; @856 Run 8 x $C0; End marker $FFFF
;;; $F45A..FFFA: Credits tilemap 0 and overworld layer-1 tilemap ;;;
;; $F45A-$F7DE: scene 0 of $93C1, an RLE Map16 stream (864 tiles, high byte 1 since pointer >= $E8FE).
;; $F7DF-$FFDE: $800-byte overworld layer-1 tile map; bank 04 ($DC5A) copies it with MVN to $7EC800.
;; Remainder to $FFFF is $FF padding.
$0C:F45A .db $0B,$76,$D8,$D9,$DA,$DB,$D9,$DA ; @0 Lit 12: 76 D8 D9 DA DB D9 ..
$0C:F462 .db $DB,$76,$D8,$D9,$DA,$81,$DB,$0D ; @12 Run 2 x $DB; @14 Lit 14: D9 DA 76 DC DD DE ..
$0C:F46A .db $D9,$DA,$76,$DC,$DD,$DE,$DF,$DD ; (continues previous entry)
$0C:F472 .db $DE,$DF,$76,$DC,$DD,$DE,$81,$DF ; @28 Run 2 x $DF
$0C:F47A .db $09,$DD,$DE,$DB,$D9,$DA,$D9,$DA ; @30 Lit 10: DD DE DB D9 DA D9 ..
$0C:F482 .db $DB,$D9,$DA,$83,$DB,$0B,$D9,$E0 ; @40 Run 4 x $DB; @44 Lit 12: D9 E0 DA DB DF DD ..
$0C:F48A .db $DA,$DB,$DF,$DD,$DE,$DD,$DE,$DF ; (continues previous entry)
$0C:F492 .db $DD,$DE,$83,$DF,$0B,$DD,$E1,$DE ; @56 Run 4 x $DF; @60 Lit 12: DD E1 DE DF E2 E3 ..
$0C:F49A .db $DF,$E2,$E3,$E4,$E3,$E4,$E2,$E3 ; (continues previous entry)
$0C:F4A2 .db $E4,$83,$E2,$06,$E3,$E5,$E4,$E2 ; @72 Run 4 x $E2; @76 Lit 7: E3 E5 E4 E2 E6 E7 ..
$0C:F4AA .db $E6,$E7,$E8,$81,$E9,$03,$E7,$E8 ; @83 Run 2 x $E9; @85 Lit 4: E7 E8 E9 E6
$0C:F4B2 .db $E9,$E6,$82,$E9,$06,$E7,$E8,$E9 ; @89 Run 3 x $E9; @92 Lit 7: E7 E8 E9 E7 76 EA ..
$0C:F4BA .db $E7,$76,$EA,$DE,$81,$DF,$04,$DD ; @99 Run 2 x $DF; @101 Lit 5: DD DE DF 76 DC
$0C:F4C2 .db $DE,$DF,$76,$DC,$81,$DF,$0D,$DD ; @106 Run 2 x $DF; @108 Lit 14: DD DE DF DD 76 EB ..
$0C:F4CA .db $DE,$DF,$DD,$76,$EB,$E4,$E2,$DF ; (continues previous entry)
$0C:F4D2 .db $E3,$E4,$DF,$76,$DC,$81,$E2,$3F ; @122 Run 2 x $E2; @124 Lit 64: E3 E4 E2 E3 76 EC ..
$0C:F4DA .db $E3,$E4,$E2,$E3,$76,$EC,$ED,$EE ; (continues previous entry)
$0C:F4E2 .db $E5,$ED,$EE,$E4,$76,$EB,$ED,$EE ; (continues previous entry)
$0C:F4EA .db $E0,$ED,$EE,$DA,$76,$EB,$EF,$F0 ; (continues previous entry)
$0C:F4F2 .db $E0,$EF,$F0,$DA,$76,$EC,$EF,$F0 ; (continues previous entry)
$0C:F4FA .db $E1,$EF,$F0,$E4,$76,$EC,$F1,$F2 ; (continues previous entry)
$0C:F502 .db $E5,$F1,$F2,$E4,$76,$EB,$F1,$F2 ; (continues previous entry)
$0C:F50A .db $E5,$F1,$F2,$DA,$76,$DC,$D9,$DA ; (continues previous entry)
$0C:F512 .db $DB,$D9,$DA,$DB,$76,$D8,$D9,$DA ; (continues previous entry)
$0C:F51A .db $81,$DB,$0D,$D9,$DE,$76,$DC,$DD ; @188 Run 2 x $DB; @190 Lit 14: D9 DE 76 DC DD DE ..
$0C:F522 .db $DE,$DF,$DD,$DE,$DF,$76,$DC,$DD ; (continues previous entry)
$0C:F52A .db $DE,$81,$DF,$09,$DD,$DE,$DB,$D9 ; @204 Run 2 x $DF; @206 Lit 10: DD DE DB D9 DA D9 ..
$0C:F532 .db $DA,$D9,$DA,$DB,$D9,$DA,$81,$DB ; @216 Run 2 x $DB
$0C:F53A .db $1F,$D9,$DA,$D9,$DA,$DB,$D9,$DF ; @218 Lit 32: D9 DA D9 DA DB D9 ..
$0C:F542 .db $DD,$DE,$DD,$DE,$DF,$DD,$E4,$E2 ; (continues previous entry)
$0C:F54A .db $F3,$E3,$DE,$DD,$DE,$DF,$DD,$E2 ; (continues previous entry)
$0C:F552 .db $E3,$E4,$E3,$E4,$E2,$E3,$E4,$E3 ; (continues previous entry)
$0C:F55A .db $E4,$81,$E2,$06,$E3,$E4,$E2,$E3 ; @250 Run 2 x $E2; @252 Lit 7: E3 E4 E2 E3 E6 E7 ..
$0C:F562 .db $E6,$E7,$E8,$81,$E9,$03,$E7,$E8 ; @259 Run 2 x $E9; @261 Lit 4: E7 E8 E9 E6
$0C:F56A .db $E9,$E6,$83,$E9,$0C,$E7,$E8,$E7 ; @265 Run 4 x $E9; @269 Lit 13: E7 E8 E7 76 EA DE ..
$0C:F572 .db $76,$EA,$DE,$DF,$E2,$DD,$DE,$DF ; (continues previous entry)
$0C:F57A .db $76,$DC,$82,$DF,$0C,$DD,$DE,$DD ; @282 Run 3 x $DF; @285 Lit 13: DD DE DD 76 EB E4 ..
$0C:F582 .db $76,$EB,$E4,$E3,$E0,$E5,$E4,$DF ; (continues previous entry)
$0C:F58A .db $76,$DC,$82,$E2,$3D,$E3,$E4,$E3 ; @298 Run 3 x $E2; @301 Lit 62: E3 E4 E3 76 EC ED ..
$0C:F592 .db $76,$EC,$ED,$EE,$E1,$ED,$EE,$E4 ; (continues previous entry)
$0C:F59A .db $76,$EB,$ED,$EE,$E0,$ED,$EE,$DA ; (continues previous entry)
$0C:F5A2 .db $76,$EB,$EF,$F0,$E5,$EF,$F0,$DA ; (continues previous entry)
$0C:F5AA .db $76,$EC,$EF,$F0,$E1,$EF,$F0,$DE ; (continues previous entry)
$0C:F5B2 .db $76,$EC,$F1,$F2,$E0,$F1,$F2,$E4 ; (continues previous entry)
$0C:F5BA .db $76,$EB,$F1,$F2,$E5,$F1,$F2,$DE ; (continues previous entry)
$0C:F5C2 .db $76,$DC,$D9,$DA,$DF,$D9,$DA,$DB ; (continues previous entry)
$0C:F5CA .db $76,$D8,$D9,$81,$E0,$0D,$DA,$D9 ; @363 Run 2 x $E0; @365 Lit 14: DA D9 E4 76 DC DD ..
$0C:F5D2 .db $E4,$76,$DC,$DD,$DE,$DF,$DD,$DE ; (continues previous entry)
$0C:F5DA .db $DF,$76,$DC,$DD,$81,$E1,$05,$DE ; @379 Run 2 x $E1; @381 Lit 6: DE DD DA DB D9 DA
$0C:F5E2 .db $DD,$DA,$DB,$D9,$DA,$82,$DB,$01 ; @387 Run 3 x $DB; @390 Lit 2: D9 DA
$0C:F5EA .db $D9,$DA,$83,$DB,$00,$D9,$81,$E0 ; @392 Run 4 x $DB; @396 Lit 1: D9; @397 Run 2 x $E0
$0C:F5F2 .db $04,$DA,$DF,$DD,$E4,$E2,$81,$F3 ; @399 Lit 5: DA DF DD E4 E2; @404 Run 2 x $F3
$0C:F5FA .db $01,$E3,$DE,$83,$DF,$00,$DD,$81 ; @406 Lit 2: E3 DE; @408 Run 4 x $DF; @412 Lit 1: DD; @413 Run 2 x $E1
$0C:F602 .db $E1,$03,$DE,$DF,$DD,$DA,$82,$DB ; @415 Lit 4: DE DF DD DA; @419 Run 3 x $DB
$0C:F60A .db $01,$D9,$DE,$83,$DF,$00,$DD,$81 ; @422 Lit 2: D9 DE; @424 Run 4 x $DF; @428 Lit 1: DD; @429 Run 2 x $E5
$0C:F612 .db $E5,$0C,$DE,$76,$D8,$D9,$DA,$DB ; @431 Lit 13: DE 76 D8 D9 DA DB ..
$0C:F61A .db $D9,$DA,$DB,$76,$D8,$D9,$DA,$81 ; @444 Run 2 x $DB
$0C:F622 .db $DB,$0D,$D9,$DA,$76,$DC,$DD,$DE ; @446 Lit 14: D9 DA 76 DC DD DE ..
$0C:F62A .db $DF,$DD,$DE,$DF,$76,$DC,$DD,$DE ; (continues previous entry)
$0C:F632 .db $81,$DF,$06,$DD,$DE,$D9,$E0,$DA ; @460 Run 2 x $DF; @462 Lit 7: DD DE D9 E0 DA D9 ..
$0C:F63A .db $D9,$DA,$81,$DB,$06,$D9,$DA,$D9 ; @469 Run 2 x $DB; @471 Lit 7: D9 DA D9 DA DB D9 ..
$0C:F642 .db $DA,$DB,$D9,$DA,$81,$DB,$04,$DD ; @478 Run 2 x $DB; @480 Lit 5: DD E1 DE DD DE
$0C:F64A .db $E1,$DE,$DD,$DE,$81,$DF,$06,$DD ; @485 Run 2 x $DF; @487 Lit 7: DD DE DD DE DF DD ..
$0C:F652 .db $DE,$DD,$DE,$DF,$DD,$DE,$81,$DF ; @494 Run 2 x $DF
$0C:F65A .db $04,$E3,$E5,$E4,$E3,$E4,$81,$E2 ; @496 Lit 5: E3 E5 E4 E3 E4; @501 Run 2 x $E2
$0C:F662 .db $06,$E3,$E4,$E3,$E4,$E2,$E3,$E4 ; @503 Lit 7: E3 E4 E3 E4 E2 E3 ..
$0C:F66A .db $81,$E2,$04,$E6,$E7,$E8,$E7,$E8 ; @510 Run 2 x $E2; @512 Lit 5: E6 E7 E8 E7 E8
$0C:F672 .db $82,$E9,$0C,$E6,$E7,$E8,$E9,$E7 ; @517 Run 3 x $E9; @520 Lit 13: E6 E7 E8 E9 E7 E8 ..
$0C:F67A .db $E8,$E9,$E7,$76,$EA,$DE,$DD,$DE ; (continues previous entry)
$0C:F682 .db $81,$DF,$4E,$E2,$76,$EB,$DE,$DF ; @533 Run 2 x $DF; @535 Lit 79: E2 76 EB DE DF DD ..
$0C:F68A .db $DD,$DE,$DF,$DD,$76,$EB,$E4,$E3 ; (continues previous entry)
$0C:F692 .db $E4,$E2,$E3,$DA,$76,$EC,$E4,$E2 ; (continues previous entry)
$0C:F69A .db $E3,$E4,$E2,$E3,$76,$EC,$ED,$EE ; (continues previous entry)
$0C:F6A2 .db $E0,$ED,$EE,$DE,$76,$EA,$ED,$EE ; (continues previous entry)
$0C:F6AA .db $E0,$ED,$EE,$DA,$76,$EB,$EF,$F0 ; (continues previous entry)
$0C:F6B2 .db $E5,$EF,$F0,$DE,$76,$EA,$EF,$F0 ; (continues previous entry)
$0C:F6BA .db $E1,$EF,$F0,$E4,$76,$EC,$F1,$F2 ; (continues previous entry)
$0C:F6C2 .db $E0,$F1,$F2,$E4,$76,$EB,$F1,$F2 ; (continues previous entry)
$0C:F6CA .db $E5,$F1,$F2,$DA,$76,$DC,$D9,$DA ; (continues previous entry)
$0C:F6D2 .db $DD,$DA,$81,$DB,$03,$76,$EC,$E0 ; @614 Run 2 x $DB; @616 Lit 4: 76 EC E0 DA
$0C:F6DA .db $DA,$81,$DB,$07,$D9,$DE,$76,$DC ; @620 Run 2 x $DB; @622 Lit 8: D9 DE 76 DC DD DE ..
$0C:F6E2 .db $DD,$DE,$DD,$DE,$81,$DF,$03,$76 ; @630 Run 2 x $DF; @632 Lit 4: 76 EB E1 DE
$0C:F6EA .db $EB,$E1,$DE,$81,$DF,$06,$DD,$DE ; @636 Run 2 x $DF; @638 Lit 7: DD DE DA D9 DA DB ..
$0C:F6F2 .db $DA,$D9,$DA,$DB,$D9,$81,$E0,$06 ; @645 Run 2 x $E0; @647 Lit 7: DA DB D9 DA DB D9 ..
$0C:F6FA .db $DA,$DB,$D9,$DA,$DB,$D9,$DA,$81 ; @654 Run 2 x $DB
$0C:F702 .db $DB,$0D,$DE,$DD,$DE,$DF,$DD,$E5 ; @656 Lit 14: DE DD DE DF DD E5 ..
$0C:F70A .db $E1,$DE,$DF,$DD,$DE,$DF,$DD,$DE ; (continues previous entry)
$0C:F712 .db $81,$DF,$04,$E4,$E3,$E4,$E2,$E3 ; @670 Run 2 x $DF; @672 Lit 5: E4 E3 E4 E2 E3
$0C:F71A .db $81,$E5,$06,$E4,$E2,$E3,$E4,$E2 ; @677 Run 2 x $E5; @679 Lit 7: E4 E2 E3 E4 E2 E3 ..
$0C:F722 .db $E3,$E4,$81,$E2,$02,$E6,$E7,$E8 ; @686 Run 2 x $E2; @688 Lit 3: E6 E7 E8
$0C:F72A .db $81,$E9,$03,$E7,$E8,$E9,$E6,$82 ; @691 Run 2 x $E9; @693 Lit 4: E7 E8 E9 E6; @697 Run 3 x $E9
$0C:F732 .db $E9,$06,$E7,$E8,$E9,$E7,$76,$EA ; @700 Lit 7: E7 E8 E9 E7 76 EA ..
$0C:F73A .db $DE,$81,$DF,$04,$DD,$DE,$DF,$76 ; @707 Run 2 x $DF; @709 Lit 5: DD DE DF 76 DC
$0C:F742 .db $DC,$81,$DF,$06,$DD,$DE,$DF,$DD ; @714 Run 2 x $DF; @716 Lit 7: DD DE DF DD 76 EB ..
$0C:F74A .db $76,$EB,$E4,$81,$E2,$04,$E3,$E4 ; @723 Run 2 x $E2; @725 Lit 5: E3 E4 DF 76 DC
$0C:F752 .db $DF,$76,$DC,$81,$E2,$51,$E3,$E4 ; @730 Run 2 x $E2; @732 Lit 82: E3 E4 E2 E3 76 EC ..
$0C:F75A .db $E2,$E3,$76,$EC,$ED,$EE,$E0,$ED ; (continues previous entry)
$0C:F762 .db $EE,$E4,$76,$EB,$ED,$EE,$E0,$ED ; (continues previous entry)
$0C:F76A .db $EE,$DA,$76,$EA,$EF,$F0,$E1,$EF ; (continues previous entry)
$0C:F772 .db $F0,$DA,$76,$EC,$EF,$F0,$E1,$EF ; (continues previous entry)
$0C:F77A .db $F0,$E4,$76,$EA,$F1,$F2,$E5,$F1 ; (continues previous entry)
$0C:F782 .db $F2,$E4,$76,$EB,$F1,$F2,$E5,$F1 ; (continues previous entry)
$0C:F78A .db $F2,$DA,$76,$EB,$E0,$DA,$DB,$D9 ; (continues previous entry)
$0C:F792 .db $DA,$DB,$76,$EC,$DA,$DB,$D9,$DA ; (continues previous entry)
$0C:F79A .db $DB,$DF,$76,$EC,$E1,$DE,$DF,$DD ; (continues previous entry)
$0C:F7A2 .db $DE,$DF,$76,$EA,$DE,$DF,$DD,$DE ; (continues previous entry)
$0C:F7AA .db $81,$DF,$02,$DB,$D9,$DA,$82,$DB ; @814 Run 2 x $DF; @816 Lit 3: DB D9 DA; @819 Run 3 x $DB
$0C:F7B2 .db $0C,$D9,$DA,$DB,$D9,$DA,$DB,$D9 ; @822 Lit 13: D9 DA DB D9 DA DB ..
$0C:F7BA .db $DA,$D9,$DA,$DF,$DD,$DE,$82,$DF ; @835 Run 3 x $DF
$0C:F7C2 .db $0C,$DD,$E4,$E2,$E3,$DE,$DF,$DD ; @838 Lit 13: DD E4 E2 E3 DE DF ..
$0C:F7CA .db $DE,$DD,$DE,$DF,$DD,$DE,$82,$DF ; @851 Run 3 x $DF
$0C:F7D2 .db $09,$DD,$DA,$DB,$D9,$DE,$DF,$DD ; @854 Lit 10: DD DA DB D9 DE DF ..
$0C:F7DA .db $DE,$DD,$DE,$FF,$FF,$00,$00,$00 ; Ends scene 0 stream: ... DE DD DE, then End marker $FFFF; OW layer-1 tilemap follows at $F7DF
$0C:F7E2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F7EA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F7F2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F7FA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F802 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F80A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F812 .db $00,$00,$00,$00,$00,$00,$00,$82
$0C:F81A .db $04,$6E,$04,$72,$04,$00,$00,$00
$0C:F822 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F82A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F832 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F83A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F842 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F84A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F852 .db $99,$A3,$9B,$00,$00,$00,$00,$00
$0C:F85A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F862 .db $97,$98,$6E,$00,$00,$00,$00,$00
$0C:F86A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F872 .db $00,$00,$10,$00,$00,$00,$00,$00
$0C:F87A .db $00,$00,$83,$00,$00,$00,$00,$00
$0C:F882 .db $0A,$03,$63,$04,$4E,$04,$6E,$15
$0C:F88A .db $1A,$00,$10,$00,$00,$00,$00,$00
$0C:F892 .db $12,$00,$10,$00,$00,$00,$3F,$00
$0C:F89A .db $20,$88,$4C,$00,$00,$00,$00,$00
$0C:F8A2 .db $10,$00,$3F,$00,$00,$00,$2A,$00
$0C:F8AA .db $6E,$04,$5D,$00,$00,$00,$76,$04
$0C:F8B2 .db $7B,$00,$2A,$00,$BC,$00,$1E,$00
$0C:F8BA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F8C2 .db $00,$00,$74,$32,$35,$00,$19,$16
$0C:F8CA .db $82,$00,$00,$00,$00,$00,$00,$00
$0C:F8D2 .db $00,$00,$2A,$00,$20,$00,$00,$00
$0C:F8DA .db $00,$00,$00,$00,$00,$00,$00,$00 ; OW L1 offset $0100
$0C:F8E2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F8EA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F8F2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F8FA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F902 .db $00,$00,$00,$00,$00,$00,$8A,$A6
$0C:F90A .db $00,$00,$00,$00,$00,$58,$04,$04
$0C:F912 .db $04,$6E,$04,$6E,$04,$04,$04,$5D
$0C:F91A .db $15,$1A,$00,$00,$00,$00,$00,$00
$0C:F922 .db $00,$00,$00,$00,$00,$00,$00,$10
$0C:F92A .db $00,$20,$00,$00,$00,$00,$00,$08
$0C:F932 .db $16,$70,$4F,$04,$6E,$00,$00,$3F
$0C:F93A .db $00,$3F,$00,$00,$00,$00,$0D,$0E
$0C:F942 .db $00,$3F,$00,$00,$1E,$00,$00,$41
$0C:F94A .db $00,$3F,$00,$00,$00,$00,$82,$00
$0C:F952 .db $00,$3F,$00,$00,$19,$06,$06,$09
$0C:F95A .db $00,$3F,$00,$00,$00,$00,$00,$00
$0C:F962 .db $00,$72,$00,$00,$00,$00,$00,$00
$0C:F96A .db $00,$3F,$00,$00,$00,$00,$00,$00
$0C:F972 .db $00,$31,$BC,$00,$00,$00,$00,$00
$0C:F97A .db $00,$10,$00,$00,$00,$00,$00,$00
$0C:F982 .db $28,$29,$00,$00,$00,$00,$00,$00
$0C:F98A .db $00,$4D,$00,$00,$00,$00,$00,$00
$0C:F992 .db $2F,$00,$00,$00,$00,$00,$00,$00
$0C:F99A .db $00,$00,$00,$00,$00,$00,$00,$28
$0C:F9A2 .db $29,$00,$00,$00,$00,$00,$00,$00
$0C:F9AA .db $00,$00,$00,$00,$00,$00,$00,$3A
$0C:F9B2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F9BA .db $00,$00,$00,$00,$00,$00,$00,$3A
$0C:F9C2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F9CA .db $00,$00,$00,$00,$00,$5A,$00,$2F
$0C:F9D2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:F9DA .db $00,$00,$00,$00,$00,$99,$A3,$9B ; OW L1 offset $0200
$0C:F9E2 .db $00,$00,$10,$00,$63,$04,$82,$00
$0C:F9EA .db $00,$00,$00,$00,$00,$00,$00,$76
$0C:F9F2 .db $00,$00,$70,$00,$10,$00,$00,$00
$0C:F9FA .db $00,$00,$00,$00,$00,$97,$00,$10
$0C:FA02 .db $00,$9B,$10,$00,$5A,$00,$00,$00
$0C:FA0A .db $00,$00,$00,$00,$00,$00,$00,$3F
$0C:FA12 .db $97,$98,$10,$00,$00,$00,$00,$00
$0C:FA1A .db $00,$00,$00,$00,$00,$00,$00,$40
$0C:FA22 .db $00,$00,$10,$00,$00,$00,$00,$00
$0C:FA2A .db $00,$00,$00,$00,$00,$99,$9A,$9B
$0C:FA32 .db $00,$00,$4D,$00,$00,$00,$00,$00
$0C:FA3A .db $00,$00,$00,$4D,$00,$00,$00,$00
$0C:FA42 .db $00,$00,$A6,$00,$00,$00,$00,$00
$0C:FA4A .db $00,$00,$00,$2A,$00,$00,$00,$00
$0C:FA52 .db $00,$00,$5D,$87,$00,$00,$00,$00
$0C:FA5A .db $00,$2E,$2B,$7F,$BD,$00,$00,$00
$0C:FA62 .db $00,$00,$00,$00,$00,$00,$00,$82
$0C:FA6A .db $96,$50,$00,$00,$00,$00,$00,$00
$0C:FA72 .db $56,$00,$00,$00,$00,$00,$00,$10
$0C:FA7A .db $00,$2A,$00,$00,$00,$00,$00,$00
$0C:FA82 .db $00,$00,$00,$00,$00,$00,$00,$1E
$0C:FA8A .db $00,$4C,$00,$00,$00,$00,$00,$00
$0C:FA92 .db $00,$00,$00,$00,$00,$00,$00,$19
$0C:FA9A .db $16,$5D,$8C,$00,$58,$00,$00,$00
$0C:FAA2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FAAA .db $00,$10,$00,$00,$10,$00,$00,$00
$0C:FAB2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FABA .db $00,$6E,$04,$04,$57,$00,$00,$00
$0C:FAC2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FACA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FAD2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FADA .db $00,$00,$00,$00,$00,$3F,$00,$30 ; OW L1 offset $0300
$0C:FAE2 .db $00,$5A,$04,$58,$04,$04,$42,$00
$0C:FAEA .db $00,$4D,$00,$00,$00,$34,$00,$30
$0C:FAF2 .db $00,$00,$00,$00,$00,$A6,$00,$00
$0C:FAFA .db $00,$0F,$00,$00,$00,$37,$33,$2D
$0C:FB02 .db $00,$00,$00,$00,$8B,$5D,$04,$04
$0C:FB0A .db $05,$09,$00,$00,$00,$00,$00,$00
$0C:FB12 .db $00,$00,$00,$00,$00,$10,$00,$00
$0C:FB1A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FB22 .db $00,$00,$00,$00,$00,$10,$00,$00
$0C:FB2A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FB32 .db $00,$00,$00,$00,$00,$10,$00,$00
$0C:FB3A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FB42 .db $00,$00,$63,$04,$04,$6E,$00,$00
$0C:FB4A .db $00,$00,$00,$00,$00,$BE,$00,$82
$0C:FB52 .db $00,$00,$10,$00,$00,$00,$00,$00
$0C:FB5A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FB62 .db $00,$00,$10,$00,$00,$00,$00,$00
$0C:FB6A .db $00,$00,$00,$00,$00,$00,$0A,$02
$0C:FB72 .db $1A,$00,$10,$00,$00,$00,$00,$00
$0C:FB7A .db $00,$00,$00,$00,$00,$00,$12,$00
$0C:FB82 .db $20,$00,$10,$00,$00,$00,$00,$00
$0C:FB8A .db $00,$00,$00,$00,$00,$00,$10,$00
$0C:FB92 .db $70,$04,$70,$00,$00,$00,$00,$00
$0C:FB9A .db $00,$00,$00,$00,$00,$00,$1E,$00
$0C:FBA2 .db $0F,$00,$00,$00,$00,$00,$00,$00
$0C:FBAA .db $00,$00,$00,$00,$00,$00,$19,$06
$0C:FBB2 .db $09,$00,$00,$00,$00,$00,$00,$00
$0C:FBBA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FBC2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FBCA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FBD2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FBDA .db $00,$00,$00,$00,$00,$00,$00,$00 ; OW L1 offset $0400
$0C:FBE2 .db $00,$40,$00,$00,$00,$00,$4D,$00
$0C:FBEA .db $00,$00,$00,$00,$00,$97,$00,$98
$0C:FBF2 .db $00,$3F,$00,$99,$9A,$9B,$4C,$87
$0C:FBFA .db $9C,$9D,$00,$00,$00,$00,$9E,$9F
$0C:FC02 .db $00,$2A,$00,$00,$00,$00,$5D,$15
$0C:FC0A .db $1A,$9E,$9F,$00,$00,$99,$A0,$00
$0C:FC12 .db $00,$3F,$00,$00,$A1,$A2,$99,$A0
$0C:FC1A .db $20,$00,$00,$00,$00,$00,$00,$00
$0C:FC22 .db $00,$3F,$00,$00,$00,$00,$00,$00
$0C:FC2A .db $72,$00,$00,$00,$00,$00,$00,$00
$0C:FC32 .db $00,$0F,$00,$00,$9E,$00,$9F,$00
$0C:FC3A .db $0F,$00,$00,$00,$00,$00,$00,$00
$0C:FC42 .db $0D,$0E,$00,$B5,$99,$A0,$6E,$05
$0C:FC4A .db $09,$00,$00,$00,$00,$00,$00,$00
$0C:FC52 .db $12,$00,$07,$56,$17,$00,$10,$00
$0C:FC5A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FC62 .db $66,$05,$11,$00,$1F,$16,$66,$00
$0C:FC6A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FC72 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FC7A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FC82 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FC8A .db $00,$00,$00,$00,$00,$B6,$BB,$00
$0C:FC92 .db $82,$00,$00,$B8,$00,$00,$00,$00
$0C:FC9A .db $00,$00,$B8,$00,$00,$B8,$00,$B9
$0C:FCA2 .db $3F,$00,$00,$00,$00,$63,$04,$04
$0C:FCAA .db $15,$1A,$B9,$00,$00,$00,$00,$BA
$0C:FCB2 .db $3F,$B8,$00,$00,$00,$10,$00,$00
$0C:FCBA .db $00,$20,$00,$00,$00,$5A,$04,$04
$0C:FCC2 .db $70,$00,$00,$00,$BB,$3F,$B9,$00
$0C:FCCA .db $00,$6F,$00,$00,$00,$00,$00,$B8
$0C:FCD2 .db $3F,$B6,$00,$00,$B8,$3F,$BA,$00
$0C:FCDA .db $B8,$10,$00,$00,$00,$00,$00,$00 ; OW L1 offset $0500
$0C:FCE2 .db $00,$00,$00,$A7,$A8,$00,$00,$00
$0C:FCEA .db $00,$00,$00,$00,$00,$6E,$04,$82
$0C:FCF2 .db $00,$00,$A9,$AA,$AB,$AC,$00,$00
$0C:FCFA .db $00,$00,$00,$00,$00,$10,$00,$00
$0C:FD02 .db $00,$00,$AD,$AE,$AF,$B0,$B1,$00
$0C:FD0A .db $00,$00,$00,$00,$00,$82,$00,$00
$0C:FD12 .db $B6,$5A,$B2,$B3,$60,$B4,$61,$00
$0C:FD1A .db $BA,$00,$00,$00,$00,$00,$00,$B8
$0C:FD22 .db $00,$10,$00,$8D,$4C,$00,$10,$00
$0C:FD2A .db $00,$00,$BA,$00,$00,$00,$00,$00
$0C:FD32 .db $BA,$70,$04,$04,$5D,$00,$58,$00
$0C:FD3A .db $00,$B8,$BB,$00,$00,$00,$00,$00
$0C:FD42 .db $B7,$10,$00,$00,$10,$00,$10,$00
$0C:FD4A .db $00,$00,$00,$00,$00,$00,$B8,$78
$0C:FD52 .db $00,$6E,$04,$04,$63,$04,$71,$04
$0C:FD5A .db $6E,$04,$15,$1A,$00,$B6,$00,$00
$0C:FD62 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FD6A .db $00,$00,$00,$20,$00,$BB,$B9,$00
$0C:FD72 .db $00,$82,$04,$04,$6E,$04,$04,$04
$0C:FD7A .db $04,$82,$00,$47,$00,$00,$00,$00
$0C:FD82 .db $00,$00,$00,$8E,$00,$00,$00,$00
$0C:FD8A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FD92 .db $00,$00,$8F,$90,$91,$00,$00,$00
$0C:FD9A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FDA2 .db $00,$00,$00,$92,$93,$00,$00,$00
$0C:FDAA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FDB2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FDBA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FDC2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FDCA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FDD2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FDDA .db $00,$00,$00,$00,$00,$00,$B9,$00 ; OW L1 offset $0600
$0C:FDE2 .db $3F,$BB,$00,$00,$00,$74,$32,$35
$0C:FDEA .db $00,$6E,$00,$00,$00,$00,$00,$00
$0C:FDF2 .db $1E,$00,$00,$00,$00,$31,$00,$3D
$0C:FDFA .db $00,$4C,$00,$00,$00,$00,$00,$00
$0C:FE02 .db $19,$16,$71,$04,$2C,$2D,$00,$78
$0C:FE0A .db $00,$5D,$89,$00,$00,$00,$00,$00
$0C:FE12 .db $00,$00,$10,$00,$00,$00,$00,$00
$0C:FE1A .db $00,$0F,$00,$00,$00,$00,$00,$00
$0C:FE22 .db $00,$00,$48,$00,$00,$00,$00,$82
$0C:FE2A .db $05,$09,$00,$00,$00,$00,$99,$9A
$0C:FE32 .db $9B,$00,$00,$00,$00,$4D,$00,$00
$0C:FE3A .db $00,$97,$A3,$9B,$00,$9F,$00,$00
$0C:FE42 .db $00,$00,$00,$00,$00,$10,$00,$00
$0C:FE4A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FE52 .db $00,$0A,$03,$7A,$04,$69,$15,$1A
$0C:FE5A .db $00,$9E,$9F,$00,$00,$9A,$9B,$00
$0C:FE62 .db $00,$12,$00,$10,$00,$00,$00,$20
$0C:FE6A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FE72 .db $00,$10,$00,$10,$00,$00,$00,$10
$0C:FE7A .db $00,$00,$99,$9A,$9B,$98,$00,$00
$0C:FE82 .db $00,$70,$00,$10,$00,$00,$00,$74
$0C:FE8A .db $04,$78,$00,$00,$00,$00,$00,$00
$0C:FE92 .db $00,$10,$00,$1E,$00,$00,$00,$0F
$0C:FE9A .db $00,$00,$00,$00,$00,$00,$9E,$9F
$0C:FEA2 .db $00,$6E,$00,$19,$16,$70,$05,$09
$0C:FEAA .db $00,$00,$97,$A3,$9B,$97,$A3,$9B
$0C:FEB2 .db $00,$0F,$00,$00,$00,$10,$00,$00
$0C:FEBA .db $00,$00,$00,$00,$00,$42,$04,$04
$0C:FEC2 .db $05,$09,$00,$00,$00,$10,$00,$00
$0C:FECA .db $00,$99,$9A,$9B,$00,$00,$00,$00
$0C:FED2 .db $00,$00,$00,$00,$00,$4D,$00,$00
$0C:FEDA .db $00,$00,$00,$00,$00,$00,$00,$00 ; OW L1 offset $0700
$0C:FEE2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FEEA .db $00,$00,$00,$00,$00,$00,$5A,$04
$0C:FEF2 .db $7D,$04,$04,$6E,$04,$04,$7D,$04
$0C:FEFA .db $04,$6E,$04,$15,$1A,$00,$00,$00
$0C:FF02 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FF0A .db $00,$00,$00,$00,$30,$00,$5F,$04
$0C:FF12 .db $66,$04,$04,$7D,$04,$04,$6E,$04
$0C:FF1A .db $04,$7D,$04,$05,$09,$00,$00,$00
$0C:FF22 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FF2A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FF32 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FF3A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FF42 .db $00,$00,$00,$49,$5F,$4A,$00,$00
$0C:FF4A .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FF52 .db $00,$00,$0A,$22,$00,$21,$1A,$00
$0C:FF5A .db $00,$00,$00,$00,$00,$00,$00,$5F
$0C:FF62 .db $04,$04,$68,$00,$5A,$00,$68,$04
$0C:FF6A .db $04,$5F,$00,$00,$00,$00,$00,$19
$0C:FF72 .db $18,$00,$00,$00,$3F,$00,$00,$00
$0C:FF7A .db $08,$09,$00,$00,$00,$00,$00,$00
$0C:FF82 .db $4B,$68,$00,$00,$3F,$00,$00,$68
$0C:FF8A .db $51,$00,$00,$00,$00,$00,$00,$00
$0C:FF92 .db $0D,$0E,$00,$07,$68,$17,$00,$1D
$0C:FF9A .db $1C,$00,$00,$00,$00,$00,$00,$0A
$0C:FFA2 .db $22,$07,$01,$11,$00,$1F,$14,$17
$0C:FFAA .db $21,$1A,$00,$00,$00,$00,$00,$5F
$0C:FFB2 .db $05,$11,$00,$00,$00,$00,$00,$1F
$0C:FFBA .db $16,$5F,$00,$00,$00,$00,$00,$00
$0C:FFC2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FFCA .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FFD2 .db $00,$00,$00,$00,$00,$00,$00,$00
$0C:FFDA .db $00,$00,$00,$00,$00,$FF,$FF,$FF ; OW L1 offset $0800
$0C:FFE2 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:FFEA .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:FFF2 .db $FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF
$0C:FFFA .db $FF,$FF,$FF,$FF,$FF,$FF