문제

I am reading some code of Linux. The keyboard.S has something like

outb %al,$0x61

and

inb $0x61,%al

I think the pending 'b' means 'byte', but i still cannot find what these instructions mean.

도움이 되었습니까?

해결책

OUT and IN are instructions for transferring data between I/O ports. Those are a couple of links I found which provide a bit more information.

As you mentioned, the b is the byte form of those instructions, which is appropriate since you're using the lower byte of ax (al).

다른 팁

Yes, the out port and in port instructions can be encoded for 8 bits of data or 16 bits of data. The b indicates byte which is the 8 bit version.

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