Prev: 9C2F Up: Map Next: 9C79
9C61: Plot one pixel
Used by the routine at DRAW_LINE.
Takes the low three bits of x, rotates a single set bit into that position, and ORs it into the screen at the pixel's address -- DRAW_LINE's plot.
PLOT_PIXEL 9C61 LD A,L
9C62 AND $07
9C64 INC A
9C65 LD B,A
9C66 XOR A
9C67 SCF
PLOT_PIXEL_0 9C68 RRA
9C69 DJNZ PLOT_PIXEL_0
9C6B PUSH HL
9C6C PUSH AF
9C6D EX AF,AF'
9C6E PUSH AF
9C6F CALL PIXEL_TO_SCREEN
9C72 POP AF
9C73 EX AF,AF'
9C74 POP AF
9C75 OR (HL)
9C76 LD (HL),A
9C77 POP HL
9C78 RET
Prev: 9C2F Up: Map Next: 9C79