Prev: 64620 Up: Map Next: 64786
64774: Convert pixel to screen address
Used by the routine at FILL_ROUTINE.
Input
B x co-ordinate
C y-co-ordinate
Output
HL screen address to write to
A value to write to set that pixel
PIXEL_TO_SCREEN_ADDRESS 64774 PUSH BC Store X and Y co-ordinates
64775 CALL 8874 'Pixel address' subroutine
64778 LD BC,64786 BC=pixel conversion table
64781 ADD A,C
64782 LD C,A C=offset in pixel conversion table
64783 LD A,(BC) A=value to write to screen memory to set that pixel
64784 POP BC Retrieve X and Y co-ordinates
64785 RET
Prev: 64620 Up: Map Next: 64786