During my last holidays (which were computer and vectrex – free) I had much spare time. As it happens when you have spare time on your hands – the thoughts wander of in different directions.
Since I have been thinking “vectrex” for the good part of this year – thoughts also drifted from time to time to vectrex, emulation and what is right and what can still be done.
I am still not content with the precision of emulation.
The current emulation of “delays” for analog parts seem to work in many ways fine – in other ways they don’t.
I have written a couple of programs, that don’t give the same results in Vide as on the real thing – this is really bothering me!
Emulating vectrex seems to me sometimes like researching atomic theories.
- vecx is the equivalent of the Bohr atom model
- vecxy is the equivalent of the Rutherford atom model
- and to do it RIGHT I need to go into the quantom physical models (Schrödinger/Heisenberg…)
Each step is a bit closer…
I am not convinced that the analog delays are really correct way of emulation. My newest theorie is, that VIA is not emulated good enough.
Look e.g.: (that which looks like an eight should be a 2!)
This basically means shifting a value starts 2 cycles after VIA SHIFT register was accessed, not immediately.
(Remember: drawing usually uses the shift register, the value shifted results in the BLANK signal)
… and some other stuff I am not listing here…
All these VIA internal timing issues are NOT emulated and I don’t know of any VIA emulation which actually DOES emulate that.
(MAME certainly doesn’t – I haven’t looked at Beeps, C64, Apple or other Via using old emulated hardware).
In relation to vectrex and vector drawing if you do cycle counting and optimization these values HAVE to be emulated in order to get correct results.
Worth noting, that the VIA chips have different manufacturers:
And it seems that the timing parameters are sometimes a little bit different (might even be different in various production generations from a single manifacturer).
To emulate the above might be a project for next year. For now I have a little bit of a vectrex burnout syndrom.
For now I know Vide is still not perfect – but also for now – I let it rest.
@Chris – might to PS/2 Keyboard emulation – as luck has it, I do have a PS/2 keyboard and a vectrex adapter :-)!