git @ Cat's Eye Technologies SixtyPical / afd0830
Update syntax in proto-game. Chris Pressey 4 years ago
1 changed file(s) with 40 addition(s) and 38 deletion(s). Raw diff Collapse all Expand all
88 byte vic_border @ 53280
99 byte vic_bg @ 53281
1010
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
2020
2121 buffer[2048] screen @ 1024
2222 byte joy2 @ $dc00
2727
2828 pointer ptr @ 254
2929
30 word table[256] actor_pos
30 table[256] word actor_pos
3131 word pos
3232 word new_pos
3333
34 word table[256] actor_delta
34 table[256] word actor_delta
3535 word delta
3636
3737 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"
3939
4040 byte save_x
4141 word compare_target
5050 // and output. There is probably a better way to do this, but it needs thought.
5151 //
5252
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
6162
6263 //
6364 // The constraints on these 2 vectors are kind-of sort-of big fibs.
7172 // a future version of SixtyPical.
7273 //
7374
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
9294
9395 // ----------------------------------------------------------------
9496 // Utility Routines