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

The program in a computer compares two signed numbers A and B by performing the 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 value of status bits S, Z, and V. 

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

Table 8-11

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

Mnemonic BZ BNZ BC BNC BP BM BV BNV BLO BLOE BE BNE TABLE 8-11 Conditional Branch Instructions BGT BGE Branch condition Unsigned compare conditions (AB) Branch if higher Branch if higher or equal Branch if lower Branch if lower or equal BLT BLE BE BNE Branch if zero Branch if not zero Branch if carry Branch if no carry Branch if plus Branch if minus Branch if overflow Branch if no overflow Signed compare conditions (A - B) Branch if greater than Branch if greater or equal Branch if less than Branch if equal Branch if not equal 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.43 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a Evaluate the difference and interpret the binary resul... 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!