Update syntax in proto-game.
Chris Pressey
4 years ago
8 | 8 | byte vic_border @ 53280 |
9 | 9 | byte vic_bg @ 53281 |
10 | 10 | |
11 | byte table[256] screen1 @ 1024 | |
12 | byte table[256] screen2 @ 1274 | |
13 | byte table[256] screen3 @ 1524 | |
14 | byte table[256] screen4 @ 1774 | |
15 | ||
16 | byte table[256] colormap1 @ 55296 | |
17 | byte table[256] colormap2 @ 55546 | |
18 | byte table[256] colormap3 @ 55796 | |
19 | byte table[256] colormap4 @ 56046 | |
11 | table[256] byte screen1 @ 1024 | |
12 | table[256] byte screen2 @ 1274 | |
13 | table[256] byte screen3 @ 1524 | |
14 | table[256] byte screen4 @ 1774 | |
15 | ||
16 | table[256] byte colormap1 @ 55296 | |
17 | table[256] byte colormap2 @ 55546 | |
18 | table[256] byte colormap3 @ 55796 | |
19 | table[256] byte colormap4 @ 56046 | |
20 | 20 | |
21 | 21 | buffer[2048] screen @ 1024 |
22 | 22 | byte joy2 @ $dc00 |
27 | 27 | |
28 | 28 | pointer ptr @ 254 |
29 | 29 | |
30 | word table[256] actor_pos | |
30 | table[256] word actor_pos | |
31 | 31 | word pos |
32 | 32 | word new_pos |
33 | 33 | |
34 | word table[256] actor_delta | |
34 | table[256] word actor_delta | |
35 | 35 | word delta |
36 | 36 | |
37 | 37 | byte button_down : 0 // effectively static-local to check_button |
38 | byte table[18] press_fire_msg: "PRESS`FIRE`TO`PLAY" | |
38 | table[32] byte press_fire_msg: "PRESS`FIRE`TO`PLAY" | |
39 | 39 | |
40 | 40 | byte save_x |
41 | 41 | word compare_target |
50 | 50 | // and output. There is probably a better way to do this, but it needs thought. |
51 | 51 | // |
52 | 52 | |
53 | vector dispatch_game_state | |
54 | inputs joy2, button_down, press_fire_msg, dispatch_game_state, save_x, | |
55 | actor_pos, pos, new_pos, actor_delta, delta, | |
56 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
57 | outputs button_down, dispatch_game_state, | |
58 | actor_pos, pos, new_pos, actor_delta, delta, | |
59 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
60 | trashes a, x, y, c, z, n, v, ptr, save_x, compare_target | |
53 | vector routine | |
54 | inputs joy2, button_down, press_fire_msg, dispatch_game_state, save_x, | |
55 | actor_pos, pos, new_pos, actor_delta, delta, | |
56 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
57 | outputs button_down, dispatch_game_state, | |
58 | actor_pos, pos, new_pos, actor_delta, delta, | |
59 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
60 | trashes a, x, y, c, z, n, v, ptr, save_x, compare_target | |
61 | dispatch_game_state | |
61 | 62 | |
62 | 63 | // |
63 | 64 | // The constraints on these 2 vectors are kind-of sort-of big fibs. |
71 | 72 | // a future version of SixtyPical. |
72 | 73 | // |
73 | 74 | |
74 | vector cinv | |
75 | inputs joy2, button_down, press_fire_msg, dispatch_game_state, save_x, | |
76 | actor_pos, pos, new_pos, actor_delta, delta, | |
77 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
78 | outputs button_down, dispatch_game_state, | |
79 | actor_pos, pos, new_pos, actor_delta, delta, | |
80 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
81 | trashes a, x, y, c, z, n, v, ptr, save_x, compare_target | |
82 | @ 788 | |
83 | ||
84 | vector save_cinv | |
85 | inputs joy2, button_down, press_fire_msg, dispatch_game_state, save_x, | |
86 | actor_pos, pos, new_pos, actor_delta, delta, | |
87 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
88 | outputs button_down, dispatch_game_state, | |
89 | actor_pos, pos, new_pos, actor_delta, delta, | |
90 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
91 | trashes a, x, y, c, z, n, v, ptr, save_x, compare_target | |
75 | vector routine | |
76 | inputs joy2, button_down, press_fire_msg, dispatch_game_state, save_x, | |
77 | actor_pos, pos, new_pos, actor_delta, delta, | |
78 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
79 | outputs button_down, dispatch_game_state, | |
80 | actor_pos, pos, new_pos, actor_delta, delta, | |
81 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
82 | trashes a, x, y, c, z, n, v, ptr, save_x, compare_target | |
83 | cinv @ 788 | |
84 | ||
85 | vector routine | |
86 | inputs joy2, button_down, press_fire_msg, dispatch_game_state, save_x, | |
87 | actor_pos, pos, new_pos, actor_delta, delta, | |
88 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
89 | outputs button_down, dispatch_game_state, | |
90 | actor_pos, pos, new_pos, actor_delta, delta, | |
91 | screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4 | |
92 | trashes a, x, y, c, z, n, v, ptr, save_x, compare_target | |
93 | save_cinv | |
92 | 94 | |
93 | 95 | // ---------------------------------------------------------------- |
94 | 96 | // Utility Routines |