outport.pas 298 B

12345678910111213141516
  1. { This example demonstrates the use of the outport functions.
  2. It simply turns the PC's internal speaker on for 50 ms and off again
  3. }
  4. uses
  5. crt,
  6. go32;
  7. begin
  8. { turn on speaker }
  9. outportb($61, $ff);
  10. { wait a little bit }
  11. delay(50);
  12. { turn it off again }
  13. outportb($61, $0);
  14. end.