Computer Sciences > Gate 2017 Set-1 > RISC Machine
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 Offest is __________.

Correct : -16

Similar Questions

A palindrome is a word that reads the same forwards and backwards. In a game of words, a player has the following two plates painted with letters. From...
#1 MCQ
Which number does not belong in the series below? 2, 5, 10, 17, 26, 37, 50, 64
#4 MCQ
Choose the word that is opposite in meaning to the word “coherent”.
#5 MCQ

Related Topics

No tags found

Unique Visitor Count

Total Unique Visitors

Loading......