![]() |
Routines |
| Prev: DB26 | Up: Map | Next: DB41 |
|
Used by the routines at fill_two_rows and fill_four_rows.
Moves HL up the rest of the step's height (piece_rows less the B rows already filled), keeps piece_page_y in step, and loops to fill_next_step for the next step.
|
||||||||
| fill_up_past_step | DB29 | LD A,(piece_rows) | ||||||
| DB2C | SUB B | |||||||
| DB2D | LD B,A | |||||||
| DB2E | LD A,(piece_page_y) | |||||||
| DB31 | SUB B | |||||||
| DB32 | LD (piece_page_y),A | |||||||
| DB35 | SRL B | |||||||
| fill_up_past_step_0 | DB37 | DEC H | ||||||
| DB38 | CALL line_up_hl | |||||||
| DB3B | DJNZ fill_up_past_step_0 | |||||||
| DB3D | EXX | |||||||
| DB3E | DJNZ fill_next_step | |||||||
| DB40 | RET | |||||||
| Prev: DB26 | Up: Map | Next: DB41 |