The I/O port access is done via the various inportb, outportb functions which are available. Additionally Free Pascal supports the Turbo Pascal PORT[]-arrays but it is by no means recommended to use them, because they're only for compatibility purposes.