outportb procedure
Write byte to I/O port.
Declaration
procedure outportb(port: Word; data: Byte)Description
Sends 1 byte of data to the specified I/O port.
Parameters:
- port
- the I/O port number to send data to.
- data
- value sent to I/O port.
Return values: None.
Errors
None.
See also
Example: outport
{ This example demonstrates the use of the outport functions.
It simply turns the PC's internal speaker on for 50 ms and off again
}
uses
crt,
go32;
begin
{ turn on speaker }
outportb($61, $ff);
{ wait a little bit }
delay(50);
{ turn it off again }
outportb($61, $0);
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
