Question: The program in a computer compares two unsigned numbers A and B by performing a subtraction A - B and updating the status bits. Let

The program in a computer compares two unsigned numbers A and B by performing a subtraction A - B and updating the status bits. Let A = 01000001 and B = 10000100. 

a. Evaluate the difference and interpret the binary result. 

b. Determine the values of status bits C (borrow) and Z. 

c. List the conditional branch instructions from Table 8-11 that will have a true condition.

Table 8-11

TABLE 8-11 Conditional Branch Instructions Mnemonic BZ BNZ BC BNC BP BM BV BNV  BHE BLO BLOE BE BNE Branch

TABLE 8-11 Conditional Branch Instructions Mnemonic BZ BNZ BC BNC BP BM BV BNV BHE BLO BLOE BE BNE Branch condition BGT BGE BLT BLE BE BNE Branch if zero Branch if not zero Branch if carry Branch if no carry Unsigned compare conditions (A - B) Branch if higher Branch if higher or equal Branch if lower Branch if plus Branch if minus Branch if overflow Branch if no overflow Branch if lower or equal Branch if equal Branch if not equal Signed compare conditions (AB) Branch if greater than Branch if greater or equal Branch if less than Branch if less or equal Branch if equal Branch if not equal Tested condition Z = 1 Z=0 C = 1 C=0 S=0 S = 1 V = 1 V = 0 A> B A B A

Step by Step Solution

3.46 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets go through each part of the question a To evaluate the difference between the unsigned numbers ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer System Architecture Questions!