mirror of
https://github.com/catseye/SixtyPical.git
synced 2025-02-09 01:30:50 +00:00
Partial conversion of example programs.
This commit is contained in:
parent
38119dbe29
commit
f81757fd76
@ -1,4 +1,4 @@
|
|||||||
routine add_four
|
define add_four routine
|
||||||
inputs a
|
inputs a
|
||||||
outputs a
|
outputs a
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
routine main
|
define main routine
|
||||||
inputs a
|
inputs a
|
||||||
outputs a
|
outputs a
|
||||||
trashes c, z, n, v
|
trashes c, z, n, v
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
routine chrout
|
define chrout routine
|
||||||
inputs a
|
inputs a
|
||||||
trashes a
|
trashes a
|
||||||
@ 65490
|
@ 65490
|
||||||
|
|
||||||
routine main
|
define main routine
|
||||||
trashes a, x, y, z, n, c, v
|
trashes a, x, y, z, n, c, v
|
||||||
{
|
{
|
||||||
ld a, 0
|
ld a, 0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
byte bar
|
byte bar
|
||||||
byte baz
|
byte baz
|
||||||
|
|
||||||
routine main
|
define main routine
|
||||||
inputs baz
|
inputs baz
|
||||||
outputs bar
|
outputs bar
|
||||||
trashes a, n, z
|
trashes a, n, z
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
byte lives
|
byte lives
|
||||||
|
|
||||||
routine main
|
define main routine
|
||||||
inputs lives
|
inputs lives
|
||||||
outputs lives
|
outputs lives
|
||||||
trashes a, x
|
trashes a, x
|
||||||
|
@ -6,14 +6,14 @@ routine chrout
|
|||||||
trashes a
|
trashes a
|
||||||
@ 65490
|
@ 65490
|
||||||
|
|
||||||
routine printa
|
define printa routine
|
||||||
trashes a, z, n
|
trashes a, z, n
|
||||||
{
|
{
|
||||||
ld a, 65
|
ld a, 65
|
||||||
call chrout
|
call chrout
|
||||||
}
|
}
|
||||||
|
|
||||||
routine printb
|
define printb routine
|
||||||
trashes a, z, n
|
trashes a, z, n
|
||||||
{
|
{
|
||||||
ld a, 66
|
ld a, 66
|
||||||
|
@ -12,7 +12,7 @@ vector routine
|
|||||||
// call chrout
|
// call chrout
|
||||||
// }
|
// }
|
||||||
|
|
||||||
routine main
|
define main routine
|
||||||
trashes print, a, z, n
|
trashes print, a, z, n
|
||||||
{
|
{
|
||||||
copy printa, print
|
copy printa, print
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
word one
|
word one
|
||||||
word table[256] many
|
word table[256] many
|
||||||
|
|
||||||
routine main
|
define main routine
|
||||||
inputs one, many
|
inputs one, many
|
||||||
outputs one, many
|
outputs one, many
|
||||||
trashes a, x, y, n, z
|
trashes a, x, y, n, z
|
||||||
|
Loading…
x
Reference in New Issue
Block a user