Homework #1

# Homework #1 - ECE 331 Microprocessors and Digital Systems...

This preview shows pages 1–2. Sign up to view the full content.

http://angel.msu.edu/ Instructor: Prof. N IHAR R. M AHAPATRA Solutions to Homework 1 Instructions: Solve the following problems. Points for each problem are indicated in square brackets next to the problem number. Maximum score is 25. 1. [3 points] How will you represent -126 10 in the following number representation systems? (a) [1 point] 8-bit sign-magnitude number. (b) [1 point] 8-bit one’s complement number. (c) [1 point] 8-bit two’s complement number. Answer: (a) 11111110 2 . (b) 10000001 2 . (c) 10000010 2 . 2. [3 points] Represent 237 10 in the following number representation systems. (a) [1 point] 8-bit unsigned number. (b) [1 point] 2-digit hexadecimal number. (c) [1 point] 3-digit octal (base 8) number. Answer: (a) 11101101 2 . (b) ED 16 . (c) 355 8 . 3. [6 points] Let a = 11001011 2 and b = 00100100 2 be two 8-bit unsigned numbers. Show how you will perform the following operations (in binary) on these unsigned binary numbers. (a) [1 point] a + b (addition). (b) [1 point] a b (subtraction). (c) [2 points] a × b (multiplication). (d)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

Homework #1 - ECE 331 Microprocessors and Digital Systems...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online