数据传输指令是在微处理器中传输数据的指令。它们也称为复制指令。
下表显示了数据传输指令列表:
OPCODE | OPERAND | EXPLANATION | EXAMPLE |
---|---|---|---|
MOV | D, S | D = S | MOV AX, [SI] |
PUSH | D | pushes D to the stack | PUSH DX |
POP | D | pops the stack to D | POP AS |
PUSHA | none | put all the registers into the stack | PUSHA |
POPA | none | gets words from the stack to all registers | POPA |
XCHG | D, S | exchanges contents of D snd S | XCHG [2050], AX |
IN | D, S | copies a byte or word from S to D | IN AX, DX |
OUT | D, S | copies a byte or word from D to S | OUT 05, AL |
XLAT | none | translates a byte in AL using a table in the memory | XLAT |
LAHF | none | loads AH with the lower byte of the flag register | LAHF |
SAHF | none | stores AH register to lower byte of the flag register | SAHF |
PUSHF | none | copies the flag register at the top of the stack | PUSHF |
POPF | none | copies a word at the top of the stack to the flag register | POPF |
D代表目的地,S代表来源。
D和S可以是寄存器,数据或存储器地址。