diff options
author | Rangi <remy.oukaour+rangi@gmail.com> | 2020-08-09 15:16:31 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi@gmail.com> | 2020-08-09 15:16:31 -0400 |
commit | 9c229cde440bc6f68343331ad7bc6e1a52a742f0 (patch) | |
tree | 3bc08aaca7e09ae9933a11dbdcdc545b90d5b343 /home/print_hex.asm | |
parent | a75c6619fb933dc2d4c94b24394fb6fa9335b3b1 (diff) |
Clean up some code in home/
Diffstat (limited to 'home/print_hex.asm')
-rw-r--r-- | home/print_hex.asm | 11 |
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" |