MicroprocessorTU Board 2081
Explain different addressing modes in 8085 mocroprocessor.
5Answer
An addressing mode is the way an instruction specifies where its operand (data) is. The 8085 has five addressing modes.
- Immediate addressing. The data itself is part of the instruction.
MVI A, 25Hloads 25H into A.LXI H, 2050Hloads 2050H into the HL pair. - Register addressing. The operand is in a register.
MOV B, Ccopies C into B.ADD Badds B to the accumulator. - Direct addressing. The instruction gives the 16-bit memory address of the data.
LDA 2050Hloads A from memory location 2050H.STA 3000Hstores A at 3000H.IN 01Hreads port 01H. - Register indirect addressing. A register pair holds the memory address of the data.
MOV A, Mloads A from the location whose address is in HL.LDAX Bloads A from the address in BC. - Implied (implicit) addressing. The operand is not written in the instruction; the opcode itself implies it, usually the accumulator.
CMAcomplements A.RALrotates A left.STCsets the carry flag.
| Mode | Where the operand is | Example |
|---|---|---|
| Immediate | In the instruction | MVI A, 25H |
| Register | In a register | MOV B, C |
| Direct | At a memory address given in the instruction | LDA 2050H |
| Register indirect | At the address held in a register pair | MOV A, M |
| Implied | Understood from the opcode | CMA |
Discussion
Loading…
More Microprocessor questions
Explain instruction cycle, machine cycle and T states. Draw timing diagram of instruction cycle of STA instruction with brief description.TU Board 208210Draw block diagram of 8086 microprocessor and explain its main two functional units. Differentiate between Real Address Mode and Protected Virtual Address…TU Board 208210Explain the working of PUSH and POP instruction with suitable example. Write an assembly language program using 8085 microprocessor instructions to divide 34h…TU Board 208210Differentiate between Isolated mapped and Memory Mapped I/O. Explain basic DMA operation in brief.TU Board 20825What is flag? Explain all the flags available in 8085 microprocessor.TU Board 20825Write an assembly language program for 8086 microprocessor to convert the string "microprocessor is programmable" to uppercase.TU Board 20825