{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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 + 1 0000 0000 0000 1001 = 9 Therefore 0xFFF7 = - 9

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 ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern