diff options
author | Thomas Winwood <twwinwood@gmail.com> | 2018-07-21 02:06:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-21 02:06:31 +0100 |
commit | 23ef2f50a7b94c23b50e9e690a7482ac349c9ef3 (patch) | |
tree | 63c20c67efbdf8334c6e273f78065b83135e3886 /home/print_bcd.asm | |
parent | 17a4d0540acc00e3f5ad260009115eb36e72b7d2 (diff) | |
parent | 2d73d040d16a7836f935a7a6cb2a311aed2ca5a2 (diff) |
Merge branch 'master' into the-diffening
Diffstat (limited to 'home/print_bcd.asm')
-rw-r--r-- | home/print_bcd.asm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/home/print_bcd.asm b/home/print_bcd.asm index aecf8eb96..4f93c866f 100644 --- a/home/print_bcd.asm +++ b/home/print_bcd.asm @@ -1,4 +1,4 @@ -PrintBCDNumber:: ; 38bb +PrintBCDNumber:: ; function to print a BCD (Binary-coded decimal) number ; de = address of BCD number ; hl = destination address @@ -48,9 +48,8 @@ PrintBCDNumber:: ; 38bb inc hl .done ret -; 0x38f2 -PrintBCDDigit:: ; 38f2 +PrintBCDDigit:: and %00001111 and a jr z, .zeroDigit @@ -78,4 +77,3 @@ PrintBCDDigit:: ; 38f2 ld a, " " ld [hli], a ; if right-aligned, "print" a space by advancing the pointer ret -; 0x3917 |