Board index » delphi » Direct Port access "port"

Direct Port access "port"

Under Delphi 1.0 I am able to use the "port" function to gain direct access
to I/O memory.  This command is not available in Delphi 2.0.  Does anyone
know the equivalent command or technique to achieve the same result.

dick Edwards
i...@dial.pipex.com

 

Re:Direct Port access "port"


You could use assembly like this
asm
  mov ax,data
  mov dx,port_address
  out dx,ax
end;

Richard Edwards <i...@dial.pipex.com> wrote in article
<01bc1fe1$b54a9d80$3ef88...@solqf12.dial.pipex.com>...

Quote
> Under Delphi 1.0 I am able to use the "port" function to gain direct
access
> to I/O memory.  This command is not available in Delphi 2.0.  Does anyone
> know the equivalent command or technique to achieve the same result.

>{*word*106} Edwards
> i...@dial.pipex.com

Other Threads