🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.msdos.programmer
3 messages
3 total messages Started by Bill Wang Tue, 02 Jan 1990 15:59
Port in ms/c
#1250
Author: Bill Wang
Date: Tue, 02 Jan 1990 15:59
13 lines
910 bytes
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.

Bill Wang
US Mail = Psychology Department, Indiana University, Bloomington, IN 47405
UUCP  = {rutgers, att, ames}!iuvax!wcwang
Internet = wcwang@iuvax.cs.indiana.edu

-- 
Bill Wang
US Mail = Psychology Department, Indiana University, Bloomington, IN 47405
UUCP  = {rutgers, att, ames}!iuvax!wcwang
Internet = wcwang@iuvax.cs.indiana.edu
Re: Port in ms/c
#1253
Author: 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
Re: Port in ms/c
#1254
Author: Fred Smith
Date: Wed, 03 Jan 1990 16:38
14 lines
873 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.
>
>Bill Wang


Yes, this one is easy.

Look in the manual for the pages on inp, inpw, outp, and outpw. These
four routines provide interludes to the machine's port input and output
instructions.

Fred
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads