MICROPROCESSOR
PART 5
SIBIN K
Electrical Subject Matter Expert
INSTRUCTION SET
● Since the 8085 is an 8-bit device it can have up to 2^8 (256) instructions.
● However, the 8085 only uses 246 combinations that represent a total of 74
instructions.
● Most of the instructions have more than one format.
These instructions can be grouped into five different groups:
● Data Transfer Operations
● Arithmetic Operations
● Logic Operations
● Branch Operations
● Machine Control Operations
● An Instruction is a command given to the computer to perform a specified operation
on given data.
● Each instruction has two parts
● The first part is the task or operation to be performed
● This part is called the “opcode” (operation code).
● The second part is the data to be operated on Called the “operand”.
Data Transfer Group
● Instructions, which are used to transfer data from one register to another register, from
memory to register or register to memory, come under this group.
● Examples are: MOV, MVI, LXI, LDA, STA etc.
● When an instruction of data transfer group is executed, data is transferred from the
source to the destination without altering the contents of the source.
● Similarly, when LDA 2500 is executed the content of the memory location 2500 is loaded
into the accumulator.
● MVI B,25H - Move immediate data 25H to register B
● LXI B,2000H - Load register pair immediate
● MVI M,25H - Move immediate data to memory location pointed by
HL reg.pair
● MOV B,C - Move the content of the C register to another register B
● MOV B,M - Move the content of the memory location pointed by HL
reg.pair to register B
● MOV M,C - Move the data from C register a to memory location
pointed by HL reg.pair
● LDA 2000H - Load Accumulator direct from the contents in the
address 2000H
● STA 3000H - store Accumulator direct to the contents in the
address 3000H
● LHLD 5000H - Load H-L pair direct
● The instruction copies the contents of the memory location pointed by 5000H
into register L and copies the contents of the next memory location into
register H.
● SHLD 5000H - store H-L pair direct
● The contents from HL register pair is stored to the address 5000H and 5001H
● LDAX B - LOAD accumulator indirect
● STAX B - store accumulator indirect
● PCHL
● SPHL
● XCHG - Exchange the contents of H-L with D-E pair
● XTHL - exchange TOP with HL
● The contents of the L register are exchanged with the stack location pointed
out by the contents of the stack pointer register. Also, the contents of the H
register are exchanged with the next stack location (SP+1).