![]() |
Routines |
| Prev: CE5B | Up: Map | Next: CE97 |
|
Used by the routine at landscape_step_loop.
From landscape_step_loop when, in one of the two lower tiles, the column's top is level with the view's edge (view_y). Bit 7 of the edge flags edge_flags is set; unless the vertical step scroll_down is negative, bit 0 is set instead and copied to piece_clip. On to the horizontal tests.
|
||||
| column_at_view_bottom | CE79 | LD A,(edge_flags) | Flag it; a negative step: no more. | |
| CE7C | OR $80 | |||
| CE7E | LD (edge_flags),A | |||
| CE81 | LD A,(scroll_down) | |||
| CE84 | BIT 7,A | |||
| CE86 | JP NZ,landscape_step_loop_2 | |||
| CE89 | LD A,(edge_flags) | Otherwise bit 0, kept in piece_clip too. | ||
| CE8C | XOR $81 | |||
| CE8E | LD (edge_flags),A | |||
| CE91 | LD (piece_clip),A | |||
| CE94 | JP landscape_step_loop_2 | |||
| Prev: CE5B | Up: Map | Next: CE97 |