Board index » delphi » Read port in D1

Read port in D1

How do I read the value of a port for example 201h in Delphi 1.0? Just need
to read the value. I'd be very grateful.

/Johan

--
Reply to johanlod...@hotmail.com but remove the x.
This is to avoid spamming

 

Re:Read port in D1


Just use the

        port

command as in Pascal

Daniel Berg
Johan C. Lodin schrieb:

Quote

> How do I read the value of a port for example 201h in Delphi 1.0? Just need
> to read the value. I'd be very grateful.

> /Johan

> --
> Reply to johanlod...@hotmail.com but remove the x.
> This is to avoid spamming

Re:Read port in D1


Hi Johan,

Use the (undocumented) port array:

        A := Port[$201]

You can't compile this code in D2 or D3, but when compiled in D1 it will
still work in Win95 (not under NT!)

steven
steven.nos...@entelec-control.com

Johan C. Lodin <johan#NONESPAM#lo...@hotmail.com> wrote in article
<895436266.501562@nn1>...

Quote
> How do I read the value of a port for example 201h in Delphi 1.0? Just
need
> to read the value. I'd be very grateful.

Other Threads