![]() |
Routines |
| Prev: F5D2 | Up: Map | Next: F60B |
|
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 | F5FB | PUSH BC | Call PIXEL_ADD. | |
| F5FC | LD B,E | |||
| F5FD | LD C,D | |||
| F5FE | CALL $22AA | |||
| F601 | LD B,A | Take the column the ROM returned, count one further, and start the mask at 01. | ||
| F602 | INC B | |||
| F603 | LD A,$01 | |||
| PixelAddress_Loop | F605 | RRC A | Shift the pixel mask until it covers this column. | |
| F607 | DJNZ PixelAddress_Loop | |||
| F609 | POP BC | |||
| F60A | RET | Return. | ||
| Prev: F5D2 | Up: Map | Next: F60B |