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

Re: [rtl] outb, outw, etc...



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 -'