HW3 Signed Arithmetic

# HW3 Signed Arithmetic - 0001 = Unsigned Signed 4 Reg AX Reg...

This preview shows page 1. Sign up to view the full content.

CSC 322 Homework Three Due Friday September 2, 2011 Fill in the following "CX registers" with the appropriate values. Assume these "registers" can hold 16 bits. Also, indicate the value in the "Sign", "Carry" and the "Overflow" Flags after each addition. Finally, interpret the value found in the resultant "register" as both an unsigned integer and as a 2's Complement signed integer. (Place 4 Hexadecimal digits in Reg CX and a 1 or 0 in the flag fields.) Unsigned Signed 1 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal 0123 + DCAB = Unsigned Signed 2 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal ABCD + DCAB = Unsigned Signed 3 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal FFFF
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: + 0001 = Unsigned Signed 4 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal 0F0F + F0F0 = Unsigned Signed 5 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal 5678 + 2468 = Unsigned Signed 6 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal 7FFF + 0135 = Unsigned Signed 7 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal ABCD + FEDC = Unsigned Signed 8 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal 0B0B + B0B0 = Unsigned Signed 9 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal 7FFF + 7FFF = Unsigned Signed 10 Reg AX Reg BX Reg CX Sign Carry OverFlow Decimal Decimal 8000 + 8000 =...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online