mirror of
https://github.com/catseye/SixtyPical.git
synced 2025-01-23 10:30:16 +00:00
Make word-table print YY.
This commit is contained in:
parent
d1a29709f2
commit
03a682ff08
@ -1,16 +1,41 @@
|
||||
// Include `support/${PLATFORM}.60p` before this source
|
||||
// Should print YY
|
||||
|
||||
word one
|
||||
word table[256] many
|
||||
|
||||
define main routine
|
||||
inputs one, many
|
||||
outputs one, many
|
||||
trashes a, x, y, n, z
|
||||
trashes a, x, y, c, n, z
|
||||
{
|
||||
ld x, 0
|
||||
ld y, 0
|
||||
ld y, 1
|
||||
copy 777, one
|
||||
copy one, many + x
|
||||
copy 888, one
|
||||
copy one, many + y
|
||||
|
||||
ld x, 1
|
||||
ld y, 0
|
||||
|
||||
copy many + x, one
|
||||
cmp one, 888
|
||||
if z {
|
||||
ld a, 89
|
||||
call chrout
|
||||
} else {
|
||||
ld a, 78
|
||||
call chrout
|
||||
}
|
||||
|
||||
copy many + y, one
|
||||
cmp one, 777
|
||||
if z {
|
||||
ld a, 89
|
||||
call chrout
|
||||
} else {
|
||||
ld a, 78
|
||||
call chrout
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user