I have been toying with the idea of making my own monitor driver to output to a CGA monitor, I have not dealt with video too much so I would like to ask some input and see how far off my calculations are.
Bandwidth: ~ 5.8MHz
HSync: ~ 15.75KHz
projected resolution: 320x200
based on the 5.8MHz bandwidth, the 1.575KHz H sync rate, and the 60Hz V sync rate.... this should leave me around 368 clock cycles to draw and retrace per scanline at around 262 times per frame.... correct?
I am thinking that I will start drawing my image on the 20th scanline, and at the 20th clock cycle of each scanline for the following 200 scanlines... leaving 28 clock cycles for overscan and h retrace.... and 42 scan lines for overscan and vertical retrace.
Does this all seem like a good starting point to start tweaking various settings to generate the image?
Bandwidth: ~ 5.8MHz
HSync: ~ 15.75KHz
projected resolution: 320x200
based on the 5.8MHz bandwidth, the 1.575KHz H sync rate, and the 60Hz V sync rate.... this should leave me around 368 clock cycles to draw and retrace per scanline at around 262 times per frame.... correct?
I am thinking that I will start drawing my image on the 20th scanline, and at the 20th clock cycle of each scanline for the following 200 scanlines... leaving 28 clock cycles for overscan and h retrace.... and 42 scan lines for overscan and vertical retrace.
Does this all seem like a good starting point to start tweaking various settings to generate the image?