GATEverse
← GATE CSE 2006

Q43

MCQ2 marks, −0.5

Consider a new instruction named branch-on-bit-set (mnemonic bbs). The instruction “bbs reg, pos, label” jumps to label if bit in position pos of register operand reg is one. A register is 3232 -bits wide and the bits are numbered 00 to 31,31, bit in position 00 being the least significant. Consider the following emulation of this instruction on a processor that does not have bbs implemented. temp←reg&masktemp\leftarrow reg \& mask Branch to label if temp is non-zero. The variable temp is a temporary register. For correct emulation, the variable mask must be generated by

Sign in to save attempts.

Loading…