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

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

View Full Document Right Arrow Icon
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)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

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 Right Arrow Icon
Ask a homework question - tutors are online