Placeholder non-generic names for engine/color functions

This commit is contained in:
pikalaxalt 2016-05-11 09:49:03 -04:00
parent 76819398a9
commit 295604cbb5
9 changed files with 142 additions and 127 deletions

View File

@ -1800,8 +1800,10 @@ Music_Vibrato: ; e8882
; e88bd ; e88bd
Music_SlidePitchTo: ; e88bd Music_SlidePitchTo: ; e88bd
; ???? ; set the target for pitch wheel
; params: 2 ; params: 2
; note duration
; target note
call GetMusicByte call GetMusicByte
ld [wCurNoteDuration], a ld [wCurNoteDuration], a
@ -1830,7 +1832,7 @@ Music_SlidePitchTo: ; e88bd
Music_Tone: ; e88e4 Music_Tone: ; e88e4
; tone ; tone
; params: 2 ; params: 1 (dw)
ld hl, Channel1Flags2 - Channel1 ld hl, Channel1Flags2 - Channel1
add hl, bc add hl, bc
set SOUND_CRY_PITCH, [hl] set SOUND_CRY_PITCH, [hl]
@ -1859,9 +1861,8 @@ MusicE7: ; e88f7
; e8906 ; e8906
Music_SoundDuty: ; e8906 Music_SoundDuty: ; e8906
; ???? + duty cycle ; sequence of 4 duty cycles to be looped
; params: 1 ; params: 1 (4 2-bit duty cycle arguments)
;
ld hl, Channel1Flags2 - Channel1 ld hl, Channel1Flags2 - Channel1
add hl, bc add hl, bc
set SOUND_DUTY, [hl] ; duty cycle set SOUND_DUTY, [hl] ; duty cycle

View File

@ -84,7 +84,7 @@ Predef_StartBattle: ; 8c20f
.NonMobile_LoadPokeballTiles: ; 8c2a0 .NonMobile_LoadPokeballTiles: ; 8c2a0
call LoadTrainerBattlePokeballTiles call LoadTrainerBattlePokeballTiles
hlbgcoord 0, 0 hlbgcoord 0, 0
call Function8c2cf call ConvertTrainerBattlePokeballTilesTo2bpp
ret ret
; 8c2aa ; 8c2aa
@ -113,7 +113,7 @@ LoadTrainerBattlePokeballTiles:
ret ret
; 8c2cf ; 8c2cf
Function8c2cf: ; 8c2cf ConvertTrainerBattlePokeballTilesTo2bpp: ; 8c2cf
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, $6 ld a, $6
@ -132,7 +132,7 @@ Function8c2cf: ; 8c2cf
pop hl pop hl
ld de, wDecompressScratch ld de, wDecompressScratch
ld b, BANK(Function8c2cf) ; BANK(@) ld b, BANK(ConvertTrainerBattlePokeballTilesTo2bpp) ; BANK(@)
ld c, $28 ld c, $28
call Request2bpp call Request2bpp
pop af pop af

View File

@ -79,6 +79,7 @@ CheckContestMon:
ret ret
Function8aa4: Function8aa4:
; XXX
push de push de
push bc push bc
ld hl, PalPacket_9ce6 ld hl, PalPacket_9ce6
@ -96,9 +97,9 @@ Function8aa4:
ld a, d ld a, d
ld [wSGBPals + 6], a ld [wSGBPals + 6], a
ld hl, wSGBPals ld hl, wSGBPals
call Function9809 call PushSGBPals_
ld hl, BlkPacket_9a86 ld hl, BlkPacket_9a86
call Function9809 call PushSGBPals_
ret ret
InitPartyMenuPalettes: InitPartyMenuPalettes:
@ -176,16 +177,17 @@ Function8b3f:
and a and a
ret z ret z
ld hl, BlkPacket_9a86 ld hl, BlkPacket_9a86
jp Function9809 jp PushSGBPals_
Function8b4d: Function8b4d:
; XXX
call CheckCGB call CheckCGB
jr nz, .cgb jr nz, .cgb
ld a, [hSGB] ld a, [hSGB]
and a and a
ret z ret z
ld hl, PalPacket_9c26 ld hl, PalPacket_9c26
jp Function9809 jp PushSGBPals_
.cgb .cgb
ld de, UnknOBPals ld de, UnknOBPals
@ -194,13 +196,14 @@ Function8b4d:
jp LoadHLPaletteIntoDE jp LoadHLPaletteIntoDE
Function8b67: Function8b67:
; XXX
call CheckCGB call CheckCGB
jr nz, .cgb jr nz, .cgb
ld a, [hSGB] ld a, [hSGB]
and a and a
ret z ret z
ld hl, PalPacket_9c36 ld hl, PalPacket_9c36
jp Function9809 jp PushSGBPals_
.cgb .cgb
ld de, UnknOBPals ld de, UnknOBPals
@ -209,8 +212,9 @@ Function8b67:
jp LoadHLPaletteIntoDE jp LoadHLPaletteIntoDE
Function8b81: Function8b81:
; XXX
call CheckCGB call CheckCGB
jr nz, .asm_8bb2 jr nz, .cgb
ld a, [hSGB] ld a, [hSGB]
and a and a
ret z ret z
@ -231,45 +235,45 @@ Function8b81:
ld a, [hl] ld a, [hl]
ld [wSGBPals + 6], a ld [wSGBPals + 6], a
ld hl, wSGBPals ld hl, wSGBPals
jp Function9809 jp PushSGBPals_
.asm_8bb2 .cgb
ld de, UnknOBPals ld de, UnknOBPals
ld a, c ld a, c
call GetMonPalettePointer_ call GetMonPalettePointer_
call LoadPalette_White_Col1_Col2_Black call LoadPalette_White_Col1_Col2_Black
ret ret
Function8bbd: LoadTrainerClassPaletteAsNthBGPal:
ld a, [TrainerClass] ld a, [TrainerClass]
call GetTrainerPalettePointer call GetTrainerPalettePointer
ld a, e ld a, e
jr asm_8bd7 jr got_palette_pointer_8bd7
Function8bc6: LoadMonPaletteAsNthBGPal:
ld a, [CurPartySpecies] ld a, [CurPartySpecies]
call GetMonPalettePointer call GetMonPalettePointer
ld a, e ld a, e
bit 7, a bit 7, a
jr z, .asm_8bd7 jr z, got_palette_pointer_8bd7
and $7f and $7f
rept 4
inc hl inc hl
endr inc hl
.asm_8bd7 inc hl
inc hl
asm_8bd7 got_palette_pointer_8bd7
push hl push hl
ld hl, UnknBGPals ld hl, UnknBGPals
ld de, $8 ld de, 1 palettes
.asm_8bde .loop
and a and a
jr z, .asm_8be5 jr z, .got_addr
add hl, de add hl, de
dec a dec a
jr .asm_8bde jr .loop
.asm_8be5 .got_addr
ld e, l ld e, l
ld d, h ld d, h
pop hl pop hl
@ -277,30 +281,31 @@ asm_8bd7
ret ret
Function8bec: Function8bec:
; XXX
ld a, [hCGB] ld a, [hCGB]
and a and a
jr nz, .asm_8bf7 jr nz, .cgb
ld hl, PlayerLightScreenCount ld hl, PlayerLightScreenCount
jp Function9809 jp PushSGBPals_
.asm_8bf7 .cgb
ld a, [EnemyLightScreenCount] ld a, [EnemyLightScreenCount] ; col
ld c, a ld c, a
ld a, [EnemyReflectCount] ld a, [EnemyReflectCount] ; row
hlcoord 0, 0, AttrMap hlcoord 0, 0, AttrMap
ld de, $14 ld de, SCREEN_WIDTH
.asm_8c04 .loop
and a and a
jr z, .asm_8c0b jr z, .done
add hl, de add hl, de
dec a dec a
jr .asm_8c04 jr .loop
.asm_8c0b .done
ld b, $0 ld b, $0
add hl, bc add hl, bc
lb bc, 6, 4 lb bc, 6, 4
ld a, [EnemySafeguardCount] ld a, [EnemySafeguardCount] ; value
and $3 and $3
call FillBoxCGB call FillBoxCGB
call LoadEDTile call LoadEDTile
@ -402,16 +407,16 @@ LoadStatsScreenPals:
ld a, $1 ld a, $1
ret ret
Function8cb4: LoadMailPalettes:
ld l, e ld l, e
ld h, 0 ld h, 0
add hl, hl add hl, hl
add hl, hl add hl, hl
add hl, hl add hl, hl
ld de, Palettes_8d05 ld de, .MailPals
add hl, de add hl, de
call CheckCGB call CheckCGB
jr nz, .asm_8cf0 jr nz, .cgb
push hl push hl
ld hl, PalPacket_9ce6 ld hl, PalPacket_9ce6
ld de, wSGBPals ld de, wSGBPals
@ -429,12 +434,12 @@ Function8cb4:
ld a, [hli] ld a, [hli]
ld [wSGBPals + 6], a ld [wSGBPals + 6], a
ld hl, wSGBPals ld hl, wSGBPals
call Function9809 call PushSGBPals_
ld hl, BlkPacket_9a86 ld hl, BlkPacket_9a86
call Function9809 call PushSGBPals_
ret ret
.asm_8cf0 .cgb
ld de, UnknBGPals ld de, UnknBGPals
ld bc, 1 palettes ld bc, 1 palettes
ld a, $5 ld a, $5
@ -444,7 +449,7 @@ Function8cb4:
call ApplyAttrMap call ApplyAttrMap
ret ret
Palettes_8d05: .MailPals:
RGB 20, 31, 11 RGB 20, 31, 11
RGB 31, 19, 00 RGB 31, 19, 00
RGB 31, 10, 09 RGB 31, 10, 09
@ -498,7 +503,8 @@ Palettes_8d05:
INCLUDE "predef/cgb.asm" INCLUDE "predef/cgb.asm"
Function95f0: Function95f0:
ld hl, Palette_9608 ; XXX
ld hl, .Palette
ld de, UnknBGPals ld de, UnknBGPals
ld bc, 8 ld bc, 8
ld a, $5 ld a, $5
@ -508,7 +514,7 @@ Function95f0:
call ApplyAttrMap call ApplyAttrMap
ret ret
Palette_9608: .Palette:
RGB 31, 31, 31 RGB 31, 31, 31
RGB 09, 31, 31 RGB 09, 31, 31
RGB 10, 12, 31 RGB 10, 12, 31
@ -605,30 +611,36 @@ FillBoxCGB:
jr nz, .row jr nz, .row
ret ret
Function9673: ResetBGPals:
push af push af
push bc push bc
push de push de
push hl push hl
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, $5 ld a, $5
ld [rSVBK], a ld [rSVBK], a
ld hl, UnknBGPals ld hl, UnknBGPals
ld c, 8 ld c, 8
.loop .loop
ld a, $ff ld a, $ff
rept 4
ld [hli], a ld [hli], a
endr ld [hli], a
ld [hli], a
ld [hli], a
xor a xor a
rept 4
ld [hli], a ld [hli], a
endr ld [hli], a
ld [hli], a
ld [hli], a
dec c dec c
jr nz, .loop jr nz, .loop
pop af pop af
ld [rSVBK], a ld [rSVBK], a
pop hl pop hl
pop de pop de
pop bc pop bc
@ -770,8 +782,8 @@ GetFrontpicPalettePointer:
GetTrainerPalettePointer: GetTrainerPalettePointer:
ld l, a ld l, a
ld h, 0 ld h, 0
add hl,hl add hl, hl
add hl,hl add hl, hl
ld bc, TrainerPalettes ld bc, TrainerPalettes
add hl, bc add hl, bc
ret ret
@ -831,19 +843,20 @@ Palettes_979c:
RGB 00, 00, 00 RGB 00, 00, 00
Function97cc: Function97cc:
; XXX
call CheckCGB call CheckCGB
ret z ret z
ld a, $90 ld a, $90
ld [rOBPI], a ld [rOBPI], a
ld a, $1c ld a, $1c
call GetPredefPal call GetPredefPal
call Function97e5 call .PushPalette
ld a, $21 ld a, $21
call GetPredefPal call GetPredefPal
call Function97e5 call .PushPalette
ret ret
Function97e5: .PushPalette:
ld c, 1 palettes ld c, 1 palettes
.loop .loop
ld a, [hli] ld a, [hli]
@ -875,7 +888,7 @@ rept 4
endr endr
ret ret
Function9809: PushSGBPals_:
ld a, [wcfbe] ld a, [wcfbe]
push af push af
set 7, a set 7, a
@ -937,17 +950,17 @@ InitSGBBorder:
xor a xor a
ld [rJOYP], a ld [rJOYP], a
ld [hSGB], a ld [hSGB], a
call Function994a call PushSGBBorderPalsAndWait
jr nc, .skip jr nc, .skip
ld a, $1 ld a, $1
ld [hSGB], a ld [hSGB], a
call Function98eb call _InitSGBBorderPals
call Function99b4 call SGBBorder_PushBGPals
call SGBDelayCycles call SGBDelayCycles
call Function993f call SGB_ClearVRAM
call Function992c call PushSGBBorder
call SGBDelayCycles call SGBDelayCycles
call Function993f call SGB_ClearVRAM
ld hl, PalPacket_9d66 ld hl, PalPacket_9d66
call PushSGBPals call PushSGBPals
@ -1012,7 +1025,7 @@ InitCGBPals::
jr nz, .loop jr nz, .loop
ret ret
Function98eb: _InitSGBBorderPals:
ld hl, .PalPacketPointerTable ld hl, .PalPacketPointerTable
ld c, 9 ld c, 9
.loop .loop
@ -1041,25 +1054,26 @@ Function98eb:
dw PalPacket_9de6 dw PalPacket_9de6
Function9911: Function9911:
; XXX
di di
xor a xor a
ld [rJOYP], a ld [rJOYP], a
ld hl, PalPacket_9d56 ld hl, PalPacket_9d56
call PushSGBPals call PushSGBPals
call Function992c call PushSGBBorder
call SGBDelayCycles call SGBDelayCycles
call Function993f call SGB_ClearVRAM
ld hl, PalPacket_9d66 ld hl, PalPacket_9d66
call PushSGBPals call PushSGBPals
ei ei
ret ret
Function992c: PushSGBBorder:
call .LoadSGBBorderPointers call .LoadSGBBorderPointers
push de push de
call Function9a24 call SGBBorder_YetMorePalPushing
pop hl pop hl
call Function99d8 call SGBBorder_MorePalPushing
ret ret
.LoadSGBBorderPointers: .LoadSGBBorderPointers:
@ -1067,21 +1081,21 @@ Function992c:
ld de, SGBBorderMap ld de, SGBBorderMap
ret ret
Function993f: SGB_ClearVRAM:
ld hl, VTiles0 ld hl, VTiles0
ld bc, $2000 ld bc, $2000
xor a xor a
call ByteFill call ByteFill
ret ret
Function994a: PushSGBBorderPalsAndWait:
ld hl, PalPacket_9d26 ld hl, PalPacket_9d26
call PushSGBPals call PushSGBPals
call SGBDelayCycles call SGBDelayCycles
ld a, [rJOYP] ld a, [rJOYP]
and $3 and $3
cp $3 cp $3
jr nz, .asm_99a6 jr nz, .carry
ld a, $20 ld a, $20
ld [rJOYP], a ld [rJOYP], a
ld a, [rJOYP] ld a, [rJOYP]
@ -1109,22 +1123,22 @@ endr
ld a, [rJOYP] ld a, [rJOYP]
and $3 and $3
cp $3 cp $3
jr nz, .asm_99a6 jr nz, .carry
call Function99ab call .FinalPush
and a and a
ret ret
.asm_99a6 .carry
call Function99ab call .FinalPush
scf scf
ret ret
Function99ab: .FinalPush:
ld hl, PalPacket_9d16 ld hl, PalPacket_9d16
call PushSGBPals call PushSGBPals
jp SGBDelayCycles jp SGBDelayCycles
Function99b4: SGBBorder_PushBGPals:
call DisableLCD call DisableLCD
ld a, %11100100 ld a, %11100100
ld [rBGP], a ld [rBGP], a
@ -1141,7 +1155,7 @@ Function99b4:
ld [rBGP], a ld [rBGP], a
ret ret
Function99d8: SGBBorder_MorePalPushing:
call DisableLCD call DisableLCD
ld a, $e4 ld a, $e4
ld [rBGP], a ld [rBGP], a
@ -1149,7 +1163,7 @@ Function99d8:
ld bc, 20 tiles ld bc, 20 tiles
call CopyData call CopyData
ld b, 18 ld b, 18
.asm_99ea .loop
push bc push bc
ld bc, $c ld bc, $c
call CopyData call CopyData
@ -1159,7 +1173,7 @@ Function99d8:
call CopyData call CopyData
pop bc pop bc
dec b dec b
jr nz, .asm_99ea jr nz, .loop
ld bc, $140 ld bc, $140
call CopyData call CopyData
ld bc, Start ld bc, Start
@ -1175,13 +1189,13 @@ Function99d8:
ld [rBGP], a ld [rBGP], a
ret ret
Function9a24: SGBBorder_YetMorePalPushing:
call DisableLCD call DisableLCD
ld a, %11100100 ld a, %11100100
ld [rBGP], a ld [rBGP], a
ld de, VTiles1 ld de, VTiles1
ld b, $80 ld b, $80
.asm_9a30 .loop
push bc push bc
ld bc, 1 tiles ld bc, 1 tiles
call CopyData call CopyData
@ -1189,7 +1203,7 @@ Function9a24:
call ClearBytes call ClearBytes
pop bc pop bc
dec b dec b
jr nz, .asm_9a30 jr nz, .loop
call DrawDefaultTiles call DrawDefaultTiles
ld a, $e3 ld a, $e3
ld [rLCDC], a ld [rLCDC], a
@ -1734,34 +1748,34 @@ Palettes_9df6:
RGB 31, 31, 31 RGB 31, 31, 31
SGBBorderMap: SGBBorderMap:
db $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $14,$14, $15,$14, $16,$14, $17,$14, $17,$54, $16,$54, $15,$54, $14,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14 db $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $14, $14, $15, $14, $16, $14, $17, $14, $17, $54, $16, $54, $15, $54, $14, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14
db $01,$14, $02,$14, $03,$14, $03,$54, $02,$54, $01,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $24,$14, $25,$14, $26,$14, $07,$14, $07,$54, $26,$54, $25,$54, $24,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$54, $01,$14, $02,$14, $03,$14, $03,$54, $02,$54, $01,$54 db $01, $14, $02, $14, $03, $14, $03, $54, $02, $54, $01, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $24, $14, $25, $14, $26, $14, $07, $14, $07, $54, $26, $54, $25, $54, $24, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $54, $01, $14, $02, $14, $03, $14, $03, $54, $02, $54, $01, $54
db $11,$14, $12,$14, $13,$14, $13,$54, $12,$54, $11,$54, $10,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $24,$14, $34,$14, $35,$14, $35,$54, $34,$54, $33,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $10,$14, $11,$14, $12,$14, $13,$14, $13,$54, $12,$54, $11,$54 db $11, $14, $12, $14, $13, $14, $13, $54, $12, $54, $11, $54, $10, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $24, $14, $34, $14, $35, $14, $35, $54, $34, $54, $33, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $10, $14, $11, $14, $12, $14, $13, $14, $13, $54, $12, $54, $11, $54
db $21,$14, $22,$14, $23,$14, $23,$54, $22,$54, $21,$54, $20,$54, $07,$14, $08,$14, $09,$14, $0a,$14, $0b,$14, $0c,$14, $0d,$14, $07,$14, $07,$14, $18,$14, $09,$14, $1a,$14, $1b,$14, $0d,$14, $0c,$14, $1c,$14, $29,$14, $07,$14, $20,$14, $21,$14, $22,$14, $23,$14, $23,$54, $22,$54, $21,$54 db $21, $14, $22, $14, $23, $14, $23, $54, $22, $54, $21, $54, $20, $54, $07, $14, $08, $14, $09, $14, $0a, $14, $0b, $14, $0c, $14, $0d, $14, $07, $14, $07, $14, $18, $14, $09, $14, $1a, $14, $1b, $14, $0d, $14, $0c, $14, $1c, $14, $29, $14, $07, $14, $20, $14, $21, $14, $22, $14, $23, $14, $23, $54, $22, $54, $21, $54
db $31,$14, $32,$14, $07,$14, $07,$14, $32,$54, $36,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $38,$10, $27,$10, $32,$14, $07,$54, $07,$54, $32,$54, $31,$54 db $31, $14, $32, $14, $07, $14, $07, $14, $32, $54, $36, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $38, $10, $27, $10, $32, $14, $07, $54, $07, $54, $32, $54, $31, $54
db $05,$14, $06,$14, $07,$14, $07,$54, $06,$54, $1f,$10, $37,$10, $06,$14, $07,$14, $07,$54, $06,$54, $05,$54 db $05, $14, $06, $14, $07, $14, $07, $54, $06, $54, $1f, $10, $37, $10, $06, $14, $07, $14, $07, $54, $06, $54, $05, $54
db $15,$14, $16,$14, $17,$14, $17,$54, $16,$54, $1f,$10, $37,$10, $16,$14, $17,$14, $17,$54, $16,$54, $15,$54 db $15, $14, $16, $14, $17, $14, $17, $54, $16, $54, $1f, $10, $37, $10, $16, $14, $17, $14, $17, $54, $16, $54, $15, $54
db $25,$14, $26,$14, $07,$14, $07,$54, $26,$54, $1f,$10, $37,$10, $26,$14, $07,$14, $07,$54, $26,$54, $25,$54 db $25, $14, $26, $14, $07, $14, $07, $54, $26, $54, $1f, $10, $37, $10, $26, $14, $07, $14, $07, $54, $26, $54, $25, $54
db $33,$14, $34,$14, $35,$14, $35,$54, $34,$54, $1f,$10, $37,$10, $34,$14, $35,$14, $35,$54, $34,$54, $33,$54 db $33, $14, $34, $14, $35, $14, $35, $54, $34, $54, $1f, $10, $37, $10, $34, $14, $35, $14, $35, $54, $34, $54, $33, $54
db $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14 db $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14
db $02,$54, $01,$54, $07,$54, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $07,$14, $01,$14, $02,$14 db $02, $54, $01, $54, $07, $54, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $07, $14, $01, $14, $02, $14
db $12,$54, $11,$54, $10,$54, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $10,$14, $11,$14, $12,$14 db $12, $54, $11, $54, $10, $54, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $10, $14, $11, $14, $12, $14
db $22,$54, $21,$54, $20,$54, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $20,$14, $21,$14, $22,$14 db $22, $54, $21, $54, $20, $54, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $20, $14, $21, $14, $22, $14
db $32,$54, $31,$54, $30,$54, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $30,$14, $31,$14, $32,$14 db $32, $54, $31, $54, $30, $54, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $30, $14, $31, $14, $32, $14
db $06,$54, $05,$54, $04,$54, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $04,$14, $05,$14, $06,$14 db $06, $54, $05, $54, $04, $54, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $04, $14, $05, $14, $06, $14
db $16,$54, $15,$54, $14,$54, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $14,$14, $15,$14, $16,$14 db $16, $54, $15, $54, $14, $54, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $14, $14, $15, $14, $16, $14
db $26,$54, $25,$54, $24,$54, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $24,$14, $25,$14, $26,$14 db $26, $54, $25, $54, $24, $54, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $24, $14, $25, $14, $26, $14
db $34,$54, $33,$54, $07,$54, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $07,$14, $33,$14, $34,$14 db $34, $54, $33, $54, $07, $54, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $07, $14, $33, $14, $34, $14
db $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $1f,$10, $37,$10, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14 db $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $1f, $10, $37, $10, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14
db $01,$14, $02,$14, $03,$14, $03,$54, $02,$54, $1f,$10, $37,$10, $02,$14, $03,$14, $03,$54, $02,$54, $01,$54 db $01, $14, $02, $14, $03, $14, $03, $54, $02, $54, $1f, $10, $37, $10, $02, $14, $03, $14, $03, $54, $02, $54, $01, $54
db $11,$14, $12,$14, $13,$14, $13,$54, $12,$54, $1f,$10, $37,$10, $12,$14, $13,$14, $13,$54, $12,$54, $11,$54 db $11, $14, $12, $14, $13, $14, $13, $54, $12, $54, $1f, $10, $37, $10, $12, $14, $13, $14, $13, $54, $12, $54, $11, $54
db $21,$14, $22,$14, $23,$14, $23,$54, $22,$54, $1f,$10, $37,$10, $22,$14, $23,$14, $23,$54, $22,$54, $21,$54 db $21, $14, $22, $14, $23, $14, $23, $54, $22, $54, $1f, $10, $37, $10, $22, $14, $23, $14, $23, $54, $22, $54, $21, $54
db $31,$14, $32,$14, $07,$14, $07,$14, $32,$54, $1f,$10, $37,$10, $32,$14, $07,$54, $07,$54, $32,$54, $31,$54 db $31, $14, $32, $14, $07, $14, $07, $14, $32, $54, $1f, $10, $37, $10, $32, $14, $07, $54, $07, $54, $32, $54, $31, $54
db $05,$14, $06,$14, $07,$14, $07,$54, $06,$54, $2e,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2f,$10, $2d,$10, $06,$14, $07,$14, $07,$54, $06,$54, $05,$54 db $05, $14, $06, $14, $07, $14, $07, $54, $06, $54, $2e, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2f, $10, $2d, $10, $06, $14, $07, $14, $07, $54, $06, $54, $05, $54
db $15,$14, $16,$14, $17,$14, $17,$54, $16,$54, $15,$54, $14,$54, $07,$14, $07,$14, $39,$14, $0e,$14, $09,$14, $0f,$14, $28,$14, $07,$14, $19,$14, $0c,$14, $1c,$14, $29,$14, $2a,$14, $2b,$14, $2c,$14, $39,$14, $07,$14, $07,$14, $14,$14, $15,$14, $16,$14, $17,$14, $17,$54, $16,$54, $15,$54 db $15, $14, $16, $14, $17, $14, $17, $54, $16, $54, $15, $54, $14, $54, $07, $14, $07, $14, $39, $14, $0e, $14, $09, $14, $0f, $14, $28, $14, $07, $14, $19, $14, $0c, $14, $1c, $14, $29, $14, $2a, $14, $2b, $14, $2c, $14, $39, $14, $07, $14, $07, $14, $14, $14, $15, $14, $16, $14, $17, $14, $17, $54, $16, $54, $15, $54
db $25,$14, $26,$14, $07,$14, $07,$54, $26,$54, $25,$54, $24,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $01,$14, $02,$14, $03,$14, $03,$54, $02,$54, $01,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $24,$14, $25,$14, $26,$14, $07,$14, $07,$54, $26,$54, $25,$54 db $25, $14, $26, $14, $07, $14, $07, $54, $26, $54, $25, $54, $24, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $01, $14, $02, $14, $03, $14, $03, $54, $02, $54, $01, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $24, $14, $25, $14, $26, $14, $07, $14, $07, $54, $26, $54, $25, $54
db $33,$14, $34,$14, $35,$14, $35,$54, $34,$54, $24,$54, $07,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $10,$14, $11,$14, $12,$14, $13,$14, $13,$54, $12,$54, $11,$54, $10,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $24,$14, $34,$14, $35,$14, $35,$54, $34,$54, $33,$54 db $33, $14, $34, $14, $35, $14, $35, $54, $34, $54, $24, $54, $07, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $10, $14, $11, $14, $12, $14, $13, $14, $13, $54, $12, $54, $11, $54, $10, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $24, $14, $34, $14, $35, $14, $35, $54, $34, $54, $33, $54
db $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $20,$14, $21,$14, $22,$14, $23,$14, $23,$54, $22,$54, $21,$54, $20,$54, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14, $07,$14 db $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $20, $14, $21, $14, $22, $14, $23, $14, $23, $54, $22, $54, $21, $54, $20, $54, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14, $07, $14
SGBBorderPalettes: SGBBorderPalettes:
RGB 24, 06, 06 RGB 24, 06, 06
@ -1946,9 +1960,9 @@ LoadMapPals:
ld a, [MapGroup] ld a, [MapGroup]
ld l, a ld l, a
ld h, 0 ld h, 0
add hl,hl add hl, hl
add hl,hl add hl, hl
add hl,hl add hl, hl
ld de, RoofPals ld de, RoofPals
add hl, de add hl, de
ld a, [TimeOfDayPal] ld a, [TimeOfDayPal]

View File

@ -582,7 +582,7 @@ SpriteAnimSeqData: ; 8d1c4
db SPRITE_ANIM_FRAMESET_25, SPRITE_ANIM_SEQ_NULL, $00 ; 1b headbutt db SPRITE_ANIM_FRAMESET_25, SPRITE_ANIM_SEQ_NULL, $00 ; 1b headbutt
db SPRITE_ANIM_FRAMESET_20, SPRITE_ANIM_SEQ_13, $00 ; 1c db SPRITE_ANIM_FRAMESET_20, SPRITE_ANIM_SEQ_13, $00 ; 1c
db SPRITE_ANIM_FRAMESET_26, SPRITE_ANIM_SEQ_1A, $00 ; 1d db SPRITE_ANIM_FRAMESET_26, SPRITE_ANIM_SEQ_1A, $00 ; 1d
db SPRITE_ANIM_FRAMESET_2D, SPRITE_ANIM_SEQ_NULL, $00 ; 1e db SPRITE_ANIM_FRAMESET_2D, SPRITE_ANIM_SEQ_NULL, $00 ; 1e kris on map
db SPRITE_ANIM_FRAMESET_2E, SPRITE_ANIM_SEQ_NULL, $00 ; 1f kris on magnet train db SPRITE_ANIM_FRAMESET_2E, SPRITE_ANIM_SEQ_NULL, $00 ; 1f kris on magnet train
db SPRITE_ANIM_FRAMESET_2F, SPRITE_ANIM_SEQ_NULL, $00 ; 20 db SPRITE_ANIM_FRAMESET_2F, SPRITE_ANIM_SEQ_NULL, $00 ; 20
db SPRITE_ANIM_FRAMESET_30, SPRITE_ANIM_SEQ_NULL, $00 ; 21 db SPRITE_ANIM_FRAMESET_30, SPRITE_ANIM_SEQ_NULL, $00 ; 21

View File

@ -37,7 +37,7 @@ ReadAnyMail: ; b9237
call WaitBGMap call WaitBGMap
ld a, [Buffer3] ld a, [Buffer3]
ld e, a ld e, a
callba Function8cb4 callba LoadMailPalettes
call SetPalettes call SetPalettes
xor a xor a
ld [hJoyPressed], a ld [hJoyPressed], a

View File

@ -1492,7 +1492,7 @@ Function17d93a: ; 17d93a
ld [CurPartySpecies], a ld [CurPartySpecies], a
ld a, [$c70c] ld a, [$c70c]
ld e, a ld e, a
callba Function8bc6 callba LoadMonPaletteAsNthBGPal
call SetPalettes call SetPalettes
ld a, [$c708] ld a, [$c708]
ld l, a ld l, a
@ -1528,7 +1528,7 @@ Function17d98b: ; 17d98b
ld [TrainerClass], a ld [TrainerClass], a
ld a, [$c70b] ld a, [$c70b]
ld e, a ld e, a
callba Function8bbd callba LoadTrainerClassPaletteAsNthBGPal
call SetPalettes call SetPalettes
ld a, [$c708] ld a, [$c708]
ld e, a ld e, a

View File

@ -14,7 +14,7 @@ Predef_LoadSGBLayoutCGB: ; 8d59
.not_ram .not_ram
cp SCGB_PARTY_MENU_HP_PALS cp SCGB_PARTY_MENU_HP_PALS
jp z, CGB_ApplyPartyMenuHPPals jp z, CGB_ApplyPartyMenuHPPals
call Function9673 call ResetBGPals
ld l, a ld l, a
ld h, 0 ld h, 0
add hl, hl add hl, hl

View File

@ -5,7 +5,7 @@ GetMysteryGift_MobileAdapterLayout: ; 4930f (mobile)
ld a, [SGBPredef] ld a, [SGBPredef]
.not_ram .not_ram
push af push af
callba Function9673 callba ResetBGPals
pop af pop af
ld l, a ld l, a
ld h, 0 ld h, 0

View File

@ -65,7 +65,7 @@ Predef_LoadSGBLayout: ; 864c
.SGB_BattleColors: ; 86b4 .SGB_BattleColors: ; 86b4
ld hl, BlkPacket_9aa6 ld hl, BlkPacket_9aa6
call Function9809 call PushSGBPals_
ld hl, PalPacket_9ce6 ld hl, PalPacket_9ce6
ld de, wSGBPals ld de, wSGBPals
@ -627,7 +627,7 @@ endr
.Finish: ; 8a60 .Finish: ; 8a60
push de push de
call Function9809 call PushSGBPals_
pop hl pop hl
jp Function9809 jp PushSGBPals_
; 8a68 ; 8a68