ce12_w08_hw3

ce12_w08_hw3 - 3) (10 pts) Perform the following operations...

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

View Full Document Right Arrow Icon
CMPE 12 Winter 2008 Name:________________ Homework 3: Due February 6 Email:________________ 1) (12 pts) Represent these numbers in the specified format a. 100 in unsigned binary, one's complement, two's complement, and biased notation (bias of 255) b. -1 in one's complement, two's complement, sign-magnitude, and biased notation (bias of 15) c. -57 in one's complement, two's complement, sign-magnitude, and biased notation (bias of 127) d. 153 6 in one's complement, two's complement, sign-magnitude, and biased notation (bias of 331 6 ) 2) (10 pts) What are the largest and smallest numbers that can be represented with 4, 7, or 8 bits in these binary number systems: (your answer should be given in both decimal and binary) a. unsigned binary b. sign-magnitude c. one's complement d. two's complement e. biased notation (with biases of 7, 63, and 127 respectively)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3) (10 pts) Perform the following operations in the specified binary notation (You are not allowed to convert to another number system. You must do the adding or subtracting in the specified notation. You must also always keep 8 bits) a. 00010110 + 00101010 in unsigned binary b. 00110111 + 11010110 in 2's complement c. 01111100 - 01010111 in unsigned binary d. 01001100 - 00101001 in 2's complement e. 11000000 + 01111001 in 1's complement 4) (4 pts) Complile these lines of LC-3 code. (the answer is in the form of a 16 bit binary number) a. NOT R6, R0 b. ADD R2, R3, #-5 5) (4 pts) The following 16 bit numbers are lines of LC-3 machine code. Decompile the code. a. 0101110011000010 b. 0110100000111111...
View Full Document

Ask a homework question - tutors are online