mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-09-03 19:28:59 +00:00
59 lines
821 B
Plaintext
59 lines
821 B
Plaintext
vector routine
|
|
trashes a, z, n
|
|
print
|
|
|
|
vector (routine
|
|
trashes a, z, n)
|
|
table[32] vectors
|
|
|
|
routine chrout
|
|
inputs a
|
|
trashes a
|
|
@ 65490
|
|
|
|
routine printa
|
|
trashes a, z, n
|
|
{
|
|
ld a, 65
|
|
call chrout
|
|
}
|
|
|
|
routine printb
|
|
trashes a, z, n
|
|
{
|
|
ld a, 66
|
|
call chrout
|
|
}
|
|
|
|
routine main
|
|
inputs vectors
|
|
outputs vectors
|
|
trashes print, a, x, z, n, c
|
|
{
|
|
ld x, 0
|
|
copy printa, print
|
|
copy print, vectors + x
|
|
inc x
|
|
copy printa, print
|
|
copy print, vectors + x
|
|
inc x
|
|
copy printb, print
|
|
copy print, vectors + x
|
|
inc x
|
|
copy printa, print
|
|
copy print, vectors + x
|
|
inc x
|
|
copy printb, print
|
|
copy print, vectors + x
|
|
|
|
copy printa, print
|
|
|
|
ld x, 0
|
|
repeat {
|
|
copy vectors + x, print
|
|
call print
|
|
inc x
|
|
cmp x, 5
|
|
} until z
|
|
}
|