Microprocessor-8085-arithmetic-instructions

提供:Dev Guides
移動先:案内検索

8085算術命令

以下は、算術命令のリストとその意味を示した表です。

Opcode Operand Meaning Explanation
ADD

R

M

Add register or memory, to the accumulator

The contents of the register or memory are added to the contents of the accumulator and the result is stored in the accumulator.

-Kを追加

ADC

R

M

Add register to the accumulator with carry

The contents of the register or memory & M the Carry flag are added to the contents of the accumulator and the result is stored in the accumulator.

-ADC K

ADI 8-bit data Add the immediate to the accumulator

The 8-bit data is added to the contents of the accumulator and the result is stored in the accumulator.

-ADI 55K

ACI 8-bit data Add the immediate to the accumulator with carry

The 8-bit data and the Carry flag are added to the contents of the accumulator and the result is stored in the accumulator.

-ACI 55K

LXI Reg. pair, 16bit data Load the register pair immediate

The instruction stores 16-bit data into the register pair designated in the operand.

-LXI K、3025M

DAD Reg. pair Add the register pair to H and L registers

The 16-bit data of the specified register pair are added to the contents of the HL register.

-DAD K

SUB

R

M

Subtract the register or the memory from the accumulator

The contents of the register or the memory are subtracted from the contents of the accumulator, and the result is stored in the accumulator.

-SUB K

SBB

R

M

Subtract the source and borrow from the accumulator

The contents of the register or the memory & M the Borrow flag are subtracted from the contents of the accumulator and the result is placed in the accumulator.

-SBB K

SUI 8-bit data Subtract the immediate from the accumulator

The 8-bit data is subtracted from the contents of the accumulator & the result is stored in the accumulator.

-SUI 55K

SBI 8-bit data Subtract the immediate from the accumulator with borrow

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

INR

R

M

Increment the register or the memory by 1

The contents of the designated register or the memory are incremented by 1 and their result is stored at the same place.

-INR K

INX R Increment register pair by 1

The contents of the designated register pair are incremented by 1 and their result is stored at the same place.

-INX K

DCR

R

M

Decrement the register or the memory by 1

The contents of the designated register or memory are decremented by 1 and their result is stored at the same place.

-DCR K

DCX R Decrement the register pair by 1

The contents of the designated register pair are decremented by 1 and their result is stored at the same place.

-DCX K

DAA None Decimal adjust accumulator

The contents of the accumulator are changed from a binary value to two 4-bit BCD digits.

アキュムレータの下位4ビットの値が9より大きい場合、またはACフラグが設定されている場合、命令は下位4ビットに6を追加します。

アキュムレータの上位4ビットの値が9より大きい場合、またはキャリーフラグが設定されている場合、命令は上位4ビットに6を追加します。

-DAA