user3338395
user3338395

Reputation: 61

ASM: operand size mismatch for 'out' error

I'm a beginner in ASM programming and I'm trying to read the PIT count. However the following code generates the error: "operand size mismatch for 'out'". (I'm using AT&T syntax)

movb $0b00000100, %al
outb %al, 0x43

How can I solve it? Thanks for your help!

Upvotes: 3

Views: 3309

Answers (1)

user3338395
user3338395

Reputation: 61

The following code works:

outb %al, $0x43

Thanks.

Upvotes: 3

Related Questions