Topics carried over from Exam 1
Everything! See the Exam 1 review.
More recent topics
- Finite state machines as in Homework 4
- Computer Science math for memories as in Homework 5
- Fixed and floating point representation as in Homework 5
- Control flow implementation as in Homework 6
- Pointers and expressions in C as in Homework 7
- MIPS32 instruction encoding as in Homework 8
- Implementing common C operators in MIPS32 as in Introduction to MIPS32 Assembly
- Implementing arrays and functions in C in MIPS32 as in Arrays and Functions with MIPS32 Assembly
- Using MPLAB X
The assembly programming questions on this exam will be fairly simple.
None will be more than a single
else with a one or two statement body.
Make sure all your program examples
exit at the end of the implemented statement.
Handy tables and reference sheets
Exams to review
Review the questions that are relevant to the exam topics. The most recent exams are the most relevant. All of the assembly programming languages examples prior to the Fall 2014 semester involved the PIC24 instruction set.
A few more things to get straight
- In C, any non-zero integer is
considered to be
trueand zero is considered to be
- The relational and logical operators return either 0 or 1.
- It doesn’t take many bits to address a memory location.
Vis an array of integers; to access
V[i]in MIP32 assembler, you need to do a multiplication by 4.
- Shift left two places to multiply by 4.
- The unary
*operators of C are used with pointers.
- You can subtract pointers in C if they point to elements of the same array.
- If the MIPS32 instruction starts with 000000, it’s a an R instruction.
- In MIPS32, arguments are passed in
$a3and values are returned in
- Check your answers.
- Explain your reasoning.