0% found this document useful (0 votes)
26 views2 pages

Format

Uploaded by

jiyap3691
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

Format

Uploaded by

jiyap3691
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

N G Patel Polytechnic

Computer engineering department


Microproject (Group 5)
COMPUTER ORGANIZATION & ARCHITECTURE (4350701)

Addressing mode
Types of addressing modes Examples:
In 8085 microprocessor there are 5 types of addressing
LDA 2050 (load the contents of memory location into
modes
accumulator A) LHLD address (load contents of 16-bit memory
Immediate Addressing Mode – location into H-L register pair)
In immediate addressing mode the source operand is always data. If the data IN 35 (read the data from port whose address is 35)
is 8-bit, then the instruction will be of 2 bytes, if the data is of 16-bit then the
instruction will be of 3 bytes.
Register Indirect Addressing Mode –
Examples: n register indirect addressing mode, the data to be operated is
MVI B, 45H (Moves the 8-bit data 45H directly into register B) available inside a memory location and that memory location is
indirectly specified by a register pair.
LXI H, 3050H (Loads the 16-bit data 3050H into the H-L register Examples:
pair)
MOV A, M (move the contents of the memory location pointed
JMP address (Directly jumps to the specified address). by the H-L pair to the accumulator)
LDAX B (move contents of B-C register to the accumulator)
Direct Addressing Mode –
STAX B (store accumulator contents in memory pointed by
If 8/16 bit data required for executing the instruction is present
in memory location and the address of that memory location is register pair B-C)
given along with instruction then such type of instructions are
called Direct Addressing Mode instruction. Implicit Addressing Mode –
For Example: n implied/implicit addressing mode the operand is hidden and
LDA 2050 (load the contents of memory location into the data to be operated is available in the instruction itself.
accumulator A) LHLD address (load contents of 16-bit memory Examples:
location into H-L register pair) CMA (finds and stores the 1’s complement of the contents of
IN 35 (read the data from port whose address is 35) accumulator A in A)
Register Direct Addressing Mode – RRC (rotate accumulator A right by
In direct addressing mode, the data to be operated is one bit) RLC (rotate accumulator A
available inside a memory location and that memory location left by one bit)
is directly specified as an operand. The operand is directly
available in the instruction itself.
GUIDED BY: MR. N.C.PANDYA PREPARED BY: 226370307076 Patel Sagar
226370307077 Patel Tirth

You might also like