1
0
mirror of https://github.com/hsoft/collapseos.git synced 2025-04-05 06:38:40 +11:00

Fixed tabs and spacing

This commit is contained in:
Clanmaster21 2019-10-13 14:07:39 +01:00 committed by GitHub
parent ed1643dc00
commit 15f9869d68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,10 +190,10 @@ findchar:
fmtHex: fmtHex:
; we need to make the upper nibble a known value ; we need to make the upper nibble a known value
; also clears the N, C and H flags for daa ; also clears the N, C and H flags for daa
or 0xf0 or 0xf0
daa ; now a =0x50 + the original value + 0x06 if >= 0xfa daa ; now a =0x50 + the original value + 0x06 if >= 0xfa
add a, 0xa0 ; cause a carry for the values that were >=0x0a add a, 0xa0 ; cause a carry for the values that were >=0x0a
adc a, 0x40 adc a, 0x40
ret ret
; Formats value in A into a string hex pair. Stores it in the memory location ; Formats value in A into a string hex pair. Stores it in the memory location