Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The ZX80/81 used Don Lancaster's "Cheap Video and Lying To the Machine" method of graphics output: http://laughtonelectronics.com/Arcana/KimKlone/BrideOfSon%20...

Essentially, the CPU executes each line of video, jumping to the start of each line of cells. The video system latches each byte onto a shift register and displays it.

But the CPU is tricked -- NOPs are forced onto its data bus right before it decodes the instruction. So it merrily marches along fetching successive bytes for the video subsystem, without interpreting them.

That is, until a certain bit of the character code is seen, then the CPU is allowed to execute the instruction and terminate the scanline (usually HALT on the ZX). This process repeats over and over for each scanline.

As a result, it's pretty tricky to program animations. There's not much CPU time left for anything while a frame is being displayed.



In FAST mode, the 81 blanked the entire screen while drawing because of that. It was eerily fascinating.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: