Lesson on Addressing Modes Continued....
The effective address of the operand is the contents of a register or memory location whose address appears in the instruction.
Assembler Syntax: (Ri), LOC
Addressing Function:EA=[Ri],EA=[LOC]
Consider the pointer operation of C programming language
Assume value of J to be stored in the variables A using the pointer notation.
So B=&J
A=*B where B is a pointer variable. This statement when compiled it may generate the following statements
MOV B,R1 [Address of J stored in R1]
MOV (R1),A [Store the contents from memory location present in R1 to A]
The above statement can also be achieved by
MOV (B),A
Animated Lesson on Addressing Modes << Previous
Next >> Lesson on Addressing Modes
Support us generously: contact@lessons2all.com
Our aim is to provide information to the knowledge seekers.