cipriancomsa
asked on
write and read a value in COM 1 (0x3F8)
This is a simple program in c to write and read a value from COM 1.The question is how i write this code in asm.
#include <stdio.h>
#define com 0x3f8
main()
{
int valoare;
outp(com,2);
valoare=inp(com);
printf("%d",valoare);
}
#include <stdio.h>
#define com 0x3f8
main()
{
int valoare;
outp(com,2);
valoare=inp(com);
printf("%d",valoare);
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.