문제

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!

도움이 되었습니까?

해결책

The following code works:

outb %al, $0x43

Thanks.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top