Add cycle40 preparation, deferred diagnostics, HBlank capture, VBlank presentation, and affine history tests.