Q1: Convert to binary.
Q2: Convert to binary.
Q3: Convert to binary.
Q4: Convert to decimal.
Q5: Convert to decimal.
Q6: Convert to decimal.
Q7: Convert to hexadecimal.
Q8: Convert to hexadecimal.
Q9: Convert to hexadecimal.
Q10: Rewrite in positional notation.
Q11: Rewrite in positional notation.
Q12: Rewrite in positional notation.
Q13: Rewrite in positional notation.
Q14: How many bits do you need to represent values?
Q15: What is the biggest number you can represent with bits?
Q16: What is the smallest addressable unit of information?
Q17: What is a byte?
Q18: What is a word?
Notes: Binary Operations (CS2640)
Q19: What happens to a binary number when you shift left bits?
Q20: What is the difference between logical and arithmetic shift?
Q21: Which shift should you use to divide a integer?
Q22: What are the steps to converting an unsigned binary number to two’s complement?
NOT to every bit.Q23: Find the 8-bit two’s complement of
Q24: Find the 8-bit two’s complement of
Q25: Convert the two’s complement bit pattern to decimal:
Q26: Convert the two’s complement bit pattern to decimal:
Q27: Perform using binary addition.
Q28: Perform using binary addition and twos complement.
Q29: Which is NOT a main functional unit of the CPU?
Q30: During the execution of a program, what is the primary function of the PC (Program Counter)?
Q31: Which of the following statements best describes the von Neumann architecture?
Q32: What are the three phases of the execution cycle in the CPU? What registers are used in each phase?
Q33: What are three factors affecting performance?
Q34: What is a buffer?
Q35: What do RISC and CISC stand for?
Q36: What are the basic functional units of a computer?
Q37: List the three busses.
Q38: How much memory can a CPU with n address lines hold?
Q39: How much memory can a 32-bit CPU hold?
Notes: MIPS Architecture (CS2640)
Notes: ISA (CS2640)
Notes: MIPS Assembly (CS2640)
Q39: Fill in the memory accesses needed for the following instructions:
| Instruction | Operands | Data Count | Instruction Count |
|---|---|---|---|
| ADD | M3,M2,M1 | ||
| ADD | R1,R2,R3 | ||
| Instruction | Operands | Data Count | Instruction Count |
|---|---|---|---|
| ADD | M3,M2,M1 | 3 | 4 |
| ADD | R1,R2,R3 | 0 | 1 |
| 3 | 5 |
Q40: Instruction Set Architecture is __
Q41: Why do we use assembly language?
Q42: What are the parts/fields in a machine instruction?
Q43: What are the different types of MIPS instruction formats? What field do they all share?
Q44: What is an assembler directive?
Tells the assembler where in memory to place thing.
.text tells assembler that we are giving it instructions (below 0x400000 in MIPS)Q45: Which is the following is NOT a pseudo-instruction?
li $t1, 0li $ao, hellomove $to, $t1addi $t0, $t1, 0addi $t0, $t1, 0Q46: translate the following pseudocode to assembly. c and f are memory locations.
c=5*(f-32)/9
lw $t0, f
sub $t0, $t0, 32
mul $t0, $t0, 5
div $t0, $t0, 9
sw $t0, c