4:214
Volume 4: Base IA-32 Instruction Reference
INS/INSB/INSW/INSD—Input from Port to String
Description
Copies the data from the I/O port specified with the second operand (source operand)
to the destination operand (first operand). The source operand must be the DX register,
allowing I/O port addresses from 0 to 65,535 to be accessed. When accessing an 8-bit
I/O port, the opcode determines the port size; when accessing a 16- and 32-bit I/O
port, the operand-size attribute determines the port size.
The destination operand is a memory location at the address ES:EDI. (When the
operand-size attribute is 16, the DI register is used as the destination-index register.)
The ES segment cannot be overridden with a segment override prefix.
The INSB, INSW, and INSD mnemonics are synonyms of the byte, word, and
doubleword versions of the INS instructions. (For the INS instruction, “ES:EDI” must be
explicitly specified in the instruction.)
After the byte, word, or doubleword is transfer from the I/O port to the memory
location, the EDI register is incremented or decremented automatically according to the
setting of the DF flag in the EFLAGS register. (If the DF flag is 0, the EDI register is
incremented; if the DF flag is 1, the EDI register is decremented.) The EDI register is
incremented or decremented by 1 for byte operations, by 2 for word operations, or by 4
for doubleword operations.
The INS, INSB, INSW, and INSD instructions can be preceded by the REP prefix for
block input of ECX bytes, words, or doublewords.
This instruction is only useful for accessing I/O ports located in the processor’s I/O
address space.
I/O transactions are performed after all prior data memory operations. No
subsequent data memory operations can pass an I/O transaction.
In the Itanium System Environment, I/O port references are mapped into the
64-bit virtual address pointed to by the IOBase register, with four ports per
4K-byte virtual page. Operating systems can utilize the TLBs in the Itanium
architecture to grant or deny permission to any four I/O ports. The I/O port
space can be mapped into any arbitrary 64-bit physical memory location by
operating system code. If CFLG.io is 1 and CPL>IOPL, the TSS is consulted for
I/O permission. If CFLG.io is 0 or CPL<=IOPL, permission is granted
regardless of the state of the TSS I/O permission bitmap (the bitmap is not
referenced).
Opcode
Instruction
Description
6C
INS ES:(E)DI, DX
Input byte from port DX into ES:(E)DI
6D
INS ES:DI, DX
Input word from port DX into ES:DI
6D
INS ES:EDI, DX
Input doubleword from port DX into ES:EDI
6C
INSB
Input byte from port DX into ES:(E)DI
6D
INSW
Input word from port DX into ES:DI
6D
INSD
Input doubleword from port DX into ES:EDI
Содержание ITANIUM ARCHITECTURE
Страница 1: ......
Страница 7: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 199: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Страница 269: ...4 262 Volume 4 Base IA 32 Instruction Reference LES Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 270: ...Volume 4 Base IA 32 Instruction Reference 4 263 LFS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 273: ...4 266 Volume 4 Base IA 32 Instruction Reference LGS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 288: ...Volume 4 Base IA 32 Instruction Reference 4 281 LSS Load Full Pointer See entry for LDS LES LFS LGS LSS ...
Страница 352: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Страница 368: ...Volume 4 Base IA 32 Instruction Reference 4 361 SHL SHR Shift Instructions See entry for SAL SAR SHL SHR ...
Страница 373: ...4 366 Volume 4 Base IA 32 Instruction Reference SIDT Store Interrupt Descriptor Table Register See entry for SGDT SIDT ...
Страница 589: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Страница 590: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Страница 591: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Страница 603: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...
Страница 604: ......