Consider the two 8-bit numbers A = 10110110 and B = 00110111. (a) Give the decimal equivalent

Question:

Consider the two 8-bit numbers A = 10110110 and B = 00110111.

(a) Give the decimal equivalent of each number, assuming that (1) they are unsigned and (2) they are signed 2s complement.

(b) Add the two binary numbers and interpret the sum, assuming that the numbers are (1) unsigned and (2) signed 2s complement.

(c) Determine the values of the C (carry), Z (zero), N (sign), and V (overlow) status bits after the additions.

(d) List the conditional branch instructions from Table 9-8 that will have a true condition for each addition.

Table 9-8

Conditional Branch Instructions Relating to Status Bits in the PSR Branch Condition Branch if zero Branch if

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

Step by Step Answer:

Related Book For  book-img-for-question

Logic And Computer Design Fundamentals

ISBN: 9780133760637

5th Edition

Authors: M. Morris Mano, Charles Kime, Tom Martin

Question Posted: