Hi.
Here’s a quick how-to for the new IOPort interface introduced in mAirList 1.5.25. You need the inpout32.dll which can be downloaded from http://www.logix4u.net/inpout32.htm. The interface is defined as follows:
IIOPort = interface
function Read: byte;
procedure Write(iValue: byte);
procedure WriteAND(iValue: byte);
procedure WriteOR(iValue: byte);
procedure WriteXOR(iValue: byte);
end;
The interface is created with the function IOPort(). Use the $ sign (Pascal style g) to encode hex numbers:
[code]var b: byte;
begin
b := IOPort($378).Read;
b := 47:
IOPort($378).Write(b);
end.[/code]
The functions WriteAND, WriteOr, and WriteXOR write the old value combined with the new value with AND, OR, and XOR, respectively.
See the Control Panel (Device Manager) for the port number of your parallel port. Further reference can be found here: http://www.logix4u.net/parallelport1.htm
I’m a bit in a hurry now, we have some friends visiting, so I get back to you later.
Torben