git @ Cat's Eye Technologies SixtyPical / 7d32277
More conversion. Chris Pressey 3 years ago
12 changed file(s) with 20 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
456456 goto dispatch_game_state
457457 }
458458
459 routine main
459 define main routine
460460 inputs cinv
461461 outputs cinv, save_cinv, pos, dispatch_game_state,
462462 screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4
4848 // generating them as part of a SixtyPical program would not
4949 // be practical. So we just jump to this location instead.
5050
51 routine pla_tay_pla_tax_pla_rti
51 define pla_tay_pla_tax_pla_rti routine
5252 inputs a
5353 trashes a
5454 @ $EA81
00 word score
1 routine main
1 define main routine
22 inputs score
33 outputs score
44 trashes a, c, z, v, n
11 pointer ptr @ 254
22 byte foo
33
4 routine main
4 define main routine
55 inputs buf
66 outputs buf, y, foo
77 trashes a, z, n, ptr
0 routine chrout
0 define chrout routine
11 inputs a
22 trashes a
33 @ 65490
44
5 routine print
5 define print routine
66 trashes a, z, n
77 {
88 ld a, 65
99 call chrout
1010 }
1111
12 routine main
12 define main routine
1313 trashes a, z, n
1414 {
1515 call print
0 routine main
0 define main routine
11 trashes a, y, z, n, c
22 {
33 ld y, 65
0 routine chrout
0 define chrout routine
11 inputs a
22 trashes a
33 @ 65490
44
5 routine bar trashes a, z, n {
5 define bar routine trashes a, z, n {
66 ld a, 66
77 call chrout
88 }
99
10 routine main trashes a, z, n {
10 define main routine trashes a, z, n {
1111 ld a, 65
1212 call chrout
1313 goto bar
0 routine foo
0 define main routine
11 inputs a
22 outputs a
33 {
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, y, z, n, c
77 {
88 ld y, 65
00 byte foo
11
2 routine chrout
2 define chrout routine
33 inputs a
44 trashes a
55 @ 65490
66
7 routine print
7 define print routine
88 inputs foo
99 trashes a, z, n
1010 {
1212 call chrout
1313 }
1414
15 routine main
15 define main routine
1616 trashes a, y, z, n, foo
1717 {
1818 ld y, 65
0 routine chrout
0 define chrout routine
11 inputs a
22 trashes a
33 @ 65490
44
5 routine main
5 define main routine
66 inputs a
77 trashes a, z, n
88 {
22 // Define where the screen starts in memory:
33 byte table[256] screen @ 7680
44
5 routine main
5 define main routine
66 // These are the values that will be written to by this routine:
77 trashes a, x, z, n, screen
88 {