Insruction Set
Insruction Set
Insruction Set
N Mishra
The data transfer instructions move data between registers or between memory
and registers.
1
Microprocessor Instruction Set © Er. A.N Mishra
Arithmetic Group
The arithmetic instructions add, subtract, increment, or decrement data in
registers or memory.
Op code operand Description Flag
operation
ADD R Add to Accumulator ALL
ADI 8 bit data Add Immediate Data to Accumulator All
ADC R Add to Accumulator Using Carry Flag ALL
ACI 8 bit data Add Immediate data to Accumulator Using ALL
Carry
SUB R Subtract from Accumulator ALL
SUI 8 bit data Subtract Immediate Data from Accumulator ALL
SBB R Subtract from Accumulator Using Borrow ALL
(Carry) Flag
SBI 8 bit data Subtract Immediate from Accumulator Using ALL
Borrow (Carry)Flag
INR R Increment Specified Byte by One ALL except
carry
DCR R Decrement Specified Byte by One ALL except
carry
INX Rp Increment Register Pair by One Affect no
flag
DCX Rp Decrement Register Pair by One Affect no
flag
DAD Rp Double Register Add; Add Content of Only carry
Register Pair to H & L Register Pair flag
DAA Adjust the accumulator content in BCD Affect all
this is only instr which use AC flag. flag
2
Microprocessor Instruction Set © Er. A.N Mishra
Logical Group
This group performs logical (Boolean) operations on data in registers and
memory and on condition flags.
The logical AND, OR, and Exclusive OR instructions enable you to set specific
bits in the accumulator ON or OFF.
Op code operand Description Flag
ANA R/M Logical AND with Accumulator Affect all but
set AC and Clear
Carry flag
ANI 8 bit data Logical AND with Accumulator Using Immediate Data ””
3
Microprocessor Instruction Set © Er. A.N Mishra
Compare Operation.
S Z X AC X P X CY
Branch Group:
The branching instructions alter normal sequential program flow, either unconditionally
or conditionally. The unconditional branching instructions are as follows:
JMP Jump
CALL Call
RET Return
Conditional branching instructions examine the status of one of four condition flags to
determine whether the specified branch is to be executed. The conditions that may be
specified are as follows:
NZ Not Zero (Z = 0)
Z Zero (Z = 1)
NC No Carry (C = 0)
C Carry (C = 1)
PO Parity Odd (P = 0)
PE Parity Even (P = 1)
P Plus (S = 0)
M Minus (S = 1)
4
Microprocessor Instruction Set © Er. A.N Mishra
C CC RC (Carry)
Two other instructions can affect a branch by replacing the contents or the program
counter: