bit monitoring instructions to perform a specific instruction when bit is 1
Added by Stephen H.
Step 1
Step 1: Set up a bit monitoring system that continuously checks the value of a specific bit in a register or memory location. Show more…
Show all steps
Your feedback will help us improve your experience
James Kiss and 64 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Consider a new instruction named branch- on-bit-reset (bbr). The instruction ' $B B R R_{1}, I$, label' Jumps to label, and if bit in position I of register operand, $R_{1}$ is zero. The registers of the computer are 16 -bits wide and are numbered 0 to 15 , position 0 being LSB. Consider the following implementation of this instruction on a processor that does not have $B B R$ implemented. Temp $\leftarrow R_{1}$ and mask Branch to label if temp is zero. The variable 'temp' is a temporary register. For correct implementation, the variable 'mask' must be generated by (A) mask $\leftarrow 0 \times 1<<I$ (B) mask $\leftarrow 0 \times$ FFFFFFFF $\gg I$ (C) mask $\leftarrow I$ (D) mask $\leftarrow 0 \times F$.
Computer Organization and Architecture
Machine Instructions, Addressing Modes
Translate the following instruction from Assembly to 16-bit Machine code: @R16 Translate the following instruction (highlighted instruction only!) from Assembly to 16-bit Machine code (assume i is the first symbol declared in the assembly code): @i M=1 @sum M=0 Translate the following instruction from Assembly to 16-bit Machine code: @KBD
Akash M.
Describe how you would use a loop to put any bit of register R0 into C, if R1 contains the desired bit's number (e.g., 0 for bit 0, 1 for bit 1, etc.). You do not have to use the assembly instructions -- instead, just describe how you would do it in terms of shifts, jumps/branches (conditional or unconditional), etc.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD