Question: Suppose a computer uses 4-bit one s complement representation. Ignoring overflows, what value will be stored in the variable j after the following pseudo code
Suppose a computer uses 4-bit one s complement representation. Ignoring overflows, what value will be stored in the variable j after the following pseudo code routine terminates? (show details of all steps of the execution) 0- store o in j store -3 in k whole ko 8. Consider a complex patient health monitoring system which is made up of eight units that are independently busy (active) or available (inactive). One can keep track of these eight units with an eight bit binary BUSYNESS pattern, where a bit is 1 if the unit is active and 0 if the unit is inactive. Given this composite bit pattern of eight bits one can find the status of an individual unit by using a mask and a bitwise logical operation. Explain for each: a. What mask value and what operation would one use to indicate that unit 2 is active? b. What mask value and what operation would one use to indicate that units 2 and 6 are no longer active? c. What mask value and what operation would one use to indicate that all units are active? d. What mask value and what operation would one use to indicate that all units are inactive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
