2075 9

CSC167 ยท 2075 ยท 5 marks

What is instruction set? Explain various kinds of instructions of 8085 microprocessor.

What is instruction set? Explain various kinds of instructions of 8085 microprocessor. [5]

MicroprocessorChapter 4: Assembly Language ProgrammingInstruction Types

Quick answer

An instruction is a binary pattern designed inside a microprocessor to perform a specific function. The entire group of instructions that a microprocessor supports is called the Instruction Set.

Instruction Set and Types of Instructions in 8085 Microprocessor

Definition of Instruction Set

  • The 8085 microprocessor supports 246 instructions.
  • Each instruction is represented by an 8-bit binary value called the Op-code or Instruction Byte.

Types (Kinds) of Instructions in 8085 Microprocessor

The instructions of the 8085 microprocessor are classified into the following categories:


1. Data Transfer Instructions

These instructions move data between registers, memory, and I/O ports without modifying the data.

InstructionFunction
MOVMove data from one register to another
MVIMove immediate data to a register
LDALoad accumulator from memory
STAStore accumulator to memory
IN / OUTInput/Output data from/to I/O port

2. Arithmetic Instructions

These instructions perform arithmetic operations such as addition and subtraction.

InstructionFunction
ADDAdd register or memory to accumulator
ADIAdd immediate data to accumulator
SUBSubtract register or memory from accumulator
INRIncrement register by 1
DCRDecrement register by 1

3. Logical Instructions

These instructions perform logical (Boolean) operations on data.

InstructionFunction
ANAAND register with accumulator
ORAOR register with accumulator
XRAXOR register with accumulator
CMAComplement the accumulator
CMPCompare register with accumulator

4. Branch / Jump Instructions

These instructions alter the normal sequential flow of a program by jumping to a specific address, either conditionally or unconditionally.

InstructionFunction
JMPUnconditional jump to a particular address
JCJump if Carry Flag (CF) = 1
JNCJump if Carry Flag (CF) = 0
JZ / JEJump if Zero Flag (ZF) = 1
JNZJump if Zero Flag (ZF) = 0
CALLCall a subroutine/procedure
RETReturn from subroutine to calling program

5. Stack and Machine Control Instructions

These instructions control the stack operations and the overall machine state.

InstructionFunction
PUSHPush register pair onto the stack
POPPop data from stack to register pair
HLTHalt the processor
NOPNo operation (do nothing for one cycle)
EI / DIEnable / Disable interrupts

6. Rotate Instructions

These instructions rotate the bits of the accumulator left or right.

InstructionFunction
ROL / RLCRotate bits from MSB to LSB (left)
ROR / RRCRotate bits from LSB to MSB (right)
RCL / RALRotate left through Carry Flag
RCR / RARRotate right through Carry Flag

Summary Table

CategoryPurpose
Data TransferMove data between registers/memory/I/O
ArithmeticAdd, subtract, increment, decrement
LogicalAND, OR, XOR, compare, complement
Branch/JumpChange program flow conditionally or unconditionally
Stack/ControlManage stack and machine state
RotateShift/rotate bits in the accumulator

The 8085 instruction set provides a complete set of operations allowing the microprocessor to perform arithmetic, logical, data movement, and program control tasks efficiently.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.