Microprocessor-8085-data-transfer-instructions
8085データ転送命令
以下は、データ転送命令のリストとその意味を示した表です。
Opcode | Operand | Meaning | Explanation |
---|---|---|---|
MOV |
Rd, Sc M、Sc Dt、M |
Copy from the source (Sc) to the destination(Dt) |
This instruction copies the contents of the source register into the destination register without any alteration. 例-MOV K、L |
MVI |
Rd, data M、データ |
Move immediate 8-bit |
The 8-bit data is stored in the destination register or memory. 例-MVI K、55L |
LDA | 16-bit address | Load the accumulator |
The contents of a memory location, specified by a 16-bit address in the operand, are copied to the accumulator. 例-LDA 2034K |
LDAX | B/D Reg. pair | Load the accumulator indirect |
The contents of the designated register pair point to a memory location. This instruction copies the contents of that memory location into the accumulator. 例-LDAX K |
LXI | Reg. pair, 16-bit data | Load the register pair immediate |
The instruction loads 16-bit data in the register pair designated in the register or the memory. 例-LXI K、3225L |
LHLD | 16-bit address | Load H and L registers direct |
The instruction copies the contents of the memory location pointed out by the address into register L and copies the contents of the next memory location into register H. 例-LHLD 3225K |
STA | 16-bit address | 16-bit address |
The contents of the accumulator are copied into the memory location specified by the operand. これは3バイトの命令で、2番目のバイトは下位アドレスを指定し、3番目のバイトは上位アドレスを指定します。 例-STA 325K |
STAX | 16-bit address | Store the accumulator indirect |
The contents of the accumulator are copied into the memory location specified by the contents of the operand. 例-STAX K |
SHLD | 16-bit address | Store H and L registers direct |
The contents of register L are stored in the memory location specified by the 16-bit address in the operand and the contents of H register are stored into the next memory location by incrementing the operand. これは3バイトの命令で、2番目のバイトは下位アドレスを指定し、3番目のバイトは上位アドレスを指定します。 例-SHLD 3225K |
XCHG | None | Exchange H and L with D and E |
The contents of register H are exchanged with the contents of register D, and the contents of register L are exchanged with the contents of register E. 例-XCHG |
SPHL | None | Copy H and L registers to the stack pointer |
The instruction loads the contents of the H and L registers into the stack pointer register. The contents of the H register provide the high-order address and the contents of the L register provide the low-order address. 例-SPHL |
XTHL | None | Exchange H and L with top of stack |
The contents of the L register are exchanged with the stack location pointed out by the contents of the stack pointer register. Hレジスタの内容は、次のスタック位置(SP+ 1)と交換されます。 例-XTHL |
PUSH | Reg. pair | Push the register pair onto the stack |
The contents of the register pair designated in the operand are copied onto the stack in the following sequence. スタックポインタレジスタがデクリメントされ、高位レジスタ(B、D、H、A)の内容がその場所にコピーされます。 スタックポインタレジスタが再びデクリメントされ、下位レジスタ(C、E、L、フラグ)の内容がその場所にコピーされます。 例-PUSH K |
POP | Reg. pair | Pop off stack to the register pair |
The contents of the memory location pointed out by the stack pointer register are copied to the low-order register (C, E, L, status flags) of the operand. スタックポインタは1ずつインクリメントされ、そのメモリ位置の内容がオペランドの高位レジスタ(B、D、H、A)にコピーされます。 スタックポインタレジスタは再び1ずつ増加します。 例-POPK |
OUT | 8-bit port address | Output the data from the accumulator to a port with 8bit address |
The contents of the accumulator are copied into the I/O port specified by the operand. 例-OUT K9L |
IN | 8-bit port address | Input data to accumulator from a port with 8-bit address |
The contents of the input port designated in the operand are read and loaded into the accumulator. 例-IN5KL |