From 9d54c015e7b865e62ee8cf8d31710c9e7c372beb Mon Sep 17 00:00:00 2001 From: Rangi Date: Sat, 12 Sep 2020 18:30:24 -0400 Subject: Avoid value truncation warnign --- source/bank_02.asm | 4 ++-- 1 file 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: -- cgit v1.2.3