8085 Addressing Modes & Interrupts
8085 Addressing Modes & Interrupts
In this mode, the 8/16-bit data is specified in the instruction itself as one of its
operand. For example: MVI K, 20F: means 20F is copied into register K.
In this mode, the data is copied from one register to another. For example: MOV
K, B: means data in register B is copied to register K.
In this mode, the data is directly copied from the given address to the register.
For example: LDB 5000K: means the data at address 5000K is copied to register
B.
In this mode, the data is transferred from one register to another by using the
address pointed by the register. For example: MOV K, B: means data is
transferred from the memory address pointed by the register to the register K.
This mode doesn’t require any operand; the data is specified by the opcode itself.
For example: CMP.
Interrupts in 8085
Interrupts are the signals generated by the external devices to request the
microprocessor to perform a task. There are 5 interrupt signals, i.e. TRAP, RST
7.5, RST 6.5, RST 5.5, and INTR.
TRAP
RST7.5
It is a maskable interrupt, having the second highest priority among all interrupts.
When this interrupt is executed, the processor saves the content of the PC register
into the stack and branches to 003CH address.
RST 6.5
It is a maskable interrupt, having the third highest priority among all interrupts.
When this interrupt is executed, the processor saves the content of the PC register
into the stack and branches to 0034H address.
RST 5.5
INTR
It is a maskable interrupt, having the lowest priority among all interrupts. It can
be disabled by resetting the microprocessor.
When INTR signal goes high, the following events can occur −
The microprocessor checks the status of INTR signal during the execution
of each instruction.
When the INTR signal is high, then the microprocessor completes its
current instruction and sends active low interrupt acknowledge signal.
When instructions are received, then the microprocessor saves the address
of the next instruction on stack and executes the received instruction.