delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/07/01/09:14:35

Date: Fri, 1 Jul 94 08:44:58 EDT
From: hvb AT netrix DOT com
To: roger034 AT gold DOT tc DOT umn DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: IO ports and djgpp
References: <0012e12e82ba12107 AT gold DOT tc DOT umn DOT edu>
Reply-To: hvb AT netrix DOT com

roger034 AT gold DOT tc DOT umn DOT edu writes:
 > 
 > I have a dumb question about IO ports.  We want to talk to a Highspeed
 > bidirectional parallel port (similar to a printer port) using input 
 > and output instructions.   I thought because djgpp is protected mode
 > that I need to do something different than a simple outp() [which is a 
 > microsoft C macro anyway].
 > 
I wrote my own little assembly routine to execute the IN and OUT x86
instruction to replace inp and outp.  It works fine.  I believe there
are similar functions in one of the libraries that came with djgpp too.

Rehards,

==============================================================
Hung Bui                           Internet: hvb AT netrix DOT com
Netrix Corporation                    Phone: +1 703 793 1016
13595 Dulles Technology Drive           Fax: +1 703 713 3805
Herndon Va 22071
==============================================================



       

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019