ref: af29f1f97ca855f24879a17283886a1d959fb3ed
parent: 5fbd2fb8ba74e10ce5a493b83b911a8e8f888549
author: Rangi <[email protected]>
date: Sat Feb 16 08:04:08 EST 2019
Eliminate some $xxxx values
--- a/engine/battle_anims/functions.asm
+++ b/engine/battle_anims/functions.asm
@@ -2514,7 +2514,7 @@
ld hl, BATTLEANIMSTRUCT_10
add hl, bc
ld e, [hl]
- ld hl, $ffa0
+ lb hl, -1, $a0
add hl, de
ld e, l
ld d, h
--- a/engine/games/card_flip.asm
+++ b/engine/games/card_flip.asm
@@ -46,9 +46,9 @@
call CardFlip_InitAttrPals
call EnableLCD
call WaitBGMap2
- ld a, $e4
+ ld a, %11100100
call DmgToCgbBGPals
- ld de, $e4e4
+ lb de, %11100100, %11100100
call DmgToCgbObjPals
call DelayFrame
xor a
--- a/engine/overworld/init_map.asm
+++ b/engine/overworld/init_map.asm
@@ -90,9 +90,9 @@
ldh [rHDMA1], a
ld a, LOW(wDecompressScratch)
ldh [rHDMA2], a
- ld a, HIGH(vBGMap0 % $8000)
+ ld a, HIGH(vBGMap0 - VRAM_Begin)
ldh [rHDMA3], a
- ld a, LOW(vBGMap0 % $8000)
+ ld a, LOW(vBGMap0 - VRAM_Begin)
ldh [rHDMA4], a
ld a, $3f
ldh [hDMATransfer], a