Remove some hardcoded addresses, and update PrintNumber+PrintBCDNumber flags (#174)

This commit is contained in:
Narishma-gb
2026-07-06 19:19:07 +02:00
committed by GitHub
parent 4a6ad591f5
commit 047bcb4e6d
22 changed files with 67 additions and 71 deletions

View File

@@ -410,7 +410,7 @@ DisplayBGEventDetails:
hlcoord 17, 14
ld de, wFieldMoveScriptID
ld bc, $8102
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
call PrintNumber
hlcoord 14, 16
@@ -419,7 +419,7 @@ DisplayBGEventDetails:
hlcoord 17, 16
ld de, wHPBarNewHP
ld bc, $8102
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
call PrintNumber
ret

View File

@@ -76,7 +76,7 @@ DebugMart_BuyMenuHeader:
ld d, h
ld e, l
pop hl
ld c, $83
ld c, 3 | PRINTNUM_LEADINGZEROS
call PrintBCDNumber
ld [hl], '円'
ret

View File

@@ -150,7 +150,7 @@ FieldDebug_SpriteViewer:
.display_loop
push bc
push hl
ld bc, $8103
lb bc, PRINTNUM_LEADINGZEROS | 1, 3
ld de, wStringBuffer1
call PrintNumber
ld a, [wStringBuffer1]