fall2001-exam1-a-soln

fall2001-exam1-a-soln - ECE 206-001 NC State University...

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

View Full Document Right Arrow Icon
ECE 206-001 Name:____________________________________________ NC State University Exam 1(A): 20 September 2001 1 1. (12 points) Fill in the missing representations for the following numbers. You must show your work to get full credit. decimal 8-bit two’s complement 8-bit sign-magnitude 8-bit one’s complement (a) -87 10101001 11010111 10101000 (b) -21 11101011 10010101 11101010 (c) 77 01001101 01001101 01001101 n2 n 01 12 24 38 4 16 5 32 6 64 7 128 8 256 9 512 10 1024
Background image of page 1

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

View Full DocumentRight Arrow Icon
ECE 206-001 Name:____________________________________________ NC State University Exam 1(A): 20 September 2001 2 2. (12 points) Perform the following operations using 6-bit two’s complement arithmetic. For each problem, circle whether overflow occurred or not. (a) 010111 Overflow? YES NO + 001011 100010 (b) 111110 Overflow? YES NO + 101100 101010 (c) 010000 Overflow? YES NO - 010001 010000 + 101111 111111 (d) 101101 Overflow? YES NO - 010011 101101 + 101101 011010
Background image of page 2
ECE 206-001 Name:____________________________________________ NC State University Exam 1(A): 20 September 2001 3 3. (16 points) For each of the following LC-2 instructions, tell whether it’s an operate , data movement , or control instruction. Give another example of the same class of instruction. Instruction Classification Another Example LD __ data movement _______ _ ST, STI, STR, LDI, LDR, LEA _ AND __ operate _____________ _ ADD, NOT _________________ BR __ control _____________ _ JMP, JMPR, RET, RTI, TRAP __ ST __ data movement _______ _ LD, LDI, LDR, STI, STR, LEA _
Background image of page 3

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

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

Page1 / 8

fall2001-exam1-a-soln - ECE 206-001 NC State University...

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

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