🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1253

Re: Port in ms/c

#1253
From: Doug Thompson
Date: Tue, 02 Jan 1990 19:24
22 lines
1380 bytes
In article <32255@iuvax.cs.indiana.edu> wcwang@iuvax.cs.indiana.edu (Bill Wang) writes:
>Does anyone know how to get access to data ports in microsoft c,
>The equivlent of Turbo Pascal or C's Port Array?  Thanks in advance.

MSC 5.1 has an optimizer switch that generates in-line IN and OUT instructions. Without the
switch, the compiler generates calls to functions to do the work. I believe the
declarations are (manual at home):

	int inb(int port);
	void outb( int port, char value);

>
>Bill Wang
>US Mail = Psychology Department, Indiana University, Bloomington, IN 47405
>UUCP  = {rutgers, att, ames}!iuvax!wcwang
>Internet = wcwang@iuvax.cs.indiana.edu
>
-- 
Douglas Thompson		UUCP: ..{tektronix,ogicse,uunet}!sequent!norsk
Sequent Computer Systems	Phone: (503) 526-5727
15450 SW Koll Parkway	!"The scientist builds to learn;the engineer learns in
Beaverton OR 97006	!order to build."  Fred Brooks
Technical Details
Message-ID: <27003@sequent.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!zephyr.ens.tek.com!tektronix!sequent!norsk
References: <32255@iuvax.cs.indiana.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!zephyr.ens.tek.com!tektronix!sequent!norsk
From: norsk@sequent.UUCP (Doug Thompson)
Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc
Subject: Re: Port in ms/c
Keywords: port, io, ms c
Message-ID: <27003@sequent.UUCP>
Date: 2 Jan 90 19:24:59 GMT
References: <32255@iuvax.cs.indiana.edu>
Reply-To: norsk@crg2.UUCP (Doug Thompson)
Organization: Sequent Computer Systems, Inc.
Lines: 22