[torontocbm] Re: 1581 Support

  • From: "Glenn Holmer" <dmarc-noreply@xxxxxxxxxxxxx> ("cenbe")
  • To: torontocbm@xxxxxxxxxxxxx
  • Date: Sat, 1 Jan 2022 13:04:04 -0600

On 12/31/21 19:11, Chiron Bramberger (chironbramberger) wrote:

It’s jiffy dos. It doesn’t know that it’s a 1581 because it’s running
jiffy dos on the drive. So the string it returns doesn’t match a
stock 1581.

How are you doing the drive detection (I haven't looked at the source)? There's a great assembly routine by Todd Elliott on Steve Judd's "fridge" site:

http://www.ffd2.com/fridge/io/Drivpoll.s

It's really efficient: look at the M-Rs at the end, he's just reading a couple of bytes from just the right place in the ROMs, and I believe this will return the same values for JiffyDOS and non-JiffyDOS ROMs. I implemented it in PROMAL with support for a few modern devices here:

https://www.lyonlabs.org/commodore/onrequest/PROMAL/diskutil/diskutils.s

Since I have JD and non-JD 1581s, I just tested that code with JD and stock 1581s and both were recognized as a 1581.

But if someone has a non-JiffyDOS 1581 it should work.

Yes, that first one I tried does work correctly on my stock 1581.

But thanks again for testing! I’d love to know what happens with no
jiffy dos. But if it’s a pain to swap rom chips I understand.
The new version "for-glen" (two n's please, thanks) works correctly on both JD and non-JD 1581s.

--
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."null

Other related posts: