0% found this document useful (0 votes)
20 views8 pages

Addressing Mode Byte

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

Addressing Mode Byte

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

Addressing Mode Byte

Prof.S.Michael Raj
Department of MM
Nilgiri College
• The addressing mode byte in a microprocessor is part of the
instruction encoding that specifies how the operand(s) of an
instruction are accessed.
• Different microprocessors have different methods of
encoding instructions, but the addressing mode byte
typically tells the processor where to find the data it needs
for execution.
Common Addressing Modes:
1.Immediate Addressing Mode:
•The operand is directly specified in the instruction itself.
•Example: MOV A, #05H where 05H is the immediate
data.
2.Register Addressing Mode:
•The operand is in a register, and the instruction
specifies which register.
•Example: MOV A, B where the data is in register B.
•Direct Addressing Mode:
•The operand is stored in a memory location, and the address of the
operand is specified in the instruction.
•Example: MOV A, 50H where 50H is the memory address.
•Indirect Addressing Mode:
•The instruction specifies a register that holds the address of the operand,
rather than the operand itself.
•Example: MOV A, @R0 where R0 contains the memory address.
•Indexed Addressing Mode:
•The operand's address is determined by adding a constant value to a base
register.
•Example: MOV A, 50H(R0) where R0 is the base register and 50H is the offset.
•Relative Addressing Mode:
•Often used in branch instructions, where the operand specifies a relative
offset from the current instruction.
•Example: JMP 05H where the program jumps to an instruction 5 bytes away from
the current one.
Function of the Addressing
Mode Byte:
• Instruction Decoding: The addressing mode byte helps the
microprocessor decode how to interpret the subsequent
bytes of the instruction and where to fetch the operands.
• Flexibility: It allows the microprocessor to use a variety of
methods to access data, which makes the instruction set
more versatile.
• Different microprocessors may have different
formats for the addressing mode byte, and some
may combine the opcode and addressing mode
into a single byte or multiple bytes depending on
the complexity of the instruction set.
Thank you

You might also like