Yo Craig Hart,
CH> basicly, you do this (In Pascal..sorry!) :
nothing wrong with pascal
compiled pascal code isn't so bad...
CH> sbaddr=$210;
CH> sbfound:=false;
CH> repeat port[sbaddr+$6]:=1; { reset SB, must be set for 10ms }
CH> delay(10);
CH> port[sbaddr+$6]:=0;
---cut----cut----
inc(sbaddr,$10); {I cut the sbaddr increment routine by accident,
{so I put this instead...}
CH> until sbaddr>$280 or sbfound; { sb address range 210 - 280 }
I know the code, but what I was saying is that :
You don't know the SB address, so you write #1 to some ports
between $210 and $280. Although most PCCard manufacturers avoid
this range, it range can also be used by other cards that are
not soundcards. (e.g. I have a videocard and DAQ board which can
be configured so that tey use one of these addresses)You don't
know what will happen if such a card gets a #1 in his port.
The card may do nothing, it may crash, it may corrupt the picture
on screen, it may corrupt some data used by other progs or by the
system, which may cause the computer to crash.
I know... this "try 'till it works"-method works most of the time,
but I don't like that. A good prog may not conflict with unknown
hardware. I once had a 256-color handscanner with a little interface
card. I always had to remove my soundcard before scanning, cause
otherwise my scanner would not work.
-=> PVH <=-
Works for me!
Peter Van Hertum - Brussels, Belgium, Monday, 17 March 1997 at 22:03.
Fido : 2:291/766.176 - Internet : pvh@p176.f766.n291.z2.fidonet.org
.!. Life's not passing me by... .it's RUNNING ME OVER!!!!
--- Terminate 4.00/Pro
---------------
* Origin: PVH Mail System, Brussels, Belgium (2:291/766.176)
|