Partial conversion of example programs.
Chris Pressey
3 years ago
0 | |
routine add_four
|
|
0 |
define add_four routine
|
1 | 1 |
inputs a
|
2 | 2 |
outputs a
|
3 | 3 |
{
|
0 | |
routine main
|
|
0 |
define main routine
|
1 | 1 |
inputs a
|
2 | 2 |
outputs a
|
3 | 3 |
trashes c, z, n, v
|
0 | |
routine chrout
|
|
0 |
define chrout routine
|
1 | 1 |
inputs a
|
2 | 2 |
trashes a
|
3 | 3 |
@ 65490
|
4 | 4 |
|
5 | |
routine main
|
|
5 |
define main routine
|
6 | 6 |
trashes a, x, y, z, n, c, v
|
7 | 7 |
{
|
8 | 8 |
ld a, 0
|
0 | 0 |
byte bar
|
1 | 1 |
byte baz
|
2 | 2 |
|
3 | |
routine main
|
|
3 |
define main routine
|
4 | 4 |
inputs baz
|
5 | 5 |
outputs bar
|
6 | 6 |
trashes a, n, z
|
0 | 0 |
byte lives
|
1 | 1 |
|
2 | |
routine main
|
|
2 |
define main routine
|
3 | 3 |
inputs lives
|
4 | 4 |
outputs lives
|
5 | 5 |
trashes a, x
|
0 | 0 |
word one
|
1 | 1 |
word table[256] many
|
2 | 2 |
|
3 | |
routine main
|
|
3 |
define main routine
|
4 | 4 |
inputs one, many
|
5 | 5 |
outputs one, many
|
6 | 6 |
trashes a, x, y, n, z
|