Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display output vs dispen timing isn't quite right #178

Open
tom-seddon opened this issue Jun 20, 2021 · 2 comments
Open

Display output vs dispen timing isn't quite right #178

tom-seddon opened this issue Jun 20, 2021 · 2 comments
Labels
accuracy issue with emulation accuracy

Comments

@tom-seddon
Copy link
Owner

tom-seddon commented Jun 20, 2021

Mode 7 in b2:

image

Mode 7 on a beeb: (blue is DISPEN - monitor is TTL RGB, its blue input is attached to the video ULA's dispen pin)

image

There's an extra 1 microsec delay that isn't being accounted for...

@tom-seddon
Copy link
Owner Author

Also, mode 4. Note the extra column after dispen goes to 0.

image

Mode 2. Perhaps not super obvious from this crap pic, but there's 1 additional column here too after dispen goes to 0.

image

@tom-seddon
Copy link
Owner Author

For bitmap modes: I guess the video ULA can't start to shift data out until it's read the data in. It must take 1 cycle for that to happen, perhaps?

So for the top left byte in Mode 4, the period when DISPEN=1 and MAx/RAx=$5800 is occupied by the video ULA latching that byte in, and shifting out nothing. (Presumably when DISPEN=0, it sets its latch to 0.)

And so you don't get to see the contents of $5800 until 1 byte's-worth of time later, when the CRTC outputs refer to $5808. And so on.

For teletext modes: b2 will be modelling the ~3 microsec SAA5050 delay incorrectly... probably? I don't feel like I understand the timing here any more...

@tom-seddon tom-seddon added the accuracy issue with emulation accuracy label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accuracy issue with emulation accuracy
Projects
None yet
Development

No branches or pull requests

1 participant