git @ Cat's Eye Technologies SixtyPical / 5549b83
More conversion. Chris Pressey 3 years ago
7 changed file(s) with 13 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
66 byte ds_lores @ $C056
77 byte ds_hires @ $C057
88
9 routine main
9 define main routine
1010 inputs a
1111 outputs ds_lores, ds_page1, ds_split, ds_graphics
1212 trashes a, z, n
00 // Write ">AB>" to "standard output"
11
2 routine cout
2 define cout routine
33 inputs a
44 trashes a
55 @ $FDED
66
7 routine main
8 inputs a
7 define main routine
98 trashes a, z, n
109 {
1110 ld a, 62
120120 // Utility Routines
121121 // ----------------------------------------------------------------
122122
123 routine read_stick
123 define read_stick routine
124124 inputs joy2
125125 outputs delta
126126 trashes a, x, z, n
185185 }
186186 }
187187
188 routine clear_screen
188 define clear_screen routine
189189 outputs screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4
190190 trashes a, y, c, n, z
191191 {
208208 } until z
209209 }
210210
211 routine calculate_new_position
211 define calculate_new_position routine
212212 inputs pos, delta
213213 outputs new_pos
214214 trashes a, c, n, z, v
242242 }
243243 }
244244
245 routine init_game
245 define init_game routine
246246 inputs actor_pos, actor_delta, actor_logic
247247 outputs actor_pos, actor_delta, actor_logic, player_died
248248 trashes pos, a, y, z, n, c, v
22 // Define where the screen starts in memory:
33 byte table[256] screen @ 1024
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 {
2323 trashes z, n
2424 save_cinv
2525
26 routine our_cinv
26 define our_cinv routine
2727 inputs vic_border
2828 outputs vic_border
2929 trashes z, n
3232 goto save_cinv
3333 }
3434
35 routine main
35 define main routine
3636 inputs cinv
3737 outputs cinv, save_cinv
3838 trashes a, n, z
22
33 word delta
44
5 routine read_stick
5 define read_stick routine
66 inputs joy2
77 outputs delta
88 trashes a, x, z, n
3535 }
3636 }
3737
38 routine main
38 define main routine
3939 inputs joy2
4040 outputs delta
4141 trashes a, x, z, n, screen
00 byte screen @ 1024
11
2 routine main
2 define main routine
33 trashes a, z, n, screen
44 {
55 ld a, 83