Prev: 62930 Up: Map Next: 62987
62971: Pixel Address
Used by the routines at KeepOnlyBitsThatAreSet and PlotPixel.
Asks the ROM for the display address of this pixel and builds the bit mask for it. E is counted up from the bottom of the screen, and the ROM turns that into the screen row.
PixelAddress 62971 PUSH BC Call PIXEL_ADD.
62972 LD B,E
62973 LD C,D
62974 CALL 8874
62977 LD B,A Take the column the ROM returned, count one further, and start the mask at 1.
62978 INC B
62979 LD A,1
PixelAddress_Loop 62981 RRC A Shift the pixel mask until it covers this column.
62983 DJNZ PixelAddress_Loop
62985 POP BC
62986 RET Return.
Prev: 62930 Up: Map Next: 62987