You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Merge pull request #449 from xCrystal/master
Misc labeling and cleaning up
This commit is contained in:
@ -829,7 +829,7 @@ LoadNote: ; e83d1
|
||||
ld hl, Channel1PitchWheelAmountFraction - Channel1
|
||||
add hl, bc
|
||||
ld [hl], a ; remainder
|
||||
ld hl, Channel1Field0x25 - Channel1
|
||||
ld hl, Channel1Field25 - Channel1
|
||||
add hl, bc
|
||||
xor a
|
||||
ld [hl], a
|
||||
@ -981,12 +981,12 @@ ApplyPitchWheel: ; e84f9
|
||||
add hl, de
|
||||
ld d, h
|
||||
ld e, l
|
||||
; [Channel*Field0x25] += [Channel*PitchWheelAmountFraction]
|
||||
; [Channel*Field25] += [Channel*PitchWheelAmountFraction]
|
||||
; if rollover: Frequency += 1
|
||||
ld hl, Channel1PitchWheelAmountFraction - Channel1
|
||||
add hl, bc
|
||||
ld a, [hl]
|
||||
ld hl, Channel1Field0x25 - Channel1
|
||||
ld hl, Channel1Field25 - Channel1
|
||||
add hl, bc
|
||||
add [hl]
|
||||
ld [hl], a
|
||||
@ -1023,7 +1023,7 @@ ApplyPitchWheel: ; e84f9
|
||||
ld a, d
|
||||
sbc 0
|
||||
ld d, a
|
||||
; [Channel*Field0x25] *= 2
|
||||
; [Channel*Field25] *= 2
|
||||
; if rollover: Frequency -= 1
|
||||
ld hl, Channel1PitchWheelAmountFraction - Channel1
|
||||
add hl, bc
|
||||
@ -1726,7 +1726,7 @@ MusicE2: ; e8873
|
||||
; seems to have been dummied out
|
||||
; params: 1
|
||||
call GetMusicByte
|
||||
ld hl, Channel1Field0x2c - Channel1
|
||||
ld hl, Channel1Field2c - Channel1
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
ld hl, Channel1Flags2 - Channel1
|
||||
@ -1849,7 +1849,7 @@ MusicE7: ; e88f7
|
||||
add hl, bc
|
||||
set SOUND_UNKN_0E, [hl]
|
||||
call GetMusicByte
|
||||
ld hl, Channel1Field0x29 - Channel1
|
||||
ld hl, Channel1Field29 - Channel1
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
@ -1885,7 +1885,7 @@ MusicE8: ; e891e
|
||||
add hl, bc
|
||||
set SOUND_UNKN_0D, [hl]
|
||||
call GetMusicByte
|
||||
ld hl, Channel1Field0x2a - Channel1
|
||||
ld hl, Channel1Field2a - Channel1
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
@ -2307,7 +2307,7 @@ SetNoteDuration: ; e8a8d
|
||||
inc hl
|
||||
ld d, [hl]
|
||||
; add ???? to the next result
|
||||
ld hl, Channel1Field0x16 - Channel1
|
||||
ld hl, Channel1Field16 - Channel1
|
||||
add hl, bc
|
||||
ld l, [hl]
|
||||
; multiply Tempo by last result (NoteLength * LOW(delay))
|
||||
@ -2316,7 +2316,7 @@ SetNoteDuration: ; e8a8d
|
||||
ld e, l
|
||||
ld d, h
|
||||
; store result in ????
|
||||
ld hl, Channel1Field0x16 - Channel1
|
||||
ld hl, Channel1Field16 - Channel1
|
||||
add hl, bc
|
||||
ld [hl], e
|
||||
; store result in NoteDuration
|
||||
@ -2392,7 +2392,7 @@ Tempo: ; e8b03
|
||||
ld [hl], d
|
||||
; clear ????
|
||||
xor a
|
||||
ld hl, Channel1Field0x16 - Channel1
|
||||
ld hl, Channel1Field16 - Channel1
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
ret
|
||||
@ -2749,7 +2749,7 @@ PlayStereoSFX:: ; e8ca6
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
|
||||
ld hl, Channel1Field0x30 - Channel1 ; $c131 - Channel1
|
||||
ld hl, Channel1Field30 - Channel1 ; $c131 - Channel1
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
|
||||
@ -2760,11 +2760,11 @@ PlayStereoSFX:: ; e8ca6
|
||||
; ch3-4
|
||||
ld a, [wSFXDuration]
|
||||
|
||||
ld hl, Channel1Field0x2e - Channel1 ; $c12f - Channel1
|
||||
ld hl, Channel1Field2e - Channel1 ; $c12f - Channel1
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
|
||||
ld hl, Channel1Field0x2f - Channel1 ; $c130 - Channel1
|
||||
ld hl, Channel1Field2f - Channel1 ; $c130 - Channel1
|
||||
add hl, bc
|
||||
ld [hl], a
|
||||
|
||||
|
@ -708,7 +708,7 @@ BATTLEANIMSTRUCT_LENGTH EQU const_value
|
||||
const BATTLEANIMOAMSET_D7
|
||||
|
||||
; BattleBGEffects indexes (see engine/battle_anims/bg_effects.asm)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const ANIM_BG_FLASH_INVERTED
|
||||
const ANIM_BG_FLASH_WHITE
|
||||
const ANIM_BG_WHITE_HUES
|
||||
@ -764,7 +764,7 @@ const_value SET 1
|
||||
const ANIM_BG_35
|
||||
|
||||
; AnimObjGFX indexes (see data/battle_anims/object_gfx.asm)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const ANIM_GFX_HIT
|
||||
const ANIM_GFX_CUT
|
||||
const ANIM_GFX_FIRE
|
||||
|
@ -45,7 +45,7 @@ MOVE_LENGTH EQU const_value
|
||||
; indexes for:
|
||||
; - PlayerStats and EnemyStats (see wram.asm)
|
||||
; - party_struct and battle_struct members (see macros/wram.asm)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const STAT_HP
|
||||
const STAT_ATK
|
||||
const STAT_DEF
|
||||
@ -65,7 +65,7 @@ ATKDEFDV_SHINY EQU $EA
|
||||
SPDSPCDV_SHINY EQU $AA
|
||||
|
||||
; battle classes (wBattleMode values)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const WILD_BATTLE
|
||||
const TRAINER_BATTLE
|
||||
|
||||
@ -140,7 +140,7 @@ const_value SET 1
|
||||
|
||||
; status condition bit flags
|
||||
SLP EQU %111 ; 0-7 turns
|
||||
const_value SET 3
|
||||
const_value set 3
|
||||
const PSN
|
||||
const BRN
|
||||
const FRZ
|
||||
|
@ -105,7 +105,7 @@
|
||||
const PAAD_TESTING
|
||||
|
||||
; CreditsScript indexes (see data/credits_script.asm)
|
||||
const_value SET -7
|
||||
const_value set -7
|
||||
const CREDITS_THEEND
|
||||
const CREDITS_WAIT2
|
||||
const CREDITS_MUSIC
|
||||
|
@ -50,6 +50,7 @@ OAM_X_FLIP EQU 5
|
||||
OAM_Y_FLIP EQU 6
|
||||
OAM_PRIORITY EQU 7 ; 0: OBJ above BG, 1: OBJ behind BG (colors 1-3)
|
||||
|
||||
; BP Map attribute flags
|
||||
PALETTE_MASK EQU %111
|
||||
VRAM_BANK_1 EQU 1 << OAM_TILE_BANK ; $08
|
||||
OBP_NUM EQU 1 << OAM_OBP_NUM ; $10
|
||||
@ -57,6 +58,10 @@ X_FLIP EQU 1 << OAM_X_FLIP ; $20
|
||||
Y_FLIP EQU 1 << OAM_Y_FLIP ; $40
|
||||
BEHIND_BG EQU 1 << OAM_PRIORITY ; $80
|
||||
|
||||
; Other useful constants
|
||||
LCDC_DEFAULT EQU %11100011
|
||||
LY_VBLANK EQU 144
|
||||
|
||||
; Hardware registers
|
||||
rJOYP EQU $ff00 ; Joypad (R/W)
|
||||
rSB EQU $ff01 ; Serial transfer data (R/W)
|
||||
@ -114,6 +119,10 @@ rWave_d EQU $ff3d
|
||||
rWave_e EQU $ff3e
|
||||
rWave_f EQU $ff3f
|
||||
rLCDC EQU $ff40 ; LCD Control (R/W)
|
||||
rLCDC_SPRITES_ENABLE EQU 1 ; 0=Off, 1=On
|
||||
rLCDC_SPRITE_SIZE EQU 2 ; 0=8x8, 1=8x16
|
||||
rLCDC_WINDOW_TILEMAP EQU 6 ; 0=9800-9BFF, 1=9C00-9FFF
|
||||
rLCDC_ENABLE EQU 7 ; 0=Off, 1=On
|
||||
rSTAT EQU $ff41 ; LCDC Status (R/W)
|
||||
rSCY EQU $ff42 ; Scroll Y (R/W)
|
||||
rSCX EQU $ff43 ; Scroll X (R/W)
|
||||
|
@ -52,7 +52,7 @@ MAIL_STRUCT_LENGTH EQU $2f ; mailmsg struct
|
||||
const HELD_7
|
||||
const HELD_CLEANSE_TAG
|
||||
|
||||
const_value SET 10
|
||||
const_value set 10
|
||||
const HELD_HEAL_POISON
|
||||
const HELD_HEAL_FREEZE
|
||||
const HELD_HEAL_BURN
|
||||
@ -61,7 +61,7 @@ const_value SET 10
|
||||
const HELD_HEAL_STATUS
|
||||
const HELD_HEAL_CONFUSION
|
||||
|
||||
const_value SET 20
|
||||
const_value set 20
|
||||
const HELD_PREVENT_POISON
|
||||
const HELD_PREVENT_BURN
|
||||
const HELD_PREVENT_FREEZE
|
||||
@ -69,7 +69,7 @@ const_value SET 20
|
||||
const HELD_PREVENT_PARALYZE
|
||||
const HELD_PREVENT_CONFUSE
|
||||
|
||||
const_value SET 30
|
||||
const_value set 30
|
||||
const HELD_30
|
||||
const HELD_ATTACK_UP
|
||||
const HELD_DEFENSE_UP
|
||||
@ -80,12 +80,12 @@ const_value SET 30
|
||||
const HELD_EVASION_UP
|
||||
const HELD_38
|
||||
|
||||
const_value SET 40
|
||||
const_value set 40
|
||||
const HELD_40
|
||||
const HELD_41
|
||||
const HELD_METAL_POWDER
|
||||
|
||||
const_value SET 50
|
||||
const_value set 50
|
||||
const HELD_NORMAL_BOOST
|
||||
const HELD_FIGHTING_BOOST
|
||||
const HELD_FLYING_BOOST
|
||||
@ -104,7 +104,7 @@ const_value SET 50
|
||||
const HELD_DARK_BOOST
|
||||
const HELD_STEEL_BOOST
|
||||
|
||||
const_value SET 70
|
||||
const_value set 70
|
||||
const HELD_CATCH_CHANCE
|
||||
const HELD_71
|
||||
const HELD_ESCAPE
|
||||
|
@ -17,7 +17,7 @@ MAP_NONE EQU 0
|
||||
NUM_MAPHEADER_ATTRIBUTES EQU const_value
|
||||
|
||||
; map environments (wEnvironment)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const TOWN
|
||||
const ROUTE
|
||||
const INDOOR
|
||||
@ -34,7 +34,7 @@ const_value SET 1
|
||||
const PALETTE_MORN
|
||||
const PALETTE_DARK
|
||||
|
||||
; fish groups
|
||||
; fish groups
|
||||
const_def
|
||||
const FISHGROUP_NONE
|
||||
const FISHGROUP_SHORE
|
||||
@ -97,10 +97,10 @@ const_value SET 1
|
||||
const OBJECT_SPRITE_X_OFFSET ; 19
|
||||
const OBJECT_SPRITE_Y_OFFSET ; 1a
|
||||
const OBJECT_MOVEMENT_BYTE_INDEX ; 1b
|
||||
const OBJECT_28 ; 1c
|
||||
const OBJECT_29 ; 1d
|
||||
const OBJECT_30 ; 1e
|
||||
const OBJECT_31 ; 1f
|
||||
const OBJECT_1C ; 1c
|
||||
const OBJECT_1D ; 1d
|
||||
const OBJECT_1E ; 1e
|
||||
const OBJECT_1F ; 1f
|
||||
const OBJECT_RANGE ; 20
|
||||
; 33-39 are not used
|
||||
|
||||
@ -217,7 +217,7 @@ NUM_SPAWNS EQU const_value
|
||||
EMOTE_MEM EQU -1
|
||||
|
||||
; FruitTreeItems indexes (see data/items/fruit_trees.asm)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const FRUITTREE_ROUTE_29 ; 01
|
||||
const FRUITTREE_ROUTE_30_1 ; 02
|
||||
const FRUITTREE_ROUTE_38 ; 03
|
||||
|
@ -1,6 +1,6 @@
|
||||
; hMapEntryMethod values
|
||||
; MapSetupScripts indexes (see data/maps/setup_scripts.asm)
|
||||
const_value SET $f1
|
||||
const_value set $f1
|
||||
const MAPSETUP_WARP ; f1
|
||||
const MAPSETUP_CONTINUE ; f2
|
||||
const MAPSETUP_RELOADMAP ; f3
|
||||
@ -67,7 +67,7 @@ const_value SET $f1
|
||||
map_end EQU -1
|
||||
|
||||
; callback types
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const MAPCALLBACK_TILES
|
||||
const MAPCALLBACK_OBJECTS
|
||||
const MAPCALLBACK_CMDQUEUE
|
||||
|
@ -45,7 +45,7 @@ GENDERLESS EQU 255
|
||||
const SLOW
|
||||
|
||||
; BaseEggGroups values
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const MONSTER ; 1
|
||||
const AMPHIBIAN ; 2
|
||||
const INSECT ; 3
|
||||
@ -103,7 +103,7 @@ PARTY_LENGTH EQU 6
|
||||
|
||||
|
||||
; evolution types (used in data/pokemon/evos_attacks.asm)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const EVOLVE_LEVEL
|
||||
const EVOLVE_ITEM
|
||||
const EVOLVE_TRADE
|
||||
@ -111,13 +111,13 @@ const_value SET 1
|
||||
const EVOLVE_STAT
|
||||
|
||||
; EVOLVE_HAPPINESS triggers
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const TR_ANYTIME
|
||||
const TR_MORNDAY
|
||||
const TR_NITE
|
||||
|
||||
; EVOLVE_STAT triggers
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const ATK_GT_DEF
|
||||
const ATK_LT_DEF
|
||||
const ATK_EQ_DEF
|
||||
@ -162,7 +162,7 @@ FISHSWARM_REMORAID EQU 2
|
||||
const ANIM_MON_EGG2
|
||||
|
||||
; MonMenuOptions indexes (see engine/mon_menu.asm)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
; moves
|
||||
const MONMENU_CUT ; 1
|
||||
const MONMENU_FLY ; 2
|
||||
|
@ -1,5 +1,5 @@
|
||||
; wPrinterStatus
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const PRINTER_STATUS_CHECKING
|
||||
const PRINTER_STATUS_TRANSMITTING
|
||||
const PRINTER_STATUS_PRINTING
|
||||
|
@ -39,7 +39,7 @@ RETVAR_ADDR_DE EQU (1 << 6)
|
||||
RETVAR_EXECUTE EQU (2 << 6)
|
||||
|
||||
; PlayerEventScriptPointers indexes (see engine/events.asm)
|
||||
const_value SET -1
|
||||
const_value set -1
|
||||
const PLAYEREVENT_MAPSCRIPT
|
||||
const PLAYEREVENT_NONE
|
||||
const PLAYEREVENT_SEENBYTRAINER
|
||||
|
@ -106,7 +106,7 @@
|
||||
const SPRITE_STANDING_YOUNGSTER ; 66
|
||||
|
||||
; SpriteMons indexes (see data/sprite_mons.asm)
|
||||
const_value SET $80
|
||||
const_value set $80
|
||||
SPRITE_POKEMON EQU const_value
|
||||
const SPRITE_UNOWN ; 80
|
||||
const SPRITE_GEODUDE ; 81
|
||||
@ -145,12 +145,12 @@ SPRITE_POKEMON EQU const_value
|
||||
const SPRITE_HO_OH ; a2
|
||||
|
||||
; special GetMonSprite values (see engine/overworld.asm)
|
||||
const_value SET $e0
|
||||
const_value set $e0
|
||||
const SPRITE_DAY_CARE_MON_1 ; e0
|
||||
const SPRITE_DAY_CARE_MON_2 ; e1
|
||||
|
||||
; VariableSprites indexes (see wram.asm)
|
||||
const_value SET $f0
|
||||
const_value set $f0
|
||||
SPRITE_VARS EQU const_value
|
||||
const SPRITE_CONSOLE ; f0
|
||||
const SPRITE_DOLL_1 ; f1
|
||||
|
@ -9,7 +9,7 @@
|
||||
NUM_SPRITEDATA_FIELDS EQU const_value
|
||||
|
||||
; sprite types
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const WALKING_SPRITE ; 1
|
||||
const STANDING_SPRITE ; 2
|
||||
const STILL_SPRITE ; 3
|
||||
|
@ -1,5 +1,5 @@
|
||||
; Tilesets indexes (see tilesets/tilesets.asm)
|
||||
const_value SET 1
|
||||
const_value set 1
|
||||
const TILESET_JOHTO_1 ; 01
|
||||
const TILESET_JOHTO_2 ; 02
|
||||
const TILESET_KANTO ; 03
|
||||
|
@ -7,7 +7,7 @@
|
||||
const WILDMON ; 4
|
||||
|
||||
; Options: (bits) ; cfcc
|
||||
const_value SET 4
|
||||
const_value set 4
|
||||
const NO_TEXT_SCROLL ; 4
|
||||
const STEREO ; 5
|
||||
const BATTLE_SHIFT ; 6
|
||||
@ -41,7 +41,7 @@ GBPRINTER_DARKER EQU $60
|
||||
GBPRINTER_DARKEST EQU $7f
|
||||
|
||||
; WalkingDirection: ; d043
|
||||
const_value SET -1
|
||||
const_value set -1
|
||||
const STANDING ; -1
|
||||
const DOWN ; 0
|
||||
const UP ; 1
|
||||
|
@ -8395,11 +8395,11 @@ BattleIntro: ; 3f4dd
|
||||
ld b, SCGB_BATTLE_GRAYSCALE
|
||||
call GetSGBLayout
|
||||
ld hl, rLCDC
|
||||
res 6, [hl]
|
||||
res rLCDC_WINDOW_TILEMAP, [hl] ; select 9800-9BFF
|
||||
call InitBattleDisplay
|
||||
call BattleStartMessage
|
||||
ld hl, rLCDC
|
||||
set 6, [hl]
|
||||
set rLCDC_WINDOW_TILEMAP, [hl] ; select 9C00-9FFF
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call EmptyBattleTextBox
|
||||
|
@ -2066,6 +2066,7 @@ BattleBGEffect_1c: ; c8b00 (32:4b00)
|
||||
dw .cgb_zero
|
||||
dw .cgb_one
|
||||
dw .cgb_two
|
||||
|
||||
.cgb_zero
|
||||
call BattleBGEffects_IncrementJumptable
|
||||
ld hl, BG_EFFECT_STRUCT_03
|
||||
@ -2313,7 +2314,7 @@ BattleBGEffect_2e: ; c8ce1 (32:4ce1)
|
||||
ld [hSCY], a
|
||||
xor $ff
|
||||
inc a
|
||||
ld [AnimObject01_YOffset], a
|
||||
ld [AnimObject01YOffset], a
|
||||
ret
|
||||
|
||||
BattleBGEffect_1f: ; c8cf9 (32:4cf9)
|
||||
|
@ -42,14 +42,12 @@ _DepositPKMN: ; e2391 (38:6391)
|
||||
jp hl
|
||||
|
||||
.Jumptable: ; e23df (38:63df)
|
||||
|
||||
dw .Init
|
||||
dw .HandleJoypad
|
||||
dw .WhatsUp
|
||||
dw .Submenu
|
||||
dw BillsPC_EndJumptableLoop
|
||||
|
||||
|
||||
.Init: ; e23e9 (38:63e9)
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
@ -150,7 +148,6 @@ _DepositPKMN: ; e2391 (38:6391)
|
||||
jp hl
|
||||
|
||||
BillsPCDepositJumptable: ; e24a1 (38:64a1)
|
||||
|
||||
dw BillsPCDepositFuncDeposit ; Deposit Pokemon
|
||||
dw BillsPCDepositFuncStats ; Pokemon Stats
|
||||
dw BillsPCDepositFuncRelease ; Release Pokemon
|
||||
@ -309,14 +306,12 @@ _WithdrawPKMN: ; e2583 (38:6583)
|
||||
jp hl
|
||||
|
||||
.Jumptable: ; e25d2 (38:65d2)
|
||||
|
||||
dw .Init
|
||||
dw .Joypad
|
||||
dw .PrepSubmenu
|
||||
dw BillsPC_Withdraw
|
||||
dw BillsPC_EndJumptableLoop
|
||||
|
||||
|
||||
.Init: ; e25dc (38:65dc)
|
||||
ld a, NUM_BOXES + 1
|
||||
ld [wBillsPC_LoadedBox], a
|
||||
@ -560,7 +555,6 @@ _MovePKMNWithoutMail: ; e2759
|
||||
; e27ac
|
||||
|
||||
.Jumptable: ; e27ac
|
||||
|
||||
dw .Init
|
||||
dw .Joypad
|
||||
dw .PrepSubmenu
|
||||
@ -2029,7 +2023,6 @@ MovePKMNWitoutMail_InsertMon: ; e31e7
|
||||
; e3245
|
||||
|
||||
.Jumptable: ; e3245
|
||||
|
||||
dw .BoxToBox
|
||||
dw .PartyToBox
|
||||
dw .BoxToParty
|
||||
|
@ -80,7 +80,6 @@ _CardFlip: ; e00ee (38:40ee)
|
||||
; e01a0 (38:41a0)
|
||||
|
||||
.Jumptable: ; e01a0
|
||||
|
||||
dw .AskPlayWithThree
|
||||
dw .DeductCoins
|
||||
dw .ChooseACard
|
||||
@ -656,7 +655,6 @@ CardFlip_BlankDiscardedCardSlot: ; e0534
|
||||
; e0553
|
||||
|
||||
.Jumptable: ; e0553
|
||||
|
||||
dw .Level1
|
||||
dw .Level2
|
||||
dw .Level3
|
||||
@ -833,7 +831,6 @@ CardFlip_CheckWinCondition: ; e0637
|
||||
; e0643
|
||||
|
||||
.Jumptable: ; e0643
|
||||
|
||||
dw .Impossible
|
||||
dw .Impossible
|
||||
dw .PikaJiggly
|
||||
|
@ -617,7 +617,7 @@ ApplyPals:
|
||||
|
||||
ApplyAttrMap:
|
||||
ld a, [rLCDC]
|
||||
bit 7, a
|
||||
bit rLCDC_ENABLE, a
|
||||
jr z, .UpdateVBank1
|
||||
ld a, [hBGMapMode]
|
||||
push af
|
||||
@ -1073,7 +1073,7 @@ SGBBorder_PushBGPals:
|
||||
ld bc, $100 tiles
|
||||
call CopyData
|
||||
call DrawDefaultTiles
|
||||
ld a, $e3
|
||||
ld a, LCDC_DEFAULT
|
||||
ld [rLCDC], a
|
||||
ld hl, PalPacket_9d06
|
||||
call PushSGBPals
|
||||
@ -1107,7 +1107,7 @@ SGBBorder_MorePalPushing:
|
||||
ld bc, 16 palettes
|
||||
call CopyData
|
||||
call DrawDefaultTiles
|
||||
ld a, $e3
|
||||
ld a, LCDC_DEFAULT
|
||||
ld [rLCDC], a
|
||||
ld hl, PalPacket_9d46
|
||||
call PushSGBPals
|
||||
@ -1131,7 +1131,7 @@ SGBBorder_YetMorePalPushing:
|
||||
dec b
|
||||
jr nz, .loop
|
||||
call DrawDefaultTiles
|
||||
ld a, $e3
|
||||
ld a, LCDC_DEFAULT
|
||||
ld [rLCDC], a
|
||||
ld hl, PalPacket_9d36
|
||||
call PushSGBPals
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user