![]() |
Routines |
| Prev: CE5A | Up: Map | Next: CE79 |
|
Used by the routine at landscape_step_loop.
Jumped to from the column loop (landscape_step_loop) when a column lies across the view's top or bottom edge (edge_flags, the edge flags, bit 0 or 1, or any of bits 0-3 with others). In the upper tiles, a slope ends after this column (C=1). The column is counted in clipped_columns, and the first one so counted calls the code in step_screen_address that keeps the first step's place; then on to the next column.
|
||||
| column_clipped | CE5B | LD A,(ground_cell) | Upper tile and a slope: stop after this column. | |
| CE5E | BIT 0,A | |||
| CE60 | JR NZ,column_clipped_0 | |||
| CE62 | LD A,(piece_rise) | |||
| CE65 | AND A | |||
| CE66 | JR Z,column_clipped_0 | |||
| CE68 | LD C,$01 | |||
| column_clipped_0 | CE6A | LD A,(clipped_columns) | Count it; the first one keeps the step's place (step_screen_address). | |
| CE6D | INC A | |||
| CE6E | LD (clipped_columns),A | |||
| CE71 | CP $01 | |||
| CE73 | CALL Z,step_screen_address_2 | |||
| CE76 | JP after_step_drawn_2 | Next column. | ||
| Prev: CE5A | Up: Map | Next: CE79 |