Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: sdrob04 on June 27, 2006, 02:59:03 pm

Title: determining ECP address?
Post by: sdrob04 on June 27, 2006, 02:59:03 pm
How does one determine the ECP (parallel) port address in Win98?  I'm at the initial stages of setting up a ZVG for vector emulation and one of the parameters being asked for is the ECP address.  In the BIOS I found the DMA and IRQ identifiers, but nothing for 'address'.

Once Windows loads, I can find a range for the port, but there are two values listed here, so I'm not sure what I need. 
Title: Re: determining ECP address?
Post by: NOP on June 28, 2006, 11:35:39 am
back in the oldschool days, (ie DOS) we used to find the parallel port address by doing the following:

C:\>debug
-d 0:400
0000:0400  F8 03 F8 02 E8 03 E8 02-BC 03 78 03 00 00 C0 9F   ..........x.x...
0000:0410  23 C8 F0 80 02 00 00 20-00 00 32 00 32 00 79 15   #...... ..2.2.y.
0000:0420  0D 1C 64 20 20 39 30 0B-3A 27 34 05 30 0B 30 0B   ..d  90.:'4.0.0.
0000:0430  0D 1C 00 00 00 00 00 00-00 00 00 00 00 00 00 00   ................
0000:0440  CD 00 C3 00 C7 95 31 E3-CA 03 50 00 40 1F 00 00   ......1...P.@...
0000:0450  00 31 00 00 00 00 00 00-00 00 00 00 00 00 00 00   .1..............
0000:0460  07 06 00 D4 03 29 30 9A-0F 80 CA 00 F6 80 0A 00   .....)0.........
0000:0470  00 00 00 00 00 00 08 00-14 14 14 14 01 01 01 01   ................
-q

That glowy part is the base address, or 03BC (flip the bytes around) of LPT1, LPT2 is going to be 0378 in this example.

I'd think that still applies to win98, but I cannot say for certain.

I don't quite recall if it was a deal with ECP or EPP, but one of them also had another I/O range that I think was base+200h, which is probably the 2nd address that windows is reporting to you. 

Standard LPT addresses are 278, 378 and 3bc.

Hope that did the trick.

-jeff!

Title: Re: determining ECP address?
Post by: botman on June 29, 2006, 05:26:06 pm
Once Windows loads, I can find a range for the port, but there are two values listed here, so I'm not sure what I need. 
The first address in the range should be the "base" address of the port.