Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. short _stdcall Inp32(short PortAddress);
  3. void _stdcall Out32(short PortAddress, short data);
  4. void main()
  5. {
  6. int num;
  7. num = inp32(ox300);
  8. if(num&1==1)
  9.  out32(ox301, 0);
  10. if(num&1==0)
  11.  out32(0x301,255);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement