Loading...
 

WSYNC

Wait for sync. This address halts the microprocessor by clearing RDY latch to zero. RDY is set true again by the leading edge of horizontal blank. This register is a strobe, and data bits are not used.

WSYNC = $02

WRITE
NameD7D6D5D4D3D2D1D0
$02
WSYNC
S T R O B E

Code Example

; generate 37 scanlines
            ldx #37
.vBlank     sta WSYNC
            dex
            bne .vBlank

see TIA