Prev: A3F0 Up: Map Next: A401
A3F2: Plot Pixel
Sets the pixel at HL and writes A to its attribute byte.
Input
HL Pixel coordinate
A Attribute byte
Plot_Pixel A3F2 RES 7,H Clear bit 7 of the Y coordinate.
A3F4 PUSH AF Stash the attribute byte on the stack.
A3F5 CALL Screen_Address Call Screen_Address.
A3F8 LD A,C Merge the pixel bit mask into the screen byte.
A3F9 OR (HL)
A3FA LD (HL),A
A3FB POP AF Restore the attribute byte from the stack.
A3FC LD HL,($EED9) Fetch *Attribute_Address.
A3FF LD (HL),A Write the attribute byte to the attribute address.
A400 RET Return.
Prev: A3F0 Up: Map Next: A401