diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-09-13 16:14:27 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-09-13 16:14:27 -0400 |
commit | 871b566c726c7e8b3288682b4826b957b5dcc72b (patch) | |
tree | 8312a2c269cd964029381ebc3ef65b2e89f8cd2c | |
parent | a408f6e79271bcffc0dd4292a603a89b62e2d379 (diff) |
LOW(TX_END) == HIGH(TX_END) == $ff; checks are for if low & high == $ff
-rw-r--r-- | source/bank_00.asm | 2 | ||||
-rw-r--r-- | source/bank_02.asm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/bank_00.asm b/source/bank_00.asm index 6c4a634..9e967ae 100644 --- a/source/bank_00.asm +++ b/source/bank_00.asm @@ -1379,7 +1379,7 @@ text_print:: ld a, [hl+] ld d, a and e - cp LOW(TX_END) + cp TX_END jr z, .loop push bc diff --git a/source/bank_02.asm b/source/bank_02.asm index 07ecdf7..a15b070 100644 --- a/source/bank_02.asm +++ b/source/bank_02.asm @@ -28,7 +28,7 @@ textbox_print_char:: ; Check if we've reached the end of the string ld d, a and e - cp LOW(TX_END) + cp TX_END jp z, farcall_ret push hl @@ -80,7 +80,7 @@ textbox_print_char:: ; Check if the next character is a terminator ld a, [hl+] and [hl] - cp LOW(TX_END) + cp TX_END jp farcall_ret ; Returns: |