Prev: 7C82 Up: Map Next: 7CD4
7CBE: Plot bitmap
This plots a bitmap without masking.
Used by the routines at draw_item, wave_morale_flag and plot_ringer.
Input
BC Dimensions (B x C == width x height, where width is specified in bytes).
DE Source address.
HL Destination address.
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