[comp.sys.atari.st] TECH: How to tell if drive B is REALLY attached?

jeff@quark.WV.TEK.COM (Jeff Beadles;685-2568;;;quark) (06/11/90)

I need to know if drive B is REALLY attached.  "Drvmap" (Which, by the way is
NOT my friend :-) says that there is a drive B, even if there isn't.  I'm
guessing that this is so the "logical" drive switching works.

I've seen other programs that have done this, but NOTHING in the documentation
that I have here.  Can anyone shed light on this?

C answers are perfered, but assembler will do.

Please email them to me, and I'll follow up in a week or two.

	-Jeff

-- 
Jeff Beadles		jeff@orca.WV.TEK.COM  uunet!tektronix!orca.wv!jeff
Utek Engineering, Tektronix Inc.	+1 503 685 2568
			SPEEA - Just say no.

csbrod@medusa.informatik.uni-erlangen.de (Claus Brod ) (06/11/90)

jeff@quark.WV.TEK.COM (Jeff Beadles;685-2568;;;quark) writes:

>I need to know if drive B is REALLY attached.  "Drvmap" (Which, by the way is
>NOT my friend :-) says that there is a drive B, even if there isn't.  I'm
>guessing that this is so the "logical" drive switching works.

>I've seen other programs that have done this, but NOTHING in the documentation
>that I have here.  Can anyone shed light on this?


There is an official system variable called _nflops in the $4xx area which
you can use for that purpose. It contains 1 if you only have drive A and
2 for both drives. I think the address is $4A6.

----------------------------------------------------------------------
Claus Brod, Am Felsenkeller 2,			Things. Take. Time.
D-8772 Marktheidenfeld, West Germany		(Piet Hein)
csbrod@medusa.informatik.uni-erlangen.de
----------------------------------------------------------------------

larserio@IFI.UIO.NO (LarsErikOsterud) (06/12/90)

at HEX $4A6 there is a WORD called _nflops (number of floppies connected)

 Lars-Erik  /  ABK-BBS +47 2132659  /   ____ ______ ________________________
  Osterud  /  larserio@ifi.uio.no  /   /___    /            The norwegian ST
__________/ ______________________/   ____/   /   Klubben,  user association