Changes

CRTC

No change in size, Saturday at 12:22
/* CRTC counter differences */
== CRTC counter differences ==
 
=== MA buffering ===
 
At the end of the display of the last raster line of each character line (ie. when HCC=R1 and VLC=R9), MA' captures the current value of MA.
 
CRTC 2 is the exception, where MA' captures R12/R13 instead of MA at the last line of the frame.
 
<br>
=== MA reload ===
On CRTC 1, at every raster line start of the first character line of the frame (ie. when VCC=0), MA is reloaded with R12/R13 instead of MA'. This discrepancy is a major source of incompatibility if the programmer does not take care. In demos and games, to be compatible with all CRTCs, program R12/R13 when VCC!=0. This will then take effect at the next frame start.
 
<br>
 
=== MA buffering ===
 
At the end of the display of the last raster line of each character line (ie. when HCC=R1 and VLC=R9), MA' captures the current value of MA.
 
CRTC 2 is the exception, where MA' captures R12/R13 instead of MA at the last line of the frame.
<br>
6,059
edits