Q3 Solution - Name: _ Student Number: _ Trent University...

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

View Full Document Right Arrow Icon
Name: ______________________ Student Number: _____________________ Trent University Computer Science 230H Fall 2007 Quiz #3 Topic: ALU Total of 15 marks Open Text Book Duration: 1 hour 1. [2 marks] Give the binary value, as an eight-bit signed integer, of the decimal number -60 if we are using: a) Sign-magnitude format 10111100 b) Twos complement format 11000100 2. [5 marks] Perform the following operations on signed 6-bit twos complement integers. Indicate whether an overflow will occur or not. a) 011011 27 + 001100 + 12 100111 – overflow 39 b) 010011 19 +111011 - 5 (1)001110 – no overflow 14 (a carry is not an overflow) c) 011010 26 - 111110 + 2 011100 – no overflow 28 d) 100011 (-29) - 011011 - 27 (1)001000 – overflow (-56) (a carry is not an overflow) e) 100011 (-29) + 011011 + 27 111110 – no overflow (-2) 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Name: ______________________ Student Number: _____________________ 3. [4 marks] Perform the multiplication of the following 5-bit signed twos complement integers using Booth’s Algorithm. 10101 x 11010
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Q3 Solution - Name: _ Student Number: _ Trent University...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online