Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  An instruction is read from the memory having... Start Learning for Free
An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:
  • a)
    48
  • b)
    728
  • c)
    752
  • d)
    753
Correct answer is option 'D'. Can you explain this answer?
Most Upvoted Answer
An instruction is read from the memory having the value stored in the ...
Given Information:
- The value stored in the program counter is 716.
- The number contained in the address part of the instruction is 36.
- The value pointed by the index register is 12.

To Find:
The effective address in relative address mode.

Solution:
To find the effective address in relative address mode, we need to add the number contained in the address part of the instruction to the value stored in the program counter.

1. Add the value stored in the program counter (716) to the number contained in the address part of the instruction (36):
716 + 36 = 752

2. Now, we need to consider the value pointed by the index register (12) and add it to the result obtained in step 1:
752 + 12 = 764

Answer:
The effective address in relative address mode is 764.
Free Test
Community Answer
An instruction is read from the memory having the value stored in the ...
In the relative addressing mode, we can obtain the effective address by:
Adding the displacement i.e. address part of the instruction to the PC.
The instruction is read from the memory (location 716 and “PC” is incremented by one.
Effective address or Offset: An offset is determined by adding any combination of three address elements: displacement, base and index.
Displacement: It is an 8 bit or 16 bit immediate value given in the instruction.
Base: Contents of base register, BX or BP.
Index: Content of index register SI or DI.
According to different ways of specifying an operand by 8086 microprocessor, different addressing modes are used by 8086.
PC relative addressing mode: PC relative addressing mode is used to implement intra segment transfer of control, In this mode effective address is obtained by adding displacement to PC.
EA = PC + Address field value
PC = PC + Relative value.
So, the Effective address will be calculated as:
E.A. = 717 + 36
E.A = 753
Hence, the correct option is (D).
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer?
Question Description
An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer?.
Solutions for An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer?, a detailed solution for An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer? has been provided alongside types of An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice An instruction is read from the memory having the value stored in the program counter as 716. The number contained in the address part of the instruction is 36. What will be the effective address in relative address mode given the value pointed by index register is 12:a)48b)728c)752d)753Correct answer is option 'D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev