From: daghakmy AT login DOT eunet DOT no (Dag Håkon Myrdal) Newsgroups: comp.os.msdos.djgpp Subject: Re: Using inportb() (thanks) Date: 20 Oct 1997 10:56:12 GMT Organization: EUnet Norway Lines: 32 Message-ID: <62fdcc$iva$1@elle.eunet.no> References: NNTP-Posting-Host: login.eunet.no To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article , Eli Zaretskii wrote: [...] >You use `outportb' incorrectly: it requires a second argument--the >value being written to the port. The way you used it, it writes some >random value (whatever it finds on the stack), which will certainly >not work. Sorry - that was just a bug in my example - not the program itself. [...] >> To me, the only obvious difference here is that I no longer >> explitly ask for access to the IO bus - is this not necessary with >> djgpp? > >No, at least as long as you use it under MS-DOS. Thanks for that info. What had happened actually was this: I had tried 2 different cards, both reported an error reading from the card, after which I assumed there had to be something wrong with my code. Reading your advice, I tried a third card... It turned out I had a hardware problem with two cards, the third one working correctly! Best regards, Dag Håkon Myrdal