git @ Cat's Eye Technologies SixtyPical / 105534d
Trim the type of game_state_routine, but run into something odd. Chris Pressey 7 years ago
1 changed file(s) with 9 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3030 //
3131
3232 typedef routine
33 inputs joy2, button_down, press_fire_msg, dispatch_game_state, save_x,
34 actor_pos, pos, new_pos, actor_delta, delta, actor_logic,
33 inputs joy2, button_down, press_fire_msg, dispatch_game_state,
34 actor_pos, actor_delta, actor_logic,
3535 screen, screen1, screen2, screen3, screen4, colormap1, colormap2, colormap3, colormap4
3636 outputs button_down, dispatch_game_state,
3737 actor_pos, pos, new_pos, actor_delta, delta, actor_logic,
242242
243243 routine init_game
244244 inputs actor_pos, actor_delta, actor_logic
245 outputs actor_pos, actor_delta, pos, actor_logic
246 trashes a, y, z, n, c, v
245 outputs actor_pos, actor_delta, actor_logic
246 trashes pos, a, y, z, n, c, v
247247 {
248248 ld y, 0
249249 copy word 0, pos
401401
402402 if c {
403403 call clear_screen
404
405 // FIXME: this seems wrong and we need to investigate it.
406 // init_game trashes `pos` (this is reasonable.) But pos is declared
407 // as an output to `game_state_routine`. This should be an error...
404408 call init_game
409
405410 copy forward game_state_play, dispatch_game_state
406411 }
407412