mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-11-25 07:32:16 +00:00
20 lines
321 B
Plaintext
20 lines
321 B
Plaintext
// Include `support/${PLATFORM}.60p` and `support/stdlib.60p` before this source
|
|
// Should print 01
|
|
|
|
byte lives
|
|
|
|
define main routine
|
|
inputs lives, hexchars
|
|
outputs lives
|
|
trashes a, x, z, n, c, v
|
|
{
|
|
ld a, 0
|
|
st a, lives
|
|
ld x, lives
|
|
st off, c
|
|
inc x
|
|
st x, lives
|
|
ld a, lives
|
|
call prbyte
|
|
}
|