From owner-freebsd-hackers Tue Feb 6 05:05:39 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA20729 for hackers-outgoing; Tue, 6 Feb 1996 05:05:39 -0800 (PST) Received: from hq.icb.chel.su (icb-rich-gw.icb.chel.su [193.125.10.34]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id FAA20684 for ; Tue, 6 Feb 1996 05:05:20 -0800 (PST) Received: from localhost (babkin@localhost) by hq.icb.chel.su (8.6.5/8.6.5) id SAA17283; Tue, 6 Feb 1996 18:03:27 +0500 From: "Serge A. Babkin" Message-Id: <199602061303.SAA17283@hq.icb.chel.su> Subject: Re: Paul is manual-less tonight... inw() instruction? To: pst@shockwave.com (Paul Traina) Date: Tue, 6 Feb 1996 18:03:27 +0500 (GMT+0500) Cc: hackers@freebsd.org In-Reply-To: <199602060819.AAA00413@precipice.shockwave.com> from "Paul Traina" at Feb 6, 96 00:19:13 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk > > Can anyone give me a quick description of how the i386 inw (in word) > i/o instructions is suppoed to work? > > does foo = inw(port) > > read low byte from port and high byte from port+1, or two sequential byte > reads of port? As far as I know it depends on hardware you are fetching bytes from. If it supports 16-bit mode then one word read is done. If not then two sequential byte reads are done. -SB