Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> port byte access to i/o ports pp 206</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PORT                      Byte Access to I/O Ports                   pp 206

 Syntax:  Port [ByteIndex]

 Type:    Byte

 Form:    Function or Procedure

 Purpose: Read from or Write to I/O Ports 0..255.

 Notes:   The Port array is pre-defined as   Port : Array [0..255] of Byte ;


 ----------------------------------------------------------------------------


 Usage:
       VAR
          ByteVar    : Byte        ;  { Declare a byte variable   }

       BEGIN
          ByteVar    := Port [$60] ;  { Read from port 60h        }
          Port [$61] := $20        ;  { Write a value to port 61h }
       END.

See Also: Array PortW

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson