Print direct to Port (without driver)
> Hi, > > I have a Serial Printer conected to COM1 but I don’t have the NT driver > for it (it…
Read Port
[code lang=”delphi”]function ReadPortB( wPort : Word ) : Byte; begin asm mov dx, wPort in al, dx mov result, al end; end; [/code]…
Write Port
[code lang=”delphi”]procedure WritePortB( wPort : Word; bValue : Byte ); begin asm mov dx, wPort mov al, bValue out dx, al end; end;…