Message-ID: <357BBF60.63295E7D@post.comstar.ru> Date: Mon, 08 Jun 1998 14:39:28 +0400 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: Comstar Ltd. MIME-Version: 1.0 To: aYk CC: djgpp AT delorie DOT com Subject: Re: AT&T assembler References: <6ld6hl$bk0 AT dfw-ixnews4 DOT ix DOT netcom DOT com> <357bb477 DOT 2127675 AT news DOT dlc DOT fi> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Precedence: bulk aYk wrote: > You mean inportb(). You have to specify the transfer size. And you > need to include dos.h instead of pc.h if I remember correctly. > > - aYk - From libc reference : /*-------------------------- #include unsigned char inportb(unsigned short _port); Description ----------- Read a single 8-bit I/O port. This function is provided as an inline assembler macro, and will be optimized down to a single opcode when you optimize your program. --------------------------*/ IMHO, this is a preferable way to do port I/O in C programm. -- ____ ____ | \ / Dim Zegebart ____/____ Moscow Russia WWW - http://www.geocities.com/siliconvalley/pines/7817 DZcomm - comm library for Allegro Palantir - multitasking kernel for Allegro (based on PDMLWP)