Screen refresh rate

From CPCWiki - THE Amstrad CPC encyclopedia!
Revision as of 18:35, 21 April 2012 by Octoate (Talk | contribs) (Created page with "It is possible to set different screen refresh rates by changing some CRTC registers. With the following lines of code you can change the refresh rate to 50Hz, 60Hz or 75Hz. ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

It is possible to set different screen refresh rates by changing some CRTC registers. With the following lines of code you can change the refresh rate to 50Hz, 60Hz or 75Hz.

50 Hz

ld bc,&bc04
out (c),c
ld bc,&bd26
out (c),c 
ld bc,&bc05 
out (c),c 
ld bc,&bd00 
out (c),c 
ld bc,&bc07 
out (c),c 
ld bc,&bd1e 
out (c),c 

60 Hz

ld bc,&bc04 
out (c),c 
ld bc,&bd1f 
out (c),c 
ld bc,&bc05 
out (c),c 
ld bc,&bd06 
out (c),c 
ld bc,&bc07 
out (c),c 
ld bc,&bd1b 
out (c),c 

75 Hz

ld bc,&bc04 
out (c),c 
ld bc,&bd1b 
out (c),c 
ld bc,&bc05 
out (c),c 
ld bc,&bd02 
out (c),c 
ld bc,&bc07 
out (c),c 
ld bc,&bd19 
out (c),c