mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Eliminate wd000
This commit is contained in:
parent
23f2c056e8
commit
95c0c31c8f
@ -891,13 +891,13 @@ InitCGBPals::
|
|||||||
call CheckCGB
|
call CheckCGB
|
||||||
ret z
|
ret z
|
||||||
; CGB only
|
; CGB only
|
||||||
ld a, $1
|
ld a, BANK(vTiles3)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, vTiles0
|
ld hl, vTiles3
|
||||||
ld bc, $200 tiles
|
ld bc, $200 tiles
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ld a, $0
|
ld a, BANK(vTiles0)
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld a, 1 << rBGPI_AUTO_INCREMENT
|
ld a, 1 << rBGPI_AUTO_INCREMENT
|
||||||
ld [rBGPI], a
|
ld [rBGPI], a
|
||||||
|
@ -10,16 +10,16 @@ GBCOnlyScreen: ; 4ea82
|
|||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
|
|
||||||
ld hl, GBCOnlyGFX
|
ld hl, GBCOnlyGFX
|
||||||
ld de, wd000
|
ld de, wDecompressBuffer
|
||||||
ld a, [rSVBK]
|
ld a, [rSVBK]
|
||||||
push af
|
push af
|
||||||
ld a, 0 ; this has the same effect as selecting bank 1 (http://gbdev.gg8.se/files/docs/mirrors/pandocs.html#videodisplay)
|
ld a, 0 ; this has the same effect as selecting bank 1
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
call Decompress
|
call Decompress
|
||||||
pop af
|
pop af
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
|
|
||||||
ld de, wd000
|
ld de, wDecompressBuffer
|
||||||
ld hl, vTiles2
|
ld hl, vTiles2
|
||||||
lb bc, BANK(GBCOnlyGFX), $54
|
lb bc, BANK(GBCOnlyGFX), $54
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
|
@ -96,7 +96,7 @@ Init:: ; 17d
|
|||||||
ld [hCGB], a
|
ld [hCGB], a
|
||||||
|
|
||||||
call ClearWRAM
|
call ClearWRAM
|
||||||
ld a, BANK(wd000)
|
ld a, 1
|
||||||
ld [rSVBK], a
|
ld [rSVBK], a
|
||||||
call ClearVRAM
|
call ClearVRAM
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
@ -182,11 +182,11 @@ ClearVRAM:: ; 245
|
|||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
call .clear
|
call .clear
|
||||||
|
|
||||||
xor a
|
xor a ; 0
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
.clear
|
.clear
|
||||||
ld hl, vTiles0
|
ld hl, VRAM_Begin
|
||||||
ld bc, $2000
|
ld bc, VRAM_End - VRAM_Begin
|
||||||
xor a
|
xor a
|
||||||
call ByteFill
|
call ByteFill
|
||||||
ret
|
ret
|
||||||
|
@ -2529,9 +2529,9 @@ Function1193a0:
|
|||||||
ld [wcd3c], a
|
ld [wcd3c], a
|
||||||
call BattleTowerRoomMenu2
|
call BattleTowerRoomMenu2
|
||||||
ld hl, $c346
|
ld hl, $c346
|
||||||
ld a, LOW(wd000)
|
ld a, LOW($d000)
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld a, HIGH(wd000)
|
ld a, HIGH($d000)
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld a, [wcd3b]
|
ld a, [wcd3b]
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
@ -3467,10 +3467,10 @@ Function119987: ; 119987
|
|||||||
; 1199b4
|
; 1199b4
|
||||||
|
|
||||||
Function1199b4: ; 1199b4
|
Function1199b4: ; 1199b4
|
||||||
ld a, [wd000 + 130]
|
ld a, [w3_d081+1]
|
||||||
and a
|
and a
|
||||||
jr nz, .asm_1199c7
|
jr nz, .asm_1199c7
|
||||||
ld a, [wd000 + 129]
|
ld a, [w3_d081]
|
||||||
cp $7
|
cp $7
|
||||||
jr nc, .asm_1199c7
|
jr nc, .asm_1199c7
|
||||||
call BattleTowerRoomMenu_IncrementJumptable
|
call BattleTowerRoomMenu_IncrementJumptable
|
||||||
|
@ -272,14 +272,14 @@ Function170cc6: ; 170cc6
|
|||||||
call Decompress
|
call Decompress
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld de, wd000
|
ld de, wDecompressBuffer
|
||||||
ld hl, vTiles0
|
ld hl, vTiles0
|
||||||
lb bc, $6, $c1
|
lb bc, $6, $c1
|
||||||
call Get2bpp
|
call Get2bpp
|
||||||
xor a
|
xor a
|
||||||
ld [rVBK], a
|
ld [rVBK], a
|
||||||
ld hl, LZ_1715a4
|
ld hl, LZ_1715a4
|
||||||
ld de, wd000
|
ld de, wDecompressBuffer
|
||||||
call Decompress
|
call Decompress
|
||||||
ld de, wBGPals1
|
ld de, wBGPals1
|
||||||
ld hl, vTiles0
|
ld hl, vTiles0
|
||||||
|
5
wram.asm
5
wram.asm
@ -1565,7 +1565,7 @@ wDaysSince:: db
|
|||||||
|
|
||||||
SECTION "WRAM 1", WRAMX
|
SECTION "WRAM 1", WRAMX
|
||||||
|
|
||||||
wd000:: ds 1
|
wDecompressBuffer:: ds 1
|
||||||
|
|
||||||
DefaultSpawnpoint:: db
|
DefaultSpawnpoint:: db
|
||||||
|
|
||||||
@ -2887,7 +2887,8 @@ SECTION "Battle Tower RAM", WRAMX
|
|||||||
w3_d000:: ds 1 ; d000
|
w3_d000:: ds 1 ; d000
|
||||||
w3_d001:: ds 1
|
w3_d001:: ds 1
|
||||||
w3_d002:: ds $7e
|
w3_d002:: ds $7e
|
||||||
w3_d080:: ds $10
|
w3_d080:: ds 1
|
||||||
|
w3_d081:: ds $f
|
||||||
w3_d090:: ds $70
|
w3_d090:: ds $70
|
||||||
|
|
||||||
w3_d100::
|
w3_d100::
|
||||||
|
Loading…
Reference in New Issue
Block a user