I'm using the GAS assembler.
I'm trying to write to the I/O port 0x20, I do it like this:
outb $0x20, $0x20
But I get this error:
Error: operand type mismatch for out
What am I doing wrong?
I'm using the GAS assembler.
I'm trying to write to the I/O port 0x20, I do it like this:
outb $0x20, $0x20
But I get this error:
Error: operand type mismatch for out
What am I doing wrong?
See https://c9x.me/x86/html/file_module_x86_id_222.html.
You can't have two immediates for operands for out
. This has nothing to do with the operand size or suffix of out
.