Debug LPT/ COM

Only for programmers and BIOS gurus with technical questions.
Post Reply
sou
New visitors - please read the rules.
Posts: 2
Joined: Wed Sep 28, 2005 11:20 am

Hi,

in this article http://www.wimsbios.com/phpBB2/viewtopic.php?t=1065
you can use dos and debug to fetch informations about COM and LPT.

When I use the Dos-Shell within Win98 these informations are correct.
(means: Ports which are not used are not registered)

Example: Dos-Shell Win98
C:\debug
-d 40:0 b
0040:0000 F8 03 00 00 00 00 00 00-78 03 00 00
-q

But when I'm calling debug within the Dos-Shell of XP
C:\debug
-d 40:0 b
0040:0000 F8 03 F8 02 E8 03 E8 02-BC 03 78 03
-q

Why are these results are so different?
The system (with XP) only has 2xCOM and 1xLPT.

Does the OS set virtual adresses or what's the reason?

Any ideas? Do I misunderstand something?

Thx
NickS
BIOS Bodhisattva
Posts: 3145
Joined: Fri May 03, 2002 10:34 am
Location: Thames Valley, UK

sou wrote:Does the OS set virtual adresses or what's the reason?
Yes. In 16-bit Windows the DOS prompt actually is a command shell that can access the hardware. In XP the "DOS box" is actually ntvdm, the NT Virtual DOS Machine. Find more info at Microsoft, here.
Tested patched BIOSes. Untested patched BIOSes.
Emails *will* be ignored unless the subject line starts "Wim's BIOS forum"
sou
New visitors - please read the rules.
Posts: 2
Joined: Wed Sep 28, 2005 11:20 am

Thx :)
Post Reply