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

After using GEOS, I need 2 reboots to use the mouse in Apple II Desktop #514

Closed
tomcw opened this Issue Nov 25, 2017 · 9 comments

Comments

Projects
None yet
2 participants
@tomcw
Contributor

tomcw commented Nov 25, 2017

Spun off from #497:

Using: ftp://ftp.apple.asimov.net/pub/apple_II/images/masters/other_os/gui/geos/geosd1s1.dsk

@audetto reported:
But I found this strange effect that after using GEOS I need 2 reboots to use the mouse in Apple II Desktop.

  1. Start AppleWin with the GEOS disk in the drive and mouse card
  2. wait for it to boot
  3. insert MDESK.PO in the HD
  4. Reboot F2
  5. Mouse does not work
  6. Reboot again F2
  7. Mouse works

At step 2 it does not matter if one uses the mouse or not in GEOS.

@tomcw

This comment has been minimized.

Show comment
Hide comment
@tomcw

tomcw Nov 25, 2017

Contributor

@audetto: can you provide a link to MDESK.PO?

Contributor

tomcw commented Nov 25, 2017

@audetto: can you provide a link to MDESK.PO?

@audetto

This comment has been minimized.

Show comment
Hide comment
Contributor

audetto commented Nov 25, 2017

@tomcw

This comment has been minimized.

Show comment
Hide comment
@tomcw

tomcw Nov 25, 2017

Contributor

Hmm... I can't reproduce this (using both 1.26.3.1 and the latest 1.26.3.4).
The mouse always works first time after rebooting from GEOS to Apple II Desktop.

I followed your steps exactly.
Also I tried these simplified steps...

  1. Start with geosd1s1.dsk in drive-1 and MDESK.PO as HDD-1.
  2. Hold down Open-Apple, and then press F2 (Open-Apple tells the HDD firmware to boot from floppy)
  3. Wait for GEOS to boot
  4. Reboot with F2
  5. Apple II Desktop boots & mouse is working

Do you have any extra hardware enabled? EG. RAMworks? A card in slot-5?

Contributor

tomcw commented Nov 25, 2017

Hmm... I can't reproduce this (using both 1.26.3.1 and the latest 1.26.3.4).
The mouse always works first time after rebooting from GEOS to Apple II Desktop.

I followed your steps exactly.
Also I tried these simplified steps...

  1. Start with geosd1s1.dsk in drive-1 and MDESK.PO as HDD-1.
  2. Hold down Open-Apple, and then press F2 (Open-Apple tells the HDD firmware to boot from floppy)
  3. Wait for GEOS to boot
  4. Reboot with F2
  5. Apple II Desktop boots & mouse is working

Do you have any extra hardware enabled? EG. RAMworks? A card in slot-5?

@audetto

This comment has been minimized.

Show comment
Hide comment
@audetto

audetto Nov 26, 2017

Contributor

I realised I do something slightly different
The first boot is without the HD card in the slot, so I boot without the need of Open Apple
Then I add the HD card in the slot and the HD Disk.

While you did Open Apple Boot to boot from floppy, while the HD card is in the slot.
In which case the behaviour is correct.

Here are the 3 save state

states.zip

Contributor

audetto commented Nov 26, 2017

I realised I do something slightly different
The first boot is without the HD card in the slot, so I boot without the need of Open Apple
Then I add the HD card in the slot and the HD Disk.

While you did Open Apple Boot to boot from floppy, while the HD card is in the slot.
In which case the behaviour is correct.

Here are the 3 save state

states.zip

@tomcw

This comment has been minimized.

Show comment
Hide comment
@tomcw

tomcw Nov 27, 2017

Contributor

OK, thanks - I can reproduce this now.
For some reason it's the enabling of the HDD card (not the plugging in of the HDD into the card) that is causing the issue.

Contributor

tomcw commented Nov 27, 2017

OK, thanks - I can reproduce this now.
For some reason it's the enabling of the HDD card (not the plugging in of the HDD into the card) that is causing the issue.

@tomcw

This comment has been minimized.

Show comment
Hide comment
@tomcw

tomcw Nov 28, 2017

Contributor

This is a bug in the emulator's restart code that wasn't resetting the mousecard state.
(Any h/w reconfig is enough to cause a restart... and trigger this bug)

There was a pending mousecard interrupt (VBL) from the old GEOS session, and on re-enabling the card for A2 Desktop, the interrupt fired. IRQ fetched 0x0000 from 0xFFFE, vectored to 0x0000, which was a BRK, and an infinite loop ensued!

NB. A2 Desktop doesn't use mousecard interrupts.

Contributor

tomcw commented Nov 28, 2017

This is a bug in the emulator's restart code that wasn't resetting the mousecard state.
(Any h/w reconfig is enough to cause a restart... and trigger this bug)

There was a pending mousecard interrupt (VBL) from the old GEOS session, and on re-enabling the card for A2 Desktop, the interrupt fired. IRQ fetched 0x0000 from 0xFFFE, vectored to 0x0000, which was a BRK, and an infinite loop ensued!

NB. A2 Desktop doesn't use mousecard interrupts.

@tomcw

This comment has been minimized.

Show comment
Hide comment
@tomcw

tomcw Dec 4, 2017

Contributor

Can you try AppleWin v1.26.3.5 and let me know how you get on?

Contributor

tomcw commented Dec 4, 2017

Can you try AppleWin v1.26.3.5 and let me know how you get on?

@tomcw tomcw self-assigned this Dec 4, 2017

@audetto

This comment has been minimized.

Show comment
Hide comment
@audetto

audetto Dec 9, 2017

Contributor

It does work now.

Contributor

audetto commented Dec 9, 2017

It does work now.

@tomcw

This comment has been minimized.

Show comment
Hide comment
@tomcw

tomcw Dec 9, 2017

Contributor

Thanks for confirming.

Contributor

tomcw commented Dec 9, 2017

Thanks for confirming.

@tomcw tomcw closed this Dec 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment