mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 15:48:04 +11:00
core: make a bit more zasm-friendly
This commit is contained in:
parent
1010e8372c
commit
23fd493013
@ -4,8 +4,8 @@
|
|||||||
; in your glue file.
|
; in your glue file.
|
||||||
|
|
||||||
; *** CONSTS ***
|
; *** CONSTS ***
|
||||||
ASCII_CR .equ 0x0d
|
.equ ASCII_CR 0x0d
|
||||||
ASCII_LF .equ 0x0a
|
.equ ASCII_LF 0x0a
|
||||||
|
|
||||||
; *** DATA ***
|
; *** DATA ***
|
||||||
; Useful data to point to, when a pointer is needed.
|
; Useful data to point to, when a pointer is needed.
|
||||||
@ -136,7 +136,7 @@ findchar:
|
|||||||
|
|
||||||
; Format the lower nibble of A into a hex char and stores the result in A.
|
; Format the lower nibble of A into a hex char and stores the result in A.
|
||||||
fmtHex:
|
fmtHex:
|
||||||
and a, 0xf
|
and 0xf
|
||||||
cp 10
|
cp 10
|
||||||
jr nc, .alpha ; if >= 10, we have alpha
|
jr nc, .alpha ; if >= 10, we have alpha
|
||||||
add a, '0'
|
add a, '0'
|
||||||
|
Loading…
Reference in New Issue
Block a user