Thanks to all your help I got it working now with
Code: Select all
char inportb(short port)
{
char ret_val;
_asm {
mov dx, port
in al, dx
mov ret_val, al
}
return ret_val;
}
Thanks guys, don't know what I would have done without you all
(and I'm sure to be back with the next topic soon )