Prev: 41968 Up: Map Next: 41985
41970: Plot Pixel
Sets the pixel at HL and writes A to its attribute byte.
Input
HL Pixel coordinate
A Attribute byte
Plot_Pixel 41970 RES 7,H Clear bit 7 of the Y coordinate.
41972 PUSH AF Stash the attribute byte on the stack.
41973 CALL Screen_Address Call Screen_Address.
41976 LD A,C Merge the pixel bit mask into the screen byte.
41977 OR (HL)
41978 LD (HL),A
41979 POP AF Restore the attribute byte from the stack.
41980 LD HL,(61145) Fetch *Attribute_Address.
41983 LD (HL),A Write the attribute byte to the attribute address.
41984 RET Return.
Prev: 41968 Up: Map Next: 41985