First post, by Scali
I posted this thread on VCF a few days ago, but figured there may be people with a Hercules or clone and/or who are interested.
http://www.vcfed.org/forum/showthread.php?522 … equency-Kenneth
Basically I'm playing around with Hercules programming somewhat.
I am interested in any PDFs or other resources on the topic by the way.
One thing that struck me so far is that the CRTC values for graphics mode and text mode yield slightly different resolutions.
So, I made a small test program to measure the time per frame with the PIT: https://www.dropbox.com/s/lo7p9ravnq0407n/HERCTIME.zip?dl=0
On my system I indeed got different values for graphics and textmode (see attachment).
So I did the maths:
Measured (ATi Small Wonder, 16.257 MHz crystal):
Graphics: ~23440 ticks
Text: ~23923 ticks
Total pixels:
Graphics: 864*370 = 319680
Text: 882*370 = 326340
319680/326340 = 0.97959183673469387755102040816327
23440/23923 = 0.97981022447017514525770179325335
Apparently there is a 2% difference in number of pixels... and also a 2% difference in frame time (which is expected, since the clock is the same, so each pixel takes the same amount of time).
But one thing I am interested in at this point: Original IBM MDA cards have a 16.257 MHz crystal.
My ATi Small Wonder and Paradise PVC4 clones also have a 16.257 MHz crystal.
However, I have images of original Hercules cards online, and they use a 16.000 MHz crystal. I've also seen various clones with a 16.000 MHz crystal. So I would expect those to have slightly longer frame times than mine, because the pixel clock is slower.
If you have a Hercules or clone, could you check which crystal is on there, and/or run my test program and see what values it gives?