diff options
author | Astatin <[email protected]> | 2025-02-06 17:46:09 +0900 |
---|---|---|
committer | Astatin <[email protected]> | 2025-02-06 17:46:09 +0900 |
commit | ca26030e800318d48aec501e6f470eea8d4299c0 (patch) | |
tree | 6689870d29be11acd2b003059c01a199de68e88c /utils.gbasm | |
parent | 3b67c86b61b5d8640860dd5e8b016790ee4814c3 (diff) |
Add energy points to the gui
Diffstat (limited to 'utils.gbasm')
-rw-r--r-- | utils.gbasm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/utils.gbasm b/utils.gbasm index 8291ac2..4f7e7f7 100644 --- a/utils.gbasm +++ b/utils.gbasm @@ -145,6 +145,25 @@ Print_8bit: ; Number in A, Memory Tilemap position in HL POP AF RET +Print_8bit_Thin: ; Number in A, Memory Tilemap position in HL + PUSH AF + PUSH BC + + LD C, A + SWAP A ; We start by the highest nibble + AND $0f + OR $b0 + LD (HL+), A + + LD A, C + AND $0f ; Then the lowest + OR $b0 + LD (HL+), A + + POP BC + POP AF + RET + Print_str: ; Memory Tilemap position in HL, Text address in BC, FF ended PUSH AF PUSH BC |