Article View: comp.sys.amiga.tech
Article #5506Re: Device driver from device name?
From: Randell Jesup
Date: Thu, 27 Sep 1990 19:38
Date: Thu, 27 Sep 1990 19:38
23 lines
1558 bytes
1558 bytes
In article <1980@lpami.wimsey.bc.ca> lphillips@lpami.wimsey.bc.ca (Larry Phillips) writes:
> lea namesave,A0 ; point at name buffer
> sub.l loopreg,loopreg
> move.b (a1)+,loopreg ; gets BSTR length
> sub.l #1,loopreg ; adjust for loop
>3$ move.b (a1)+,(a0)+ ; get the actual name
> dbra loopreg,3$
> move.b #':',(a0)+ ; tack a colon onto the end
> move.b #0,(a0)+ ; and null terminate it
Note that entries on the Dos Device list do NOT have ':'s following
them (they are BSTR names followed by a null byte).
Also, before examining the startup field, etc, you must check that
the node is of type DLT_DEVICE. Also you must handle Startup values that
are NOT pointers - for example, SER:, PAR:, PRT: take small integers there.
Under 2.0, all of this is much easier to do.
--
Randell Jesup, Keeper of AmigaDos, Commodore Engineering.
{uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
Common phrase heard at Amiga Devcon '89: "It's in there!"
Technical Details
Message-ID:
<14697@cbmvax.commodore.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!rutgers!cbmvax!jesupReferences:
<1980@lpami.wimsey.bc.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!aplcen!samsung!cs.utexas.edu!rutgers!cbmvax!jesup From: jesup@cbmvax.commodore.com (Randell Jesup) Newsgroups: comp.sys.amiga.tech Subject: Re: Device driver from device name? Message-ID: <14697@cbmvax.commodore.com> Date: 27 Sep 90 19:38:05 GMT References: <1980@lpami.wimsey.bc.ca> Reply-To: jesup@cbmvax.commodore.com (Randell Jesup) Organization: Commodore, West Chester, PA Lines: 23