summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-09-12 18:30:24 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-09-12 18:30:24 -0400
commit9d54c015e7b865e62ee8cf8d31710c9e7c372beb (patch)
tree1e4d5bcf22e8f7092e630f205c7576d220c73617
parent54b050210a5a01930ebb3b3d098467d5f0eada1b (diff)
Avoid value truncation warnign
-rw-r--r--source/bank_02.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/bank_02.asm b/source/bank_02.asm
index 41844ab..4073698 100644
--- a/source/bank_02.asm
+++ b/source/bank_02.asm
@@ -28,7 +28,7 @@ text_char_print::
; Check if we've reached the end of the string
ld d, a
and e
- cp TX_END
+ cp LOW(TX_END)
jp z, farcall_ret
push hl
@@ -80,7 +80,7 @@ text_char_print::
; Check if the next character is a terminator
ld a, [hl+]
and [hl]
- cp TX_END
+ cp LOW(TX_END)
jp farcall_ret
; Returns: