GATE CSE · 2017 · CS
Question 49: Computer Organization and Architecture
Give it a try, then reveal the answer to check your work.
Question 49
CSNAT2 marksNeeds review
Consider a RISC machine where each instruction is exactly 4 bytes long. Conditional and unconditional branch instructions use PC-relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offset is always with respect to the address of the next instruction in the program sequence. Consider the following instruction sequence
Instr. No. | Instruction |
|---|---|
i | add R2, R3, R4 |
i+1 | sub R5, R6, R7 |
i+2 | cmp R1, R9, R10 |
i+3 | beq R1, Offset |
If the target of the branch instruction is i, then the decimal value of the Offset is __________.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerEXPLORE & PRACTISE
Paper and topic context
See where this question comes from and choose what to practise next.
2017CS
GATE CSE 2017 · Paper 1
Computer Science and Information Technology · Original paper archive
- Section
- Computer Science and Information Technology
- Question type
- Numerical answer (NAT)
- Marks
- 2 marks
Practise related topics
Explore more previous year questions using this question’s imported topic tags.
computer science
GATE CSE previous year questions
information technology
GATE CSE previous year questions
computing
GATE CSE previous year questions
computer organization and architecture
GATE CSE previous year questions
addressing modes
GATE CSE previous year questions
Comments
Ask a question, share your approach, or help someone understand.
Log in to view the discussion
You’re not logged in. Log in or create an account to see discussions and add comments.