mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
Merge pull request #234 from yenatch/incbins
SGB/CGB data, contest entrants, emotes, pack gfx
This commit is contained in:
commit
4c2a480ebc
1522
engine/color.asm
1522
engine/color.asm
File diff suppressed because it is too large
Load Diff
@ -529,8 +529,8 @@ Function9693a: ; 9693a
|
||||
ret
|
||||
|
||||
.asm_96966
|
||||
ld a, $4
|
||||
ld hl, $75f8
|
||||
ld a, BANK(UnknownScript_0x135f8)
|
||||
ld hl, UnknownScript_0x135f8
|
||||
call CallScript
|
||||
scf
|
||||
ret
|
||||
@ -765,8 +765,8 @@ TryReadSign: ; 96a38
|
||||
ld de, EngineBuffer1
|
||||
ld bc, 3
|
||||
call FarCopyBytes
|
||||
ld a, $4
|
||||
ld hl, $7625
|
||||
ld a, BANK(UnknownScript_0x13625)
|
||||
ld hl, UnknownScript_0x13625
|
||||
call CallScript
|
||||
scf
|
||||
ret
|
||||
@ -876,8 +876,8 @@ PlayerMovement: ; 96af0
|
||||
|
||||
.three ; 96b20
|
||||
; force the player to move in some direction
|
||||
ld a, $4
|
||||
ld hl, $653d
|
||||
ld a, BANK(UnknownScript_0x1253d)
|
||||
ld hl, UnknownScript_0x1253d
|
||||
call CallScript
|
||||
; ld a, -1
|
||||
ld c, a
|
||||
@ -1025,8 +1025,8 @@ Function96bd7: ; 96bd7
|
||||
dec a
|
||||
ld [$dca1], a
|
||||
ret nz
|
||||
ld a, $4
|
||||
ld hl, $7619
|
||||
ld a, BANK(UnknownScript_0x13619)
|
||||
ld hl, UnknownScript_0x13619
|
||||
call CallScript
|
||||
scf
|
||||
ret
|
||||
|
@ -1561,8 +1561,8 @@ Script_returnafterbattle: ; 0x97459
|
||||
and $3f
|
||||
cp $1
|
||||
jr nz, .asm_97470 ; 0x97466 $8
|
||||
ld b, $4
|
||||
ld hl, $64c1
|
||||
ld b, BANK(UnknownScript_0x124c1)
|
||||
ld hl, UnknownScript_0x124c1
|
||||
jp ScriptJump
|
||||
.asm_97470
|
||||
bit 0, d
|
||||
|
BIN
gfx/emotes/bolt.2bpp
Normal file
BIN
gfx/emotes/bolt.2bpp
Normal file
Binary file not shown.
BIN
gfx/emotes/fish.2bpp
Normal file
BIN
gfx/emotes/fish.2bpp
Normal file
Binary file not shown.
BIN
gfx/emotes/happy.2bpp
Normal file
BIN
gfx/emotes/happy.2bpp
Normal file
Binary file not shown.
BIN
gfx/emotes/heart.2bpp
Normal file
BIN
gfx/emotes/heart.2bpp
Normal file
Binary file not shown.
BIN
gfx/emotes/question.2bpp
Normal file
BIN
gfx/emotes/question.2bpp
Normal file
Binary file not shown.
BIN
gfx/emotes/sad.2bpp
Normal file
BIN
gfx/emotes/sad.2bpp
Normal file
Binary file not shown.
BIN
gfx/emotes/shock.2bpp
Normal file
BIN
gfx/emotes/shock.2bpp
Normal file
Binary file not shown.
BIN
gfx/emotes/sleep.2bpp
Normal file
BIN
gfx/emotes/sleep.2bpp
Normal file
Binary file not shown.
BIN
gfx/misc/fishing.2bpp
Normal file
BIN
gfx/misc/fishing.2bpp
Normal file
Binary file not shown.
Binary file not shown.
BIN
gfx/misc/pack_menu.2bpp
Normal file
BIN
gfx/misc/pack_menu.2bpp
Normal file
Binary file not shown.
BIN
gfx/ow/misc.2bpp
BIN
gfx/ow/misc.2bpp
Binary file not shown.
@ -1,3 +1,5 @@
|
||||
PokemonPalettes: ; a8d6
|
||||
|
||||
BulbasaurPalette: INCLUDE "gfx/pics/001/normal.pal"
|
||||
BulbasaurShinyPalette: INCLUDE "gfx/pics/001/shiny.pal"
|
||||
IvysaurPalette: INCLUDE "gfx/pics/002/normal.pal"
|
||||
@ -500,3 +502,34 @@ HoOhPalette: INCLUDE "gfx/pics/250/normal.pal"
|
||||
HoOhShinyPalette: INCLUDE "gfx/pics/250/shiny.pal"
|
||||
CelebiPalette: INCLUDE "gfx/pics/251/normal.pal"
|
||||
CelebiShinyPalette: INCLUDE "gfx/pics/251/shiny.pal"
|
||||
|
||||
; 252
|
||||
RGB 30, 26, 11
|
||||
RGB 23, 16, 00
|
||||
; 252 shiny
|
||||
RGB 30, 26, 11
|
||||
RGB 23, 16, 00
|
||||
|
||||
; Egg
|
||||
RGB 30, 26, 11
|
||||
RGB 23, 16, 00
|
||||
; Egg shiny
|
||||
RGB 30, 26, 11
|
||||
RGB 23, 16, 00
|
||||
|
||||
; 254
|
||||
RGB 30, 26, 11
|
||||
RGB 23, 16, 00
|
||||
; 254 shiny
|
||||
RGB 30, 26, 11
|
||||
RGB 23, 16, 00
|
||||
|
||||
; 255
|
||||
RGB 23, 23, 23
|
||||
RGB 17, 17, 17
|
||||
; 255 shiny
|
||||
RGB 23, 23, 23
|
||||
RGB 17, 17, 17
|
||||
|
||||
; b0ce
|
||||
|
||||
|
@ -1,3 +1,16 @@
|
||||
|
||||
TrainerPalettes: ; b0ce
|
||||
|
||||
PlayerPalette: ; b0ce
|
||||
; The player's palette
|
||||
RGB 25, 18, 12
|
||||
RGB 22, 09, 05
|
||||
|
||||
KrisPalette: ; b0d0
|
||||
; Apparently Kris uses Falkner's palette
|
||||
; RGB 27, 17, 14
|
||||
; RGB 07, 05, 31
|
||||
|
||||
FalknerPalette: INCLUDE "gfx/trainers/000.pal"
|
||||
WhitneyPalette: INCLUDE "gfx/trainers/001.pal"
|
||||
BugsyPalette: INCLUDE "gfx/trainers/002.pal"
|
||||
@ -65,3 +78,5 @@ BluePalette: INCLUDE "gfx/trainers/063.pal"
|
||||
OfficerPalette: INCLUDE "gfx/trainers/064.pal"
|
||||
GruntfPalette: INCLUDE "gfx/trainers/065.pal"
|
||||
MysticalmanPalette: INCLUDE "gfx/trainers/066.pal"
|
||||
; b1de
|
||||
|
||||
|
229
predef/cgb.asm
229
predef/cgb.asm
@ -68,15 +68,15 @@ Table8d7a: ; 8d7a
|
||||
; 8db8
|
||||
|
||||
Function8db8: ; 8db8
|
||||
ld hl, $5c67
|
||||
ld hl, PalPacket_9c66 + 1
|
||||
ld de, $d000
|
||||
ld c, $4
|
||||
call Function9615
|
||||
ld hl, $5c67
|
||||
ld hl, PalPacket_9c66 + 1
|
||||
ld de, $d020
|
||||
ld c, $4
|
||||
call Function9615
|
||||
ld hl, $5c67
|
||||
ld hl, PalPacket_9c66 + 1
|
||||
ld de, MartPointer
|
||||
ld c, $2
|
||||
call Function9615
|
||||
@ -95,7 +95,7 @@ Function8ddb: ; 8ddb
|
||||
ld h, $0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
ld bc, $68be
|
||||
ld bc, Palettes_a8be
|
||||
add hl, bc
|
||||
call Function9643
|
||||
ld a, [PlayerHPPal]
|
||||
@ -103,10 +103,10 @@ Function8ddb: ; 8ddb
|
||||
ld h, $0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
ld bc, $68be
|
||||
ld bc, Palettes_a8be
|
||||
add hl, bc
|
||||
call Function9643
|
||||
ld hl, $68ca
|
||||
ld hl, Palettes_a8ca
|
||||
call Function9643
|
||||
ld de, MartPointer
|
||||
pop hl
|
||||
@ -147,7 +147,7 @@ Function8e23: ; 8e23
|
||||
ld bc, $0078
|
||||
ld a, $7
|
||||
call ByteFill
|
||||
ld hl, $579c
|
||||
ld hl, Palettes_979c
|
||||
ld de, $d050
|
||||
ld bc, $0030
|
||||
ld a, $5
|
||||
@ -161,9 +161,9 @@ Function8e85: ; 8e85
|
||||
callba Function100dc0
|
||||
|
||||
Function8e8b: ; 8e8b
|
||||
ld hl, $7311
|
||||
ld hl, Palette_b311
|
||||
jr nc, .asm_8e93
|
||||
ld hl, $7309
|
||||
ld hl, Palette_b309
|
||||
|
||||
.asm_8e93
|
||||
ld de, $d038
|
||||
@ -175,9 +175,9 @@ Function8e8b: ; 8e8b
|
||||
|
||||
Function8e9f: ; 8e9f
|
||||
callba Function100dc0
|
||||
ld hl, $7311
|
||||
ld hl, Palette_b311
|
||||
jr nc, .asm_8ead
|
||||
ld hl, $7309
|
||||
ld hl, Palette_b309
|
||||
|
||||
.asm_8ead
|
||||
ld de, $d000
|
||||
@ -191,11 +191,11 @@ Function8eb9: ; 8eb9
|
||||
ld a, [PlayerGender]
|
||||
bit 0, a
|
||||
jr z, .asm_8ec5
|
||||
ld hl, $7759
|
||||
ld hl, Palettes_b759
|
||||
jr .asm_8ec8
|
||||
|
||||
.asm_8ec5
|
||||
ld hl, $7729
|
||||
ld hl, Palettes_b729
|
||||
|
||||
.asm_8ec8
|
||||
ld de, $d000
|
||||
@ -215,14 +215,14 @@ Function8edb: ; 8edb
|
||||
ld h, $0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
ld bc, $68be
|
||||
ld bc, Palettes_a8be
|
||||
add hl, bc
|
||||
call Function9643
|
||||
ld a, [CurPartySpecies]
|
||||
ld bc, TempMonDVs
|
||||
call Function974b
|
||||
call Function9643
|
||||
ld hl, $68ca
|
||||
ld hl, Palettes_a8ca
|
||||
call Function9643
|
||||
ld hl, Palette8f52
|
||||
ld de, $d018
|
||||
@ -274,7 +274,13 @@ Palette8f52: ; 8f52
|
||||
RGB 00, 00, 00
|
||||
; 8f6a
|
||||
|
||||
INCBIN "baserom.gbc", $8f6a, $8f70 - $8f6a
|
||||
Unknown_8f6a: ; 8f6a
|
||||
RGB 31, 19, 31
|
||||
|
||||
RGB 21, 31, 14
|
||||
|
||||
RGB 17, 31, 31
|
||||
; 8f70
|
||||
|
||||
Function8f70: ; 8f70
|
||||
ld de, Unkn1Pals
|
||||
@ -355,7 +361,28 @@ Function8fca: ; 8fca
|
||||
ret
|
||||
; 9009
|
||||
|
||||
INCBIN "baserom.gbc", $9009, $9036 - $9009
|
||||
Function9009: ; 9009
|
||||
ld hl, Palette9036
|
||||
call Function9630
|
||||
jr .asm_901a
|
||||
|
||||
ld bc, TempMonDVs
|
||||
call Function974b
|
||||
call Function9643
|
||||
|
||||
.asm_901a
|
||||
call Function9699
|
||||
ld hl, $cdee
|
||||
ld bc, $0707
|
||||
ld a, $1
|
||||
call Function9663
|
||||
call Function971a
|
||||
call Function96b3
|
||||
call Function96a4
|
||||
ld a, $1
|
||||
ld [hCGBPalUpdate], a
|
||||
ret
|
||||
; 9036
|
||||
|
||||
Palette9036: ; 9036
|
||||
RGB 31, 15, 00
|
||||
@ -386,7 +413,7 @@ Function903e: ; 903e
|
||||
; 906e
|
||||
|
||||
Function906e: ; 906e
|
||||
ld hl, Paletteb7a9
|
||||
ld hl, Palettes_b7a9
|
||||
ld de, Unkn1Pals
|
||||
ld bc, $0080
|
||||
ld a, $5
|
||||
@ -440,7 +467,7 @@ Function906e: ; 906e
|
||||
; 90f8
|
||||
|
||||
Function90f8: ; 90f8
|
||||
ld hl, $5ca7
|
||||
ld hl, PalPacket_9ca6 + 1
|
||||
call Function9610
|
||||
call Function9699
|
||||
ld de, Unkn2Pals
|
||||
@ -459,8 +486,8 @@ Function90f8: ; 90f8
|
||||
; 9122
|
||||
|
||||
Function9122: ; 9122
|
||||
ld b, $0
|
||||
ld hl, $512d
|
||||
ld b, 0
|
||||
ld hl, Jumptable_912d
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
@ -469,10 +496,69 @@ Function9122: ; 9122
|
||||
jp [hl]
|
||||
; 912d
|
||||
|
||||
INCBIN "baserom.gbc", $912d, $9195 - $912d
|
||||
Jumptable_912d: ; 912d
|
||||
dw Function9133
|
||||
dw Function9166
|
||||
dw Function9180
|
||||
; 9133
|
||||
|
||||
Function9133: ; 9133
|
||||
ld hl, Palette_914e
|
||||
ld de, Unkn1Pals
|
||||
call Function9630
|
||||
ld hl, Palette_9156
|
||||
ld de, Unkn2Pals
|
||||
ld bc, $0010
|
||||
ld a, $5
|
||||
call FarCopyWRAM
|
||||
call Function9699
|
||||
ret
|
||||
; 914e
|
||||
|
||||
Palette_914e: ; 914e
|
||||
RGB 19, 31, 19
|
||||
RGB 18, 23, 31
|
||||
RGB 11, 21, 28
|
||||
RGB 04, 16, 24
|
||||
|
||||
Palette_9156: ; 9156
|
||||
RGB 29, 29, 29
|
||||
RGB 20, 19, 20
|
||||
RGB 19, 06, 04
|
||||
RGB 03, 04, 06
|
||||
|
||||
RGB 31, 31, 31
|
||||
RGB 31, 31, 31
|
||||
RGB 31, 00, 00
|
||||
RGB 03, 04, 06
|
||||
; 9166
|
||||
|
||||
Function9166: ; 9166
|
||||
ld de, Unkn1Pals
|
||||
ld a, $38
|
||||
call Function9625
|
||||
call Function9630
|
||||
ld de, Unkn2Pals
|
||||
ld a, $39
|
||||
call Function9625
|
||||
call Function9630
|
||||
call Function9699
|
||||
ret
|
||||
; 9180
|
||||
|
||||
Function9180: ; 9180
|
||||
ld hl, PalPacket_9c36 + 1
|
||||
call Function9610
|
||||
ld de, Unkn2Pals
|
||||
ld a, $3a
|
||||
call Function9625
|
||||
call Function9630
|
||||
call Function9699
|
||||
ret
|
||||
; 9195
|
||||
|
||||
Function9195: ; 9195
|
||||
ld hl, $7789
|
||||
ld hl, Palettes_b789
|
||||
ld de, Unkn1Pals
|
||||
ld bc, $0028
|
||||
ld a, $5
|
||||
@ -484,12 +570,12 @@ Function9195: ; 9195
|
||||
; 91ad
|
||||
|
||||
Function91ad: ; 91ad
|
||||
ld hl, $7641
|
||||
ld hl, Palettes_b641
|
||||
ld de, Unkn1Pals
|
||||
ld bc, $0080
|
||||
ld a, $5
|
||||
call FarCopyWRAM
|
||||
ld hl, $5cb7
|
||||
ld hl, PalPacket_9cb6 + 1
|
||||
call Function9610
|
||||
call Function9699
|
||||
call Function96b3
|
||||
@ -504,7 +590,7 @@ Function91c8: ; 91c8
|
||||
; 91d1
|
||||
|
||||
Function91d1: ; 91d1
|
||||
ld hl, $5c57
|
||||
ld hl, PalPacket_9c56 + 1
|
||||
call Function9610
|
||||
call Function8e9f
|
||||
call Function8e85
|
||||
@ -533,7 +619,7 @@ Function91e4: ; 91e4
|
||||
ld a, [PlayerHPPal]
|
||||
call Function974b
|
||||
call Function9643
|
||||
ld hl, $579c
|
||||
ld hl, Palettes_979c
|
||||
ld de, $d050
|
||||
ld bc, $0030
|
||||
ld a, $5
|
||||
@ -549,12 +635,12 @@ Function91e4: ; 91e4
|
||||
; 9228
|
||||
|
||||
Function9228: ; 9228
|
||||
ld hl, $76f1
|
||||
ld hl, Palettes_b6f1
|
||||
ld de, Unkn1Pals
|
||||
ld bc, $0028
|
||||
ld a, $5
|
||||
call FarCopyWRAM
|
||||
ld hl, $7719
|
||||
ld hl, Palettes_b719
|
||||
ld de, Unkn2Pals
|
||||
ld bc, $0010
|
||||
ld a, $5
|
||||
@ -568,7 +654,7 @@ Function9228: ; 9228
|
||||
; 9251
|
||||
|
||||
Function9251: ; 9251
|
||||
ld hl, $5cb7
|
||||
ld hl, PalPacket_9cb6 + 1
|
||||
call Function9610
|
||||
call Function9699
|
||||
call Function96b3
|
||||
@ -576,7 +662,7 @@ Function9251: ; 9251
|
||||
; 925e
|
||||
|
||||
Function925e: ; 925e
|
||||
ld hl, $5bc7
|
||||
ld hl, PalPacket_9bc6 + 1
|
||||
call Function9610
|
||||
ld de, Unkn2Pals
|
||||
ld a, $4c
|
||||
@ -710,10 +796,10 @@ Function9373: ; 9373
|
||||
call Function9630
|
||||
ld a, [PlayerHPPal]
|
||||
ld l, a
|
||||
ld h, $0
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
ld bc, $68be
|
||||
ld bc, Palettes_a8be
|
||||
add hl, bc
|
||||
call Function9643
|
||||
call Function9699
|
||||
@ -729,7 +815,7 @@ Function9373: ; 9373
|
||||
; 93a6
|
||||
|
||||
Function93a6: ; 93a6
|
||||
ld hl, $5c47
|
||||
ld hl, PalPacket_9c46 + 1
|
||||
call Function9610
|
||||
call Function9699
|
||||
call Function96b3
|
||||
@ -759,11 +845,11 @@ Function93d3: ; 93d3
|
||||
ld a, [PlayerGender]
|
||||
bit 0, a
|
||||
jr z, .asm_93e6
|
||||
ld hl, $5469
|
||||
ld hl, Palettes_9469
|
||||
jr .asm_93e9
|
||||
|
||||
.asm_93e6
|
||||
ld hl, $5439
|
||||
ld hl, Palettes_9439
|
||||
|
||||
.asm_93e9
|
||||
ld de, Unkn1Pals
|
||||
@ -798,7 +884,59 @@ Function93d3: ; 93d3
|
||||
ret
|
||||
; 9439
|
||||
|
||||
INCBIN "baserom.gbc", $9439, $9499 - $9439
|
||||
Palettes_9439: ; 9439
|
||||
RGB 31, 31, 31
|
||||
RGB 15, 15, 31
|
||||
RGB 00, 00, 31
|
||||
RGB 00, 00, 00
|
||||
RGB 31, 31, 31
|
||||
RGB 15, 15, 31
|
||||
RGB 00, 00, 31
|
||||
RGB 00, 00, 00
|
||||
RGB 31, 11, 31
|
||||
RGB 15, 15, 31
|
||||
RGB 00, 00, 31
|
||||
RGB 00, 00, 00
|
||||
RGB 31, 31, 31
|
||||
RGB 15, 15, 31
|
||||
RGB 00, 00, 31
|
||||
RGB 31, 00, 00
|
||||
RGB 31, 31, 31
|
||||
RGB 15, 15, 31
|
||||
RGB 31, 00, 00
|
||||
RGB 00, 00, 00
|
||||
RGB 31, 31, 31
|
||||
RGB 07, 19, 07
|
||||
RGB 07, 19, 07
|
||||
RGB 00, 00, 00
|
||||
; 9469
|
||||
|
||||
Palettes_9469: ; 9469
|
||||
RGB 31, 31, 31
|
||||
RGB 31, 14, 31
|
||||
RGB 31, 07, 31
|
||||
RGB 00, 00, 00
|
||||
RGB 31, 31, 31
|
||||
RGB 31, 14, 31
|
||||
RGB 31, 07, 31
|
||||
RGB 00, 00, 00
|
||||
RGB 15, 15, 31
|
||||
RGB 31, 14, 31
|
||||
RGB 31, 07, 31
|
||||
RGB 00, 00, 00
|
||||
RGB 31, 31, 31
|
||||
RGB 31, 14, 31
|
||||
RGB 31, 07, 31
|
||||
RGB 31, 00, 00
|
||||
RGB 31, 31, 31
|
||||
RGB 31, 14, 31
|
||||
RGB 31, 00, 00
|
||||
RGB 00, 00, 00
|
||||
RGB 31, 31, 31
|
||||
RGB 07, 19, 07
|
||||
RGB 07, 19, 07
|
||||
RGB 00, 00, 00
|
||||
; 9499
|
||||
|
||||
Function9499: ; 9499
|
||||
call Function91c8
|
||||
@ -836,7 +974,7 @@ Function9499: ; 9499
|
||||
; 94d0
|
||||
|
||||
Function94d0: ; 94d0
|
||||
ld hl, $5ba7
|
||||
ld hl, PalPacket_9ba6 + 1
|
||||
call Function9610
|
||||
call Function9699
|
||||
ld hl, $ce29
|
||||
@ -859,10 +997,10 @@ Function94fa: ; 94fa
|
||||
ld a, $4e
|
||||
call Function9625
|
||||
call Function9630
|
||||
ld hl, $5521
|
||||
ld hl, Palette_9521
|
||||
ld de, Unkn2Pals
|
||||
call Function9630
|
||||
ld hl, $5521
|
||||
ld hl, Palette_9521
|
||||
ld de, $d048
|
||||
call Function9630
|
||||
call Function9699
|
||||
@ -871,7 +1009,12 @@ Function94fa: ; 94fa
|
||||
ret
|
||||
; 9521
|
||||
|
||||
INCBIN "baserom.gbc", $9521, $9529 - $9521
|
||||
Palette_9521: ; 9521
|
||||
RGB 31, 31, 31
|
||||
RGB 13, 11, 00
|
||||
RGB 23, 12, 28
|
||||
RGB 00, 00, 00
|
||||
; 9529
|
||||
|
||||
Function9529: ; 9529
|
||||
ld de, Unkn1Pals
|
||||
@ -896,9 +1039,9 @@ Function9542: ; 9542
|
||||
; 9555
|
||||
|
||||
Function9555: ; 9555
|
||||
ld hl, $5cc7
|
||||
ld hl, PalPacket_9cc6 + 1
|
||||
call Function9610
|
||||
ld hl, $7681
|
||||
ld hl, Palettes_b681
|
||||
ld de, Unkn2Pals
|
||||
ld bc, $0008
|
||||
ld a, $5
|
||||
|
170
predef/sgb.asm
170
predef/sgb.asm
@ -59,24 +59,24 @@ Table866f: ; 866f
|
||||
; 86ad
|
||||
|
||||
Function86ad: ; 86ad
|
||||
ld hl, $5c66
|
||||
ld de, $5aa6
|
||||
ld hl, PalPacket_9c66
|
||||
ld de, BlkPacket_9aa6
|
||||
ret
|
||||
; 86b4
|
||||
|
||||
Function86b4: ; 86b4
|
||||
ld hl, $5aa6
|
||||
ld hl, BlkPacket_9aa6
|
||||
call Function9809
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
ld a, [PlayerHPPal]
|
||||
ld l, a
|
||||
ld h, $0
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
ld de, $68be
|
||||
ld de, Palettes_a8be
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld [$cdac], a
|
||||
@ -101,7 +101,7 @@ Function86b4: ; 86b4
|
||||
ld [$cdb4], a
|
||||
ld a, [hl]
|
||||
ld [$cdb5], a
|
||||
ld hl, $5cf6
|
||||
ld hl, PalPacket_9cf6
|
||||
ld de, $cdb9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -131,7 +131,7 @@ Function86b4: ; 86b4
|
||||
; 873c
|
||||
|
||||
Function873c: ; 873c
|
||||
ld hl, $5bd6
|
||||
ld hl, PalPacket_9bd6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -143,18 +143,18 @@ Function873c: ; 873c
|
||||
add $2f
|
||||
ld [hl], a
|
||||
ld hl, $cda9
|
||||
ld de, $5ad6
|
||||
ld de, BlkPacket_9ad6
|
||||
ret
|
||||
; 875c
|
||||
|
||||
Function875c: ; 875c
|
||||
ld hl, $5c76
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9c76
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 8763
|
||||
|
||||
Function8763: ; 8763
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -163,7 +163,7 @@ Function8763: ; 8763
|
||||
ld h, $0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
ld de, $68be
|
||||
ld de, Palettes_a8be
|
||||
add hl, de
|
||||
ld a, [hli]
|
||||
ld [$cdac], a
|
||||
@ -185,18 +185,18 @@ Function8763: ; 8763
|
||||
ld a, [hl]
|
||||
ld [$cdb5], a
|
||||
ld hl, $cda9
|
||||
ld de, $5ac6
|
||||
ld de, BlkPacket_9ac6
|
||||
ret
|
||||
; 87ab
|
||||
|
||||
Function87ab: ; 87ab
|
||||
ld hl, $5c56
|
||||
ld hl, PalPacket_9c56
|
||||
ld de, $cdaa
|
||||
ret
|
||||
; 87b2
|
||||
|
||||
Function87b2: ; 87b2
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -219,12 +219,12 @@ Function87b2: ; 87b2
|
||||
ld a, [hl]
|
||||
ld [$cdb5], a
|
||||
ld hl, $cda9
|
||||
ld de, $5ae6
|
||||
ld de, BlkPacket_9ae6
|
||||
ret
|
||||
; 87e9
|
||||
|
||||
Function87e9: ; 87e9
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -248,18 +248,18 @@ Function87e9: ; 87e9
|
||||
ld a, [hl]
|
||||
ld [$cdb5], a
|
||||
ld hl, $cda9
|
||||
ld de, $5ae6
|
||||
ld de, BlkPacket_9ae6
|
||||
ret
|
||||
; 8823
|
||||
|
||||
Function8823: ; 8823
|
||||
call Function87b2
|
||||
ld de, $5af6
|
||||
ld de, BlkPacket_9af6
|
||||
ret
|
||||
; 882a
|
||||
|
||||
Function882a: ; 882a
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -272,37 +272,37 @@ Function882a: ; 882a
|
||||
inc hl
|
||||
ld [hl], $19
|
||||
ld hl, $cda9
|
||||
ld de, $5a86
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 884b
|
||||
|
||||
Function884b: ; 884b
|
||||
ld hl, $5c36
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9c36
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 8852
|
||||
|
||||
Function8852: ; 8852
|
||||
ld hl, $5c96
|
||||
ld de, $5b06
|
||||
ld hl, PalPacket_9c96
|
||||
ld de, BlkPacket_9b06
|
||||
ret
|
||||
; 8859
|
||||
|
||||
Function8859: ; 8859
|
||||
ld hl, $5ca6
|
||||
ld de, $5b76
|
||||
ld hl, PalPacket_9ca6
|
||||
ld de, BlkPacket_9b76
|
||||
ret
|
||||
; 8860
|
||||
|
||||
Function8860: ; 8860
|
||||
ld hl, $5cb6
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9cb6
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 8867
|
||||
|
||||
Function8867: ; 8867
|
||||
ld b, $0
|
||||
ld hl, $4878
|
||||
ld b, 0
|
||||
ld hl, Unknown_8878
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
add hl, bc
|
||||
@ -317,47 +317,51 @@ Function8867: ; 8867
|
||||
ret
|
||||
; 8878
|
||||
|
||||
INCBIN "baserom.gbc", $8878, $8884 - $8878
|
||||
Unknown_8878: ; 8878
|
||||
dw BlkPacket_9a86, PalPacket_9be6
|
||||
dw BlkPacket_9a96, PalPacket_9c06
|
||||
dw BlkPacket_9a86, PalPacket_9c16
|
||||
; 8884
|
||||
|
||||
Function8884: ; 8884
|
||||
ld hl, $5b96
|
||||
ld de, $5b56
|
||||
ld hl, PalPacket_9b96
|
||||
ld de, BlkPacket_9b56
|
||||
ld a, $8
|
||||
ld [SGBPredef], a
|
||||
ret
|
||||
; 8890
|
||||
|
||||
Function8890: ; 8890
|
||||
ld hl, $5ba6
|
||||
ld de, $5b86
|
||||
ld hl, PalPacket_9ba6
|
||||
ld de, BlkPacket_9b86
|
||||
ret
|
||||
; 8897
|
||||
|
||||
Function8897: ; 8897
|
||||
ld hl, $5c46
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9c46
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 889e
|
||||
|
||||
Function889e: ; 889e
|
||||
ld hl, $5a86
|
||||
ld hl, BlkPacket_9a86
|
||||
ld de, PlayerLightScreenCount
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
ld hl, $5bb6
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9bb6
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 88b1
|
||||
|
||||
Function88b1: ; 88b1
|
||||
ld hl, $5bd6
|
||||
ld hl, PalPacket_9bd6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
call Function8a0c
|
||||
ld hl, $cdaa
|
||||
ld [hld], a
|
||||
ld de, $5a86
|
||||
ld de, BlkPacket_9a86
|
||||
ld a, $9
|
||||
ld [SGBPredef], a
|
||||
ret
|
||||
@ -365,7 +369,7 @@ Function88b1: ; 88b1
|
||||
|
||||
Function88cd: ; 88cd
|
||||
push bc
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -403,28 +407,28 @@ Function88cd: ; 88cd
|
||||
|
||||
.asm_8913
|
||||
ld hl, $cda9
|
||||
ld de, $5a86
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 891a
|
||||
|
||||
Function891a: ; 891a
|
||||
ld hl, $5cb6
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9cb6
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 8921
|
||||
|
||||
Function8921: ; 8921
|
||||
ld hl, $5bc6
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9bc6
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 8928
|
||||
|
||||
Function8928: ; 8928
|
||||
ld hl, $5bd6
|
||||
ld hl, PalPacket_9bd6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
ld hl, $5a86
|
||||
ld hl, BlkPacket_9a86
|
||||
ld de, $cdb9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -450,24 +454,24 @@ Function8928: ; 8928
|
||||
; 8969
|
||||
|
||||
Function8969: ; 8969
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
ld a, [CurPartySpecies]
|
||||
ld l, a
|
||||
ld h, $0
|
||||
ld h, 0
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
add hl, hl
|
||||
ld de, $68ce
|
||||
ld de, Palettes_a8ce
|
||||
add hl, de
|
||||
ld a, [$cf65]
|
||||
and $3
|
||||
and 3
|
||||
sla a
|
||||
sla a
|
||||
ld c, a
|
||||
ld b, $0
|
||||
ld b, 0
|
||||
add hl, bc
|
||||
ld a, [hli]
|
||||
ld [$cdac], a
|
||||
@ -478,18 +482,18 @@ Function8969: ; 8969
|
||||
ld a, [hl]
|
||||
ld [$cdaf], a
|
||||
ld hl, $cda9
|
||||
ld de, $5a86
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 89a6
|
||||
|
||||
Function89a6: ; 89a6
|
||||
ld hl, $5cd6
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9cd6
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 89ad
|
||||
|
||||
Function89ad: ; 89ad
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -505,18 +509,18 @@ Function89ad: ; 89ad
|
||||
ld a, [hl]
|
||||
ld [$cdaf], a
|
||||
ld hl, $cda9
|
||||
ld de, $5a86
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 89d9
|
||||
|
||||
Function89d9: ; 89d9
|
||||
ld hl, $5cc6
|
||||
ld de, $5a86
|
||||
ld hl, PalPacket_9cc6
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 89e0
|
||||
|
||||
Function89e0: ; 89e0
|
||||
ld hl, $5ce6
|
||||
ld hl, PalPacket_9ce6
|
||||
ld de, $cda9
|
||||
ld bc, $0010
|
||||
call CopyBytes
|
||||
@ -532,7 +536,7 @@ Function89e0: ; 89e0
|
||||
ld a, [hl]
|
||||
ld [$cdaf], a
|
||||
ld hl, $cda9
|
||||
ld de, $5a86
|
||||
ld de, BlkPacket_9a86
|
||||
ret
|
||||
; 8a0c
|
||||
|
||||
@ -557,8 +561,8 @@ Function8a0c: ; 8a0c
|
||||
jr z, .asm_8a42
|
||||
ld a, [MapGroup]
|
||||
ld e, a
|
||||
ld d, $0
|
||||
ld hl, $4a45
|
||||
ld d, 0
|
||||
ld hl, Unknown_8a45
|
||||
add hl, de
|
||||
ld a, [hl]
|
||||
ret
|
||||
@ -580,7 +584,35 @@ Function8a0c: ; 8a0c
|
||||
ret
|
||||
; 8a45
|
||||
|
||||
INCBIN "baserom.gbc", $8a45, $8a60 - $8a45
|
||||
Unknown_8a45: ; 8a45
|
||||
db $00
|
||||
db $12
|
||||
db $14
|
||||
db $18
|
||||
db $11
|
||||
db $15
|
||||
db $09
|
||||
db $04
|
||||
db $0f
|
||||
db $16
|
||||
db $0e
|
||||
db $10
|
||||
db $06
|
||||
db $01
|
||||
db $03
|
||||
db $06
|
||||
db $0b
|
||||
db $08
|
||||
db $05
|
||||
db $17
|
||||
db $08
|
||||
db $07
|
||||
db $13
|
||||
db $02
|
||||
db $0c
|
||||
db $0a
|
||||
db $0d
|
||||
; 8a60
|
||||
|
||||
Function8a60: ; 8a60
|
||||
push de
|
||||
|
Loading…
x
Reference in New Issue
Block a user