Java prototype of a scanline renderer (eventually to be implemented in z80 assembly)