Programming C# C++ (7) Delphi (52) .NET (2) Database (75) Delphi IDE (239) Network (517) Printing (1037) Strings (2086) VCL (4255) Windows with Delphi (38) Java (108) JavaScript (31) perl (441) php (884) VBScript (131) Visual Basic (3539)
Exchange Links About this site Links to us
|
Read and write I/O ports
7 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:
|
anonymous from Bosnia and Herzegovina
|
 |
|
something I was looking for
|
|
anonymous from Iran
|
|
|
what must I do next? I mean in the place of PortAddr what must be replaced?
|
|
[hidden] from Iran
|
 |
|
I want to read data from female port in windows xp and in delphi what must I do?
|
|
HUNTER from China
|
|
|
READING DATA FROM PORT?
|
|
hunter from China
|
|
|
you application must runing of the ring0
|
|
same from Lithuania
|
 |
|
not usefull
|
|
ricky.spl@gmail.com from South Africa
|
|
|
HI
I have delphi 4 and i want to to write a simple program to read the microphone and play the sound at the same time to a speaker. I am a beginer in programming please help.
Please reply by email: ricky.spl@gmail.com
Thanks
Ricky
|
|