* Synchronising using the VSYNC
The [[VSYNC]] signal of the CRTC is connected directly to [[8255|PPI]] port B, therefore it is possible to test the state of the VSYNC.
It is possible to synchronise to the start of the VSYNC using the following code: e.g.