C85Test29FSol

# C85Test29FSol - University of Toronto at Scarborough CSC...

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

University of Toronto at Scarborough CSC C85 – Microprocessor Systems Term Test – Oct. 19, 2009 90 minutes – No programmable calculators, notes or similar aids allowed. NAME SOLUTIONS STUDENT NUMBER Notes: There are 6 questions for a total of 94 marks. There are a total of 9 pages including the cover page and tables. Answers are to be written in the space provided for each question. The backs of the pages can be used for rough work. Your answers should be concise and legible. Leave this table blank. 1 2 3 4 5 6 TOTAL

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

View Full Document
12 1. Find the two’s complement, one’s complement and sign magnitude representation of the following decimal numbers as 16 bit and 32 bit signed integers, in both binary and Hex: i) 1099 ii) –16805 1 mark for each value.
6 2. Express the following half word Hex number 0xFFF7 in decimal, first assuming it is a signed integer and then unsigned integer. How would your answer change if 0xFFF7 was a 32 bit word. Unsigned: 16 bits 0xFFF7 = 15*(16)^3 + 15*(16)^2 + 15*(16) + 7 = 15*4096 + 15*256 + 15*16 + 7 = 61440 + 3840 + 240 + 7 = 65527 2 marks Unsigned: 32 bits 0x0000FFF7 = 0 + 0 + 0 + 0 + 15*(16)^3 + 15*(16)^2 + 15*(16) + 7 = 15*4096 + 15*256 + 15*16 + 7 = 65527 1 mark Signed: 16 bits 0xFFF7 = 1111 1111 1111 0111 Take 2s complement to calculate magnitude: 1111 1111 1111 0111 0000 0000 0000 1000

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.

## This note was uploaded on 12/20/2010 for the course CSC CSCC85 taught by Professor Lorincz during the Spring '10 term at University of Toronto- Toronto.

### Page1 / 6

C85Test29FSol - University of Toronto at Scarborough CSC...

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

View Full Document
Ask a homework question - tutors are online