Spring2013_Exam1A_S1

# What decimal base 10 value does it represent if we

• Notes
• 10

This preview shows page 5 - 9 out of 10 pages.

Consider the 8-bit binary pattern 1000 1011. What decimal (base 10) value does it represent if we interpret it as: a An unsigned integer? (1 Point) b A signed magnitude integer? (1 Point) c A t wo’s complement integer? (1 Point)

Subscribe to view the full document.

6 Problem 4 (2 Points) Perform binary arithmetic for the following pairs of 2’s complement numbers and specify whether or not there is an overflow. Illustrate your answer by converting the operands and result to decimal. Assume the result has the same number of bits as the operands. a 110 + 110 ------ b 0111 - 1001 ------- Problem 5 (3 Points) Suppose we have two operands X and Y, where X = 0x57 and Y = 0xBC. a Convert X and Y into binary . (1 Point) b What is the result of X AND Y ? Give your answer in hexadecimal. (1 Point) c What is the result of X OR Y ? Give your answer in hexadecimal. (1 Point)
7 Problem 6 (2 Points) Show the result of performing the following bitwise logic operations: a (NOT(0101)) AND (0101 OR 1010) b NOT(11011 OR (01010 AND 10010)) Problem 7 (1 Point) What is the difference between an instruction set architecture (ISA) and a microarchitecture? Give your answer in one sentence. Problem 8 (2 Points) Suppose we have two 4-bit 2's complement integers 0010 and 1100. Express their sum as an 8-bit 2's complement number.

Subscribe to view the full document.