![]() |
Routines |
| Prev: A641 | Up: Map | Next: A669 |
|
The last byte-step of direct_erase_row's row, and the row's end, which the mirrored erase (direct_erase_row_mirrored) shares.
|
||||
| direct_erase_one | A647 | LD A,(DE) | Rub out the last byte | |
| A648 | CPL | |||
| A649 | AND (HL) | |||
| A64A | LD (HL),A | |||
| A64B | INC DE | |||
|
This entry point is used by the routine at mirrored_erase_one.
|
||||
| direct_erase_one_0 | A64C | LD A,(sprite_width) | Back to the image's column, up one pixel line (keeping the new column when a character row is crossed), then a row of the new image | |
| A64F | LD L,A | |||
| A650 | DEC H | |||
| A651 | LD A,H | |||
| A652 | INC A | |||
| A653 | AND $07 | |||
| A655 | JP NZ,direct_then_new_row | |||
| A658 | LD A,L | |||
| A659 | SUB $20 | |||
| A65B | LD L,A | |||
| A65C | LD (sprite_width),A | |||
| A65F | JP C,direct_then_new_row | |||
| A662 | LD A,H | |||
| A663 | ADD A,$08 | |||
| A665 | LD H,A | |||
| A666 | JP direct_then_new_row | |||
| Prev: A641 | Up: Map | Next: A669 |