Question: ELEC 2 2 2 0 Homework # 4 Due Wednesday, 8 / 2 6 / 2 0 2 4 ( Refer to Textbook Chapter 2

ELEC 2220 Homework #4
Due Wednesday, 8/26/2024
(Refer to Textbook Chapter 2 and Digital Logic Circuits Textbook Chapter 1)
1. A certain CPU uses twos complement arithmetic to perform addition of two 8-bit
signed numbers. Describe what the following condition flags tell you about the 8-
bit result of this addition. (1/2 point each)
a. Z (zero flag)
b. N (sign flag)
c. C (carry flag)
d. V (overflow flag)
2. Perform the following calculations as they would be done by the 8-bit CPU of
problem 1. Write the hex values in binary to perform the calculation. Show the 8-
bit result in hexadecimal and the four condition flag values (1 point for the result
and 1 point for the flags).
a.0xA8+0xCA
b.0xFE +0x02
c.0x550x73
d.0x900x09

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!