titlescreen.asm
romh-acking_return-of-mario-bros-fds-en/asm/titlescreen.asm
arch nes.cpu

table "asm/tbl/koopa screen.tbl"

////////////////////////////////////
// Titlescreen text
////////////////////////////////////

org $4350
db "NINTENDO"


////////////////////////////////////
// Titlescreen GFX Tilemap
////////////////////////////////////

// Delete old titlescreen tilemaps
org $425F; base $9112; fill $12a, $ea
org $6a10; base $b8c3

db $20,$83,$02,$70,$71
db $20,$85,$4A,$72
db $20,$90,$4A,$72
db $20,$9A,$02,$73,$74
db $20,$A3,$02,$75,$76
db $20,$BA,$02,$77,$78

// Returns
db $20,$c9,$0d,$50,$51,$52,$53,$54,$55,$56,$57,$58,$59,$68,$69,$6a
db $20,$e9,$0d,$A0,$A1,$A2,$A3,$A4,$A5,$A6,$A7,$A8,$a9,$6c,$6d,$6e

// Mario Bros.
db $21,$06,$13,$84,$85,$85,$87,$85,$84,$85,$84,$87,$85,$FF,$84,$85,$84,$85,$87,$85,$87,$85
db $21,$26,$13,$84,$86,$86,$89,$86,$84,$86,$84,$89,$86,$FF,$84,$86,$84,$86,$89,$86,$89,$8C
db $21,$46,$13,$84,$86,$86,$84,$4F,$84,$88,$84,$89,$86,$FF,$84,$88,$84,$88,$89,$86,$8A,$85
db $21,$66,$13,$84,$86,$86,$89,$86,$84,$86,$84,$89,$86,$FF,$84,$86,$84,$86,$89,$86,$8D,$86
db $21,$86,$14,$84,$86,$86,$89,$86,$84,$86,$84,$8A,$8B,$FF,$84,$8B,$84,$86,$8A,$8B,$8A,$8B,$8E

db $21,$7B,$C2,$7A
db $20,$DB,$C2,$7A

db $21,$63,$c2,$79
db $20,$c3,$c2,$79

db $21,$A3,$02,$7B,$7C
db $21,$BA,$02,$7D,$7E
db $21,$C3,$02,$7F,$80
db $21,$C5,$4A,$81
db $21,$D0,$4A,$81
db $21,$DA,$02,$82,$83
db $22,$6B,$0A,"PUSH START"
db $23,$26,$13,$9D,"1983,1988 NINTENDO"
db $23,$71,$0A,"NAGATANIEN"
db $23,$C8,$01,$22
db $23,$CF,$03,$AA,$6A,$22
db $23,$D6,$09,$48,$AA,$66,$51,$50,$50,$50,$50,$54
db $23,$E0,$48,$AA
db $23,$F1,$06,$AE,$EF,$FF,$FF,$FF,$FF,$FF

//-------------------
// Repoint tilemaps
//-------------------
org $416F; base $9022
db $c3,$b8

