Discussion
An instruction costs one unit plus one for each operand using an addressing mode that requires an extra word. How much does an instruction with two such operands cost?
Answer: B
Correct answer: 3
One unit for the instruction itself and one for each of the two operands requiring an extra word: \[ 1 + 1 + 1 = 3. \] The extra word is what makes a memory operand more expensive than a register one, and it is the whole basis on which the generator prefers registers.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development