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

Demo not loading. #11

Open
zerkman opened this issue Jan 8, 2023 · 6 comments
Open

Demo not loading. #11

zerkman opened this issue Jan 8, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@zerkman
Copy link
Owner

zerkman commented Jan 8, 2023

Several demos are stuck at some point. They usually start one first intro screen, then get blocked.
Demos with that problem include:

  • dark side of the spoon
  • o-demo
  • odd stuff
  • ooh crikey wot a scorcher
  • decade demo
  • dothings
  • my socks are weapons
@zerkman
Copy link
Owner Author

zerkman commented Jan 22, 2023

dothings : very slow to load first part, then not loading second part. could be two different bugs

@zerkman
Copy link
Owner Author

zerkman commented Jan 22, 2023

ooh crikey and dark side have been fixed by 5746886.

@zerkman
Copy link
Owner Author

zerkman commented Feb 10, 2023

odd stuff has been fixed by 6a0f3e0.

@Gunstick
Copy link

Gunstick commented Nov 14, 2023

This is a known "feature" of the ST. If you deselect the floppy while the motor is still spinning, it won't stop spinning. The OS specifically waits for the motor to stop by polling the floppy, and then only deselects the floppy (light goes off). Some of these demos (the ones fixed now) use this behavior to have the floppy still spin for the next track to load, so there is no spinup delay.

@zerkman
Copy link
Owner Author

zerkman commented Nov 14, 2023

I know it worked like this at the time, and I did not understand the mechanisms involved. What makes the WD1772 stop the drive is the detection of 9 index pulses (corresponding to 9 rotations of the disk) after running the last command. If the drive is de-selected before that, the WD1772 does not "see" these index pulses because the drive I/O is somehow electrically disconnected.

What fixed ooh crikey and dark side was another problem. It seems you don't have to enable the "motor on" flag in your FDC commands to get the motor actually turn on. It will turn on anyway. I removed some flag checks and now every command actually checks if the drive is on, undepending on the status of the motor on flag.

@zerkman
Copy link
Owner Author

zerkman commented Nov 14, 2023

Decade demo: the intro runs, then the 9 to 0 countdown, and then the screen goes all red. The demo remains stuck at that point.

@zerkman zerkman added the bug Something isn't working label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants