![]() |
Routines |
| Prev: A54B | Up: Map | Next: A57C |
|
Reached from copy_box_out by the DJNZ there, whose displacement copy_box_in patches so that it lands on the LDI that copies just the box's width: one LDI per byte, up to seven. Then the row's screen address comes back off the stack, moves up a pixel line (crossing a character row or a third of the screen as needed), and the loop goes round again at copy_box_out's DJNZ.
|
||||
| copy_out_row | A557 | LDI | Up to seven bytes | |
| A559 | LDI | |||
| A55B | LDI | |||
| A55D | LDI | |||
| A55F | LDI | |||
| A561 | LDI | |||
| A563 | LDI | |||
| A565 | POP DE | Back to the row's start, up one pixel line, and round again | ||
| A566 | DEC D | |||
| A567 | LD A,D | |||
| A568 | INC A | |||
| A569 | AND $07 | |||
| A56B | JP NZ,copy_box_out_0 | |||
| A56E | LD A,E | |||
| A56F | SUB $20 | |||
| A571 | LD E,A | |||
| A572 | JP C,copy_box_out_0 | |||
| A575 | LD A,D | |||
| A576 | ADD A,$08 | |||
| A578 | LD D,A | |||
| A579 | JP copy_box_out_0 | |||
| Prev: A54B | Up: Map | Next: A57C |