git @ Cat's Eye Technologies SixtyPical / 7c3e1ae
Use `trash` to avoid writing code that's only to please the analyzer! Chris Pressey 7 years ago
1 changed file(s) with 18 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
257257 copy 81, [ptr] + y
258258 copy new_pos, pos
259259
260 ld a, 0 // FIXME shouldn't be needed
261 } else {
262 copy ^screen, ptr // FIXME shouldn't be needed
263 ld y, 0 // FIXME shouldn't be needed
264 ld a, 0 // FIXME shouldn't be needed
265 add a, 0 // FIXME shouldn't be needed
260 // FIXME these trashes, strictly speaking, probably shouldn't be needed,
261 // but currently the compiler cares too much about values that are
262 // initialized in one branch of an `if`, but not the other, but trashed
263 // at the end of the routine anyway.
264 trash ptr
265 trash y
266 trash a
267 trash v
266268 }
267269 }
268270
348350 call clear_screen
349351 // call init_game
350352 copy game_state_play, dispatch_game_state
351 ld a, 0 // FIXME we shouldn't need to.
352 ld y, 0 // FIXME we shouldn't need to.
353 st off, c // FIXME we shouldn't need to.
353
354 // FIXME these trashes, strictly speaking, probably shouldn't be needed,
355 // but currently the compiler cares too much about values that are
356 // initialized in one branch of an `if`, but not the other, but trashed
357 // at the end of the routine anyway.
358 trash a
359 trash n
360 trash z
354361 } else {
355 ld a, 0 // FIXME we shouldn't need to.
362 trash y
363 trash c
356364 }
357365
358366 goto save_cinv