Miscellaneous cleanup noted in #709

This commit is contained in:
Rangi
2020-05-17 20:59:15 -04:00
parent 395ebd8386
commit e32cf1bfd1
7 changed files with 29 additions and 17 deletions

View File

@@ -277,13 +277,13 @@ Unreferenced_Function8bec:
ldh a, [hCGB]
and a
jr nz, .cgb
ld hl, wPlayerLightScreenCount
ld hl, wBetaPokerSGBPals
jp PushSGBPals
.cgb
ld a, [wEnemyLightScreenCount] ; col
ld a, [wBetaPokerSGBCol]
ld c, a
ld a, [wEnemyReflectCount] ; row
ld a, [wBetaPokerSGBRow]
hlcoord 0, 0, wAttrmap
ld de, SCREEN_WIDTH
.loop
@@ -294,10 +294,10 @@ Unreferenced_Function8bec:
jr .loop
.done
ld b, $0
ld b, 0
add hl, bc
lb bc, 6, 4
ld a, [wEnemySafeguardCount] ; value
ld a, [wBetaPokerSGBAttr]
and $3
call FillBoxCGB
call CopyTilemapAtOnce

View File

@@ -450,7 +450,7 @@ PadMapForHDMATransfer:
ldh [hMapObjectIndexBuffer], a
ret
_Get2bpp::
HDMATransfer2bpp::
; 2bpp when [rLCDC] & $80
; switch to WRAM bank 6
ldh a, [rSVBK]
@@ -494,7 +494,7 @@ _Get2bpp::
ldh [rSVBK], a
ret
_Get1bpp::
HDMATransfer1bpp::
; 1bpp when [rLCDC] & $80
.loop
ld a, c

View File

@@ -333,7 +333,7 @@ endr
.SGB_BetaPoker:
ld hl, BlkPacket_9a86
ld de, wPlayerLightScreenCount ; ???
ld de, wBetaPokerSGBPals
ld bc, PALPACKET_LENGTH
call CopyBytes
ld hl, PalPacket_BetaPoker