The effective address for the LDI instruction is the contents of the nearby memory location determined by the PC-Relative addressing mode.

Let's assume that the address 0x5011 contains 1010 100 001000000, and the address 0x5052 contains 0111 0011 0000 1111. I want to find the effective address for the instruction stored in 0x5011.

Step 1: the nearby memory location = 0x5012 (incremented) + 0x0040 = 0x5052

Step 2: the effective address for this instruction = contents of the nearby memory location = 0x730F.

So, the effective address for 1010 100 001000000 is 0x730F. Am I understanding this correctly?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.