I am learning Fixed Port Addressing. The lecture says that its for 8 bits transfer. There were two examples given in it,
- IN AL, 6CH
- OUT 6AH, AX
Now the second one takes data from register AX which is a 16 bit register. Was it holding a 8 bit address or would it be transferred from a 16 bit address into a 8 bit address?
out 6ah, axwill write both bytes ofaxto the 16 bit I/O port at 0x6a. A 16 bit port consists of two consecutive 8 bit ports.That is, it will write
alto 0x6a andahto 0x6b.See Intel® 64 and IA-32 Architectures Software Developer’s Manual
Volume 1: Basic Architecture chapter 14.