Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Indirect addressing mode in assembly language is similar to pointers in C. Answe

ID: 3573074 • Letter: I

Question

Indirect addressing mode in assembly language is similar to pointers in C. Answer the following questions: What are the names of the three indirect addressing SFR used to store the addresses of variables in RAM? What is the logical size in bits of each of the registers identified in part 1 above? Write the assembly language command to load the address of the variable with name: X_Val into one of the registers identified in part 1 above? What is the meaning of: movff PREINC2, PORTA? What is the meaning of: movff POSTINCI, PORTA? Write an assembly language program to copy the values stored at addresses 40H to 45H to PORTB using indirect addressing mode. There should be a delay of 10mS between each copy action. Assume you have the LoopTime subroutine, which implements a delay of 10 ms.

Explanation / Answer

1, Three indirect addressing modes used"

a.Register indirect

b.Register autoincrement indirect

c.Auto decrement register indirect

2. Each SFR or Special function register is of 1Byte size.