git @ Cat's Eye Technologies SixtyPical / f81757f
Partial conversion of example programs. Chris Pressey 3 years ago
8 changed file(s) with 10 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
0 routine add_four
0 define add_four routine
11 inputs a
22 outputs a
33 {
0 routine main
0 define main routine
11 inputs a
22 outputs a
33 trashes c, z, n, v
0 routine chrout
0 define chrout routine
11 inputs a
22 trashes a
33 @ 65490
44
5 routine main
5 define main routine
66 trashes a, x, y, z, n, c, v
77 {
88 ld a, 0
00 byte bar
11 byte baz
22
3 routine main
3 define main routine
44 inputs baz
55 outputs bar
66 trashes a, n, z
00 byte lives
11
2 routine main
2 define main routine
33 inputs lives
44 outputs lives
55 trashes a, x
55 trashes a
66 @ 65490
77
8 routine printa
8 define printa routine
99 trashes a, z, n
1010 {
1111 ld a, 65
1212 call chrout
1313 }
1414
15 routine printb
15 define printb routine
1616 trashes a, z, n
1717 {
1818 ld a, 66
1111 // call chrout
1212 // }
1313
14 routine main
14 define main routine
1515 trashes print, a, z, n
1616 {
1717 copy printa, print
00 word one
11 word table[256] many
22
3 routine main
3 define main routine
44 inputs one, many
55 outputs one, many
66 trashes a, x, y, n, z