[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BOUNCE rtl@rtlinux.org: Approval required: (fwd)



>From owner-rtl Wed Aug  1 03:44:44 2001
Received: from mail.space2u.com (sendmail@mail.space2u.com [62.20.1.135])
	by hq.fsmlabs.com (8.11.2/8.11.2) with ESMTP id f719ihs05036
	for <rtl@fsmlabs.com>; Wed, 1 Aug 2001 03:44:43 -0600
Received: from cutangle.admeo.se ([212.162.175.15])
	by mail.space2u.com (8.11.4/8.11.4) with SMTP id f719iAj30762
	for <rtl@fsmlabs.com>; Wed, 1 Aug 2001 11:44:10 +0200
Content-Type: text/plain;
  charset="iso-8859-1"
From: David Olofson <david.olofson@reologica.se>
Reply-To: david.olofson@reologica.se
Organization: Reologica Instruments AB
To: rtl@fsmlabs.com
Subject: Re: [rtl] outb, outw, etc...
Date: Wed, 1 Aug 2001 11:43:39 +0200
X-Mailer: KMail [version 1.2]
References: <200107311642.MAA16352@puma.me.ttu.edu>
In-Reply-To: <200107311642.MAA16352@puma.me.ttu.edu>
MIME-Version: 1.0
Message-Id: <01080111433901.16110@cutangle.admeo.se>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by hq.fsmlabs.com id f719iis05037

On Tuesday 31 July 2001 18:42, Wayne Dunkel wrote:
> I have a variable declared as a short. which function should I use to
> output it to hardware? I assume one of the following: outsb, outsw,
> outsl, but I don't know which.

That depends on what platform you're on (short, int, long, long long etc 
differ between CPUs and compilers), but short is usually 16 bits, so you 
should use outsw. b = byte = 8 bits, w = word = 16 bits, l = longword 
(motorola) or doubleword (intel) = 32 bits.


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> david@linuxdj.com -'

----- End of forwarded message from owner-rtl@fsmlabs.com -----