Blame | Last modification | View Log | Download
{Source code for inpout32.dll.Enables 32-bit Visual Basic programs to do direct port I/O(Inp and Out) under Windows 95.To be compiled with Borland's Delphi 2.0.}library inpout32;uses SysUtils;procedure Out32(PortAddress:smallint;Value:smallint);stdcall;export;varByteValue:Byte;beginByteValue:=Byte(Value);asmpush dxmov dx,PortAddressmov al, ByteValueout dx,alpop dxend;end;function Inp32(PortAddress:smallint):smallint;stdcall;export;varByteValue:byte;beginasmpush dxmov dx, PortAddressin al,dxmov ByteValue,alpop dxend;Inp32:=smallint(ByteValue) and $00FF;end;ExportsInp32,Out32;beginend.