summaryrefslogtreecommitdiff
path: root/home/print_hex.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/print_hex.asm')
-rw-r--r--home/print_hex.asm11
1 files changed, 5 insertions, 6 deletions
diff --git a/home/print_hex.asm b/home/print_hex.asm
index 1108afa..07d3736 100644
--- a/home/print_hex.asm
+++ b/home/print_hex.asm
@@ -2,7 +2,7 @@ INCLUDE "constants.asm"
SECTION "home/print_hex.asm", ROM0
-PrintHexBytes: ; 3597 (0:3597)
+PrintHexBytes:
; Print c hex bytes located at de to hl
.loop
push bc
@@ -12,7 +12,7 @@ PrintHexBytes: ; 3597 (0:3597)
jr nz, .loop
ret
-PrintHexByte:: ; 35a0 (0:35a0)
+PrintHexByte::
; Print one hex byte located at de to hl
ld a, [de]
swap a
@@ -26,9 +26,8 @@ PrintHexByte:: ; 35a0 (0:35a0)
inc de
ret
-GetHexDigit: ; 35b2 (0:35b2)
-; Get a hex digit tile number
-; in a.
+GetHexDigit:
+; Get a hex digit tile number in a
ld bc, .hexDigitTable
add c
ld c, a
@@ -39,4 +38,4 @@ GetHexDigit: ; 35b2 (0:35b2)
ret
.hexDigitTable:
- db "0123456789ABCDEF" \ No newline at end of file
+ db "0123456789ABCDEF"