I got the error
Error: operand type mismatch for `in'
The line generating this is:
inb %%eax, %%edx
I tried these: inb %%eax, $0x00000064
and inb %%eax, $0x64
.
But neither of them did change the output. I also tried with in
instead of inb
, but I'm taking shots in the dark at this point.
Any ideas?
Intel gave very little information about The i/o instruction set .. Nevertheless you are to deal with a port address or a register then extract the input from that address.
in dest, source
Note your destination is a physical address
So you must point to that address
Note Intel warns about 0FH to 0FFH not to be used
This puts the ax lower 8-bits into the physical address 0x8