Programming C# C++ (7) Delphi (618) .NET (2) Database (71) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280) Java (8) JavaScript (30) perl (9) php (4) VBScript (1) Visual Basic (1)
Exchange Links About this site Links to us 
|
Read and write I/O ports
6 comments. Current rating: (3 votes). Leave comments and/ or rate it.
In Borland Pascal and Delphi 1, there is a predefined pseudo variable Port.
In the 32bit versions of Delphi you need 2 lines of assembler code..
 | |  | | function InPort(PortAddr:word): byte;
assembler; stdcall;
asm
mov dx,PortAddr
in al,dx
end;
begin
Result := Port[PortAddr];
end;
| |  | |  | You don't like the formatting? Check out SourceCoder then!
Comments:
|
|
|
|
something I was looking for
|
|
|
|
|
what must I do next? I mean in the place of PortAddr what must be replaced?
|
|
|
|
|
I want to read data from female port in windows xp and in delphi what must I do?
|
|
|
|
|
READING DATA FROM PORT?
|
|
|
|
|
you application must runing of the ring0
|
|
|
|
|
not usefull
|
|