Two signed numbers A and B represented in signed-2's complement form are compared by subtracting A -

Question:

Two signed numbers A and B represented in signed-2's complement form are compared by subtracting A - B. Status bits S, Z, and V are set or cleared depending on the result of the operation. (Note that there is a sign reversal if an overflow occurs.) Show that the relative magnitude of A and B can be determined from inspection of the status bits as specified below. (See also Table 8-11.)

Table for Problem 8-26 Relation A > B   A


Table for Problem 8-27 Relation A > B A Z B A

Table 8-11

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


Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: