B
Bob Masta
Guest
On 12 May 2004 20:50:11 -0700, tatto0_2000@yahoo.com (Wong) wrote:
or earlier to access the printer port without a special driver. For
NT, 2K, or XP you need a kernel driver. See Jan Axelson's site
at <www.lvr.com> for more info.
Also note that it's good programming practice in DOS to never
assume the port address is 378h or anything else. Instead,
you should read it from the BIOS. The word at 0:408h is the
base address of LPT1, 40Ah is the address of LPT2, 40C is
LPT3, and 40E is LPT4. Of course, most systems never had
more than one LPT anyway, but it's location wasn't always a
sure thing. In the early days it was a separate card, and could
be jumpered to various addresses. You might have had an
LPT on a graphics adapter as well.
Hope this helps!
Bob Masta
dqatechATdaqartaDOTcom
D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
To enlarge on what others have posted, note that you need Win9xHi,
Address of 378 is normally define for printer port, LPT.
Then what is the purpose to use the address of 379, 37A ?
I am confuse and hope someone can shed me a light. Thanks.
or earlier to access the printer port without a special driver. For
NT, 2K, or XP you need a kernel driver. See Jan Axelson's site
at <www.lvr.com> for more info.
Also note that it's good programming practice in DOS to never
assume the port address is 378h or anything else. Instead,
you should read it from the BIOS. The word at 0:408h is the
base address of LPT1, 40Ah is the address of LPT2, 40C is
LPT3, and 40E is LPT4. Of course, most systems never had
more than one LPT anyway, but it's location wasn't always a
sure thing. In the early days it was a separate card, and could
be jumpered to various addresses. You might have had an
LPT on a graphics adapter as well.
Hope this helps!
Bob Masta
dqatechATdaqartaDOTcom
D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com