Instruction Set and Programming of Intel 8085 Microprocessor
Instruction Set and Programming of Intel 8085 Microprocessor
Instruction Set and Programming of Intel 8085 Microprocessor
Programming of Intel
8085 Microprocessor
Instruction Set
• An instruction is a command given to the computer to
perform a specified operation on a given data.
• The instruction set is the collection of instructions
which the microprocessor is designed to execute.
• The assembly language program comprises of the
collection of instructions to perform a certain
operation.
• Different companies such as Intel, Motorola, etc. have
different instruction set.
Instruction
MOV A,M Move the content of the memory location whose address is
in H-L pair to the accumulator
HLT Halt
LXI H, 2500 2500 is 16 bit data and is loaded into H-L pair
e) Implicit/ Implied addressing mode
• In this type of instruction, operand is the content of the
accumulator.
• No data, address of data, register are present in the
instruction.
• Example
CMA Complement the content of the accumulator
LXI rp, data 16 Load the register pair with the 16 bit data 3
ADC r The content of register r and carry status are added with 1
the content of the accumulator
DAD rp Add the content of register pair rp to the content of 3
H-L pair [H-L] [H-L]+[rp]
ANA M The content of the memory location addressed by H-L pair is ANDed 2
with content of accumulator
ANI data The data is ANDed with the content of the accumulator 2
ORA r The content of the register is ORed with the content of the 1
accumulator
ORA M The content of the memory location addressed by H-L pair is ORed 2
with content of accumulator
ORA data The data is ORed with the content of the accumulator 2
CMP r The content of the register r is subtracted with the content of the 1
accumulator and the status flag are set according to the result
CMP M The content of the memory location addressed by H-L pair is 2
subtracted with the content of the accumulator and the status flag
are set according to the result. The result of the accumulator
remains unchanged.
RLC The content of the accumulator is rotated left by one bit without 1
carry`
RRC The content of the accumulator is rotated right by one bit without 1
carry
RAL The content of the accumulator is rotated left by one bit with 1
carry
RAR The content of the accumulator is rotated right by one bit with 1
carry
Branch Group
• The instruction in this group change the normal sequence of the
program.
Conditional
Branch Group
Unconditional