Q43
MCQ2 marks, −0.5Consider 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 -bits wide and the bits are numbered to bit in position being the least significant. Consider the following emulation of this instruction on a processor that does not have bbs implemented. 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…