Anyone know how to eject a 3.5” disk programmatically? I have a drive where the eject motor functions; Prosel will eject a disk from it after formatting but the button won’t activate the motor. The switch tests good so I don’t know where thedisconnect is.
Trivial, I know, but anyone know how or where to find such info. I have the proofs technical reference as well as the //e tech reference but I’m not finding it.
On Tuesday, July 26, 2022 at 10:56:17 AM UTC-4, Tom Thumb wrote:disconnect is.
Anyone know how to eject a 3.5” disk programmatically? I have a drive where the eject motor functions; Prosel will eject a disk from it after formatting but the button won’t activate the motor. The switch tests good so I don’t know where the
Trivial, I know, but anyone know how or where to find such info. I have the proofs technical reference as well as the //e tech reference but I’m not finding it.I found some info for 3.5 Unidisk in the IIgs firmware reference.
Yep, that's where to look.
TL;DR: Issue a SmartPort Control ($04) command with the control code $04 in the parameter block.
UDC cards seem to vary in whether the eject button works. On one of mine it never worked so I hooked the eject button up to the eject motor and used it that way for a few years
Also had a program that I used in ProSel 8 to eject disks
On Tuesday, July 26, 2022 at 6:33:07 PM UTC-4, waynej...@gmail.com wrote:
UDC cards seem to vary in whether the eject button works. On one of mine it never worked
so I hooked the eject button up to the eject motor and used it that way for a few years
Also had a program that I used in ProSel 8 to eject disks
Hmm, I guess I need to take this to comp.sys.apple2.programmer. I'm not proficient at
apple II assembly; I have a IIgs, //e, and IIc, all working, and I think a complete
library of technical references, tech notes and such for all of them and so far am not
successful issuing a SmartPort call. I've seen David Empson's old posts on the matter but
find it hard to understand his posted code. I'll work at it a bit more and then seek more
advise in comp.sys.apple2.programmer.
Somewhat annoyed I'm not clever enough to figure it out.
Tom Thumb <justliketom...@gmail.com> writes:
On Tuesday, July 26, 2022 at 6:33:07 PM UTC-4, waynej...@gmail.com wrote:
UDC cards seem to vary in whether the eject button works. On one of mine it never worked
so I hooked the eject button up to the eject motor and used it that way for a few years
Also had a program that I used in ProSel 8 to eject disks
Hmm, I guess I need to take this to comp.sys.apple2.programmer. I'm not proficient at
apple II assembly; I have a IIgs, //e, and IIc, all working, and I think a complete
library of technical references, tech notes and such for all of them and so far am not
successful issuing a SmartPort call. I've seen David Empson's old posts on the matter but
find it hard to understand his posted code. I'll work at it a bit more and then seek more
advise in comp.sys.apple2.programmer.
Somewhat annoyed I'm not clever enough to figure it out.The magazine Open-Apple, in the January 1987 issue, has source code to
eject 3.5" disks on Apple 3.5 drives and UniDisk 3.5 drives. You can
find an issue on Asimov at:
https://ftp.apple.asimov.net/documentation/magazines/open_apple/Open%20Apple-Vol_2%20No_12-JAN_1987.pdf
Read pages 2.90 - 2.92. The details of ejecting are near the end of
page 2.92.
I have the paper version of this magazine and I remembered it from back
then, so I looked it up. Fortunately, it's scanned and in PDF form for
anyone to read.
--
Jerry jerry+a2 at jpen.ca
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 490 |
Nodes: | 16 (2 / 14) |
Uptime: | 60:22:14 |
Calls: | 9,676 |
Files: | 13,719 |
Messages: | 6,171,435 |