mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 09:48:05 +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.
|
||||
|
||||
; *** CONSTS ***
|
||||
ASCII_CR .equ 0x0d
|
||||
ASCII_LF .equ 0x0a
|
||||
.equ ASCII_CR 0x0d
|
||||
.equ ASCII_LF 0x0a
|
||||
|
||||
; *** DATA ***
|
||||
; 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.
|
||||
fmtHex:
|
||||
and a, 0xf
|
||||
and 0xf
|
||||
cp 10
|
||||
jr nc, .alpha ; if >= 10, we have alpha
|
||||
add a, '0'
|
||||
|
Loading…
Reference in New Issue
Block a user