mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-11-22 17:32:01 +00:00
27 lines
478 B
Plaintext
27 lines
478 B
Plaintext
|
byte table[16] hexchars : "0123456789ABCDEF"
|
||
|
|
||
|
define prbyte routine
|
||
|
inputs a, hexchars
|
||
|
trashes a, z, n, c, v
|
||
|
{
|
||
|
save x {
|
||
|
save a {
|
||
|
st off, c
|
||
|
shr a
|
||
|
shr a
|
||
|
shr a
|
||
|
shr a
|
||
|
and a, 15
|
||
|
ld x, a
|
||
|
ld a, hexchars + x
|
||
|
call chrout
|
||
|
}
|
||
|
save a {
|
||
|
and a, 15
|
||
|
ld x, a
|
||
|
ld a, hexchars + x
|
||
|
call chrout
|
||
|
}
|
||
|
}
|
||
|
}
|