I'm trying to make a custom resolution for Robotron and Joust. These games run at 292x240.
I don't completely understand the "Formeln und Grundlagen" thread, so can you tell me if I'm right here?
Code:
Horizontal:
H_ACTIVE = 292
H_TOTAL = 292 / 0.73 = 400
H_START = (0.73 + 0.09) * 400 = 328
H_END = (0.73 + 0.09 + 0.09) * 400 = 364
Vertical:
V_ACTIVE = 240
V_TOTAL = 240 / 0,92 = 261
V_START = (0,92 + 0,01) * 261= 0,93 * 261= 242
V_END = (0,92 + 0,01 + 0,01) * 261= 0,94 * 261= 245
Number of pixels = 400 horizontal pixels per line * 261 vertical lines = 104400 pixels per frame
PIX_FREQ = 104400 pixels per frame * 60 frames per second = 6264000 pixels per second = 6.26MHz
Modeline <NAME> <PIX_FREQ> <H_ACTIV> <H_START> <H_END> <H_TOTAL> <V_ACTIV> <V_START> <V_END> <V_TOTAL> <OPTIONS>
Modeline "292x240@60" 6.26 292 328 364 400 240 242 245 261 -hsync -vsync
Is this right? I'll try and test it out tomorrow night, but to be on the safe side I'd like to know if I got it completely wrong.