Document title screen attribute map (#504)

This commit is contained in:
Kelsey Higham 2022-12-16 04:03:07 -08:00 committed by GitHub
parent 099189ed39
commit a41dea8315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -681,74 +681,70 @@ IntroStage8Handler::
.return
ret ; $72A4: $C9
Data_001_72A5::
db $9A, $16, $0F, $00, $00, $00, $00, $00 ; $72A5 ; $72A5
db $00, $00, $00, $00, $00, $00, $00, $00 ; $72AD ; $72AD
db $00, $00, $00 ; $72B5
Data_001_72B8::
db $9A, $36, $0F, $00, $00 ; $72B8
db $00, $00, $00, $00, $00, $00, $00, $00 ; $72BD ; $72BD
db $00, $00, $00, $00, $00, $00 ; $72C5
Data_001_72CB::
db $9A, $56 ; $72CB
db $0F, $00, $00, $00, $00, $00, $00, $00 ; $72CD ; $72CD
db $00, $00, $00, $00, $00, $00, $00, $00 ; $72D5 ; $72D5
db $00 ; $72DD
; Title screen attribute map, encoded
; This controls the logo palette
TitleAttrMap1::
db $9A, $16, $0F
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
TitleAttrMap2::
db $9A, $36, $0F
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
TitleAttrMap3::
db $9A, $56, $0F
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
IF LANG_JP ;The JP version has a gradient in the logo
TitleAttrMap4::
db $9A, $76, $0F
db $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01, $01
TitleAttrMap5::
db $9A, $96, $0F
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
TitleAttrMap6::
db $9A, $B6, $0F
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
TitleAttrMap7::
db $9A, $D6, $0F
db $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02, $02
IF LANG_JP
TILE_A = $01
TILE_B = $02
ELSE
TILE_A = $00
TILE_B = $00
TitleAttrMap4::
db $9A, $76, $0F
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
TitleAttrMap5::
db $9A, $96, $0F
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
TitleAttrMap6::
db $9A, $B6, $0F
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
TitleAttrMap7::
db $9A, $D6, $0F
db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
ENDC
Data_001_72DE::
db $9A, $76, $0F ; $72DE
db TILE_A, TILE_A, TILE_A, TILE_A ; $72E1
db TILE_A, TILE_A, TILE_A, TILE_A ; $72E5
db TILE_A, TILE_A, TILE_A, TILE_A ; $72E9
db TILE_A, TILE_A, TILE_A, TILE_A ; $72ED
TitleAttrMap::
dw TitleAttrMap4
dw TitleAttrMap3
dw TitleAttrMap5
dw TitleAttrMap2
dw TitleAttrMap6
dw TitleAttrMap1
dw TitleAttrMap7
Data_001_72F1::
db $9A, $96, $0F ; $72F1
db TILE_B, TILE_B, TILE_B, TILE_B ; $72F4
db TILE_B, TILE_B, TILE_B, TILE_B ; $72F8
db TILE_B, TILE_B, TILE_B, TILE_B ; $72FC
db TILE_B, TILE_B, TILE_B, TILE_B ; $7300
Data_001_7304::
db $9A, $B6, $0F ; $7304
db TILE_B, TILE_B, TILE_B, TILE_B ; $7307
db TILE_B, TILE_B, TILE_B, TILE_B ; $730B
db TILE_B, TILE_B, TILE_B, TILE_B ; $730F
db TILE_B, TILE_B, TILE_B, TILE_B ; $7313
Data_001_7317::
db $9A, $D6, $0F ; $7317
db TILE_B, TILE_B, TILE_B, TILE_B ; $731A
db TILE_B, TILE_B, TILE_B, TILE_B ; $731E
db TILE_B, TILE_B, TILE_B, TILE_B ; $7322
db TILE_B, TILE_B, TILE_B, TILE_B ; $7326
Data_001_732A::
dw Data_001_72DE ; $732A
dw Data_001_72CB ; $732C
dw Data_001_72F1 ; $732E
dw Data_001_72B8 ; $7330
dw Data_001_7304 ; $7332
dw Data_001_72A5 ; $7334
dw Data_001_7317 ; $7336
func_001_7338::
ld a, [wIntroSubTimer] ; $7338: $FA $02 $D0
sla a ; $733B: $CB $27
ld e, a ; $733D: $5F
ld d, $00 ; $733E: $16 $00
ld hl, Data_001_732A ; $7340: $21 $2A $73
ld hl, TitleAttrMap ; $7340: $21 $2A $73
add hl, de ; $7343: $19
ld a, [hli] ; $7344: $2A
ld d, [hl] ; $7345: $56
@ -1686,6 +1682,8 @@ func_001_7920::
dec [hl] ; $7927: $35
ret ; $7928: $C9
; Position of the DX logo
IF LANG_JP
X_POS = $79
Y_OFFSET = $46