mirror of
https://github.com/catseye/SixtyPical.git
synced 2025-02-02 15:30:40 +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
|
||||
outputs a
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
routine main
|
||||
define main routine
|
||||
inputs a
|
||||
outputs a
|
||||
trashes c, z, n, v
|
||||
|
@ -1,9 +1,9 @@
|
||||
routine chrout
|
||||
define chrout routine
|
||||
inputs a
|
||||
trashes a
|
||||
@ 65490
|
||||
|
||||
routine main
|
||||
define main routine
|
||||
trashes a, x, y, z, n, c, v
|
||||
{
|
||||
ld a, 0
|
||||
|
@ -1,7 +1,7 @@
|
||||
byte bar
|
||||
byte baz
|
||||
|
||||
routine main
|
||||
define main routine
|
||||
inputs baz
|
||||
outputs bar
|
||||
trashes a, n, z
|
||||
|
@ -1,6 +1,6 @@
|
||||
byte lives
|
||||
|
||||
routine main
|
||||
define main routine
|
||||
inputs lives
|
||||
outputs lives
|
||||
trashes a, x
|
||||
|
@ -6,14 +6,14 @@ routine chrout
|
||||
trashes a
|
||||
@ 65490
|
||||
|
||||
routine printa
|
||||
define printa routine
|
||||
trashes a, z, n
|
||||
{
|
||||
ld a, 65
|
||||
call chrout
|
||||
}
|
||||
|
||||
routine printb
|
||||
define printb routine
|
||||
trashes a, z, n
|
||||
{
|
||||
ld a, 66
|
||||
|
@ -12,7 +12,7 @@ vector routine
|
||||
// call chrout
|
||||
// }
|
||||
|
||||
routine main
|
||||
define main routine
|
||||
trashes print, a, z, n
|
||||
{
|
||||
copy printa, print
|
||||
|
@ -1,7 +1,7 @@
|
||||
word one
|
||||
word table[256] many
|
||||
|
||||
routine main
|
||||
define main routine
|
||||
inputs one, many
|
||||
outputs one, many
|
||||
trashes a, x, y, n, z
|
||||
|
Loading…
x
Reference in New Issue
Block a user