Input from hardware port

From , 4 Years ago, written in C, viewed 226 times.
URL https://pastebin.vip/view/f6c79f4a
  1. #include <stdio.h>
  2. #include <dos.h>
  3.  
  4. int main(void)
  5. {
  6.    int result;
  7.    int port = 0;  /* serial port 0 */
  8.  
  9.    result = inport(port);
  10.    printf("Word read from port %d = 0x%X\n", port, result);
  11.    return 0;
  12. }
  13.  

Reply to "Input from hardware port"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website