git @ Cat's Eye Technologies SixtyPical / 7680f09
More conversion. I think that's the last of it. Chris Pressey 3 years ago
7 changed file(s) with 14 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
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
22 define main routine
33 inputs lives
44 outputs lives
5 trashes a, x
5 trashes a, x, z, n, c, v
66 {
77 ld a, 0
88 st a, lives
00 define main routine
11 inputs a
22 outputs a
3 trashes z, n, c
34 {
45 cmp a, 42
56 if z {
00 byte table[8] message : "WHAT?"
11
2 routine main
2 define main routine
33 inputs message
44 outputs x, a, z, n
55 {
00 // This will not compile on its own, because there is no `main`.
11 // But this and `vector-main.60p` together will compile.
22
3 routine chrout
3 define chrout routine
44 inputs a
55 trashes a
66 @ 65490
1010 trashes a, z, n)
1111 table[32] vectors
1212
13 routine chrout
13 define chrout routine
1414 inputs a
1515 trashes a
1616 @ 65490
1717
18 routine printa
18 define printa routine
1919 trashes a, z, n
2020 {
2121 ld a, 65
2222 call chrout
2323 }
2424
25 routine printb
25 define printb routine
2626 trashes a, z, n
2727 {
2828 ld a, 66
2929 call chrout
3030 }
3131
32 routine main
32 define main routine
3333 inputs vectors
3434 outputs vectors
3535 trashes print, a, x, z, n, c
11 trashes a, z, n
22 print
33
4 routine chrout
4 define chrout routine
55 inputs a
66 trashes a
77 @ 65490
88
9 routine printa
9 define printa routine
1010 trashes a, z, n
1111 {
1212 ld a, 65
1313 call chrout
1414 }
1515
16 routine printb
16 define printb routine
1717 trashes a, z, n
1818 {
1919 ld a, 66
2020 call chrout
2121 }
2222
23 routine main
23 define main routine
2424 trashes print, a, z, n
2525 {
2626 copy printa, print