Xref: utzoo alt.msdos.programmer:951 comp.sys.ibm.pc:41066 Path: 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 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