文档详情

80x86汇编指令手册(国外英文资料).doc

发布:2017-06-09约7.78千字共13页下载文档
文本预览下载声明
80x86汇编指令手册(国外英文资料) Assembly instruction manual One, data transfer instructions They transfer data between the memory and the register, the register, and the input and output ports. General data transfer instructions. MOV sends word or byte. The MOVSX first sign extension, retransmission. MOVZX expands first, then transfers. PUSH pushes the word into the stack. POP pops the word up stack. PUSHA puts AX, CX, DX, BX, SP, BP, SI, and DI on the stack. POPA will put DI, SI, BP, SP, BX, DX, CX, AX in turn to pop up the stack. PUSHAD pushes the EAX, ECX, EDX, EBX, ESP, EBP, ESI, and EDI into the stack. POPAD pops up a stack of EDI, ESI, EBP, ESP, EBX, EDX, ECX, EAX. BSWAP swaps the order of bytes in 32-bit registers XCHG exchange words or bytes. (at least one operation is a register, and a segment register is not operable.) The CMPXCHG compares and trades the operands (the second operand must be the accumulator AL/AX/EAX) The XADD is switched first and then added. (the result is in the first operand) XLAT byte lookup table transformation. ─ ─ BX point to the starting point of a 256 - byte list, AL for the table index value (0-255, namely 0 - FFH); Return AL to check the result of the table. Input and output port instructions. INI/O port input. (grammar: IN accumulator, {port │ DX}) OUTI/O port output. (grammar: OUT │ DX} {port, the accumulator) When the input output port is specified in an immediate way, the range is 0-255; When specified by register DX, The range is 0 minus 65535. Destination address transfer instructions. LEA loads the valid address. Example: LEA DX, string; Save the offset address to the DX. LDS passes the target pointer and loads the pointer content to DS. Example: LDS SI, string; Take the segment address: offset address to DS: SI. LES passes the target pointer and loads the pointer content into ES. Example: LES DI, string; Take the segment address: offset address to ES: DI. LFS passes the target pointer and loads the pointer content into FS. Example:
显示全部
相似文档