Routines |
Prev: 7C82 | Up: Map | Next: 7CD4 |
This plots a bitmap without masking.
|
||||||||||||
plot_bitmap | 7CBE | LD A,B | Set A to the byte width of the bitmap | |||||||||
7CBF | LD ($7CC3),A | Self modify the width counter at $7CC2 to set B to the byte width | ||||||||||
plot_bitmap_row | 7CC2 | LD B,$02 | Set the column counter to the bitmap width in bytes | |||||||||
7CC4 | PUSH HL | Save the destination address | ||||||||||
plot_bitmap_column | 7CC5 | LD A,(DE) | Copy a byte across | |||||||||
7CC6 | LD (HL),A | |||||||||||
7CC7 | INC L | Step destination address | ||||||||||
7CC8 | INC DE | Step source address | ||||||||||
7CC9 | DJNZ plot_bitmap_column | Decrement the column counter then loop for every column | ||||||||||
7CCB | POP HL | Restore the destination address | ||||||||||
7CCC | CALL next_scanline_down | Move the destination address down a scanline | ||||||||||
7CCF | DEC C | Decrement the row counter | ||||||||||
7CD0 | JP NZ,plot_bitmap_row | ...loop for every row | ||||||||||
7CD3 | RET | Return |
Prev: 7C82 | Up: Map | Next: 7CD4 |