<aside>
<img src="/icons/help-alternate_gray.svg" alt="/icons/help-alternate_gray.svg" width="40px" /> From what I’ve seen, the midterm usually consists some iteration of the following:
- Multiple choice question about general knowledge of the stuff covered.
- An assembly instruction with a loop primitive with a fill in the blank and determine the program execution time given the $\text{E-clk}$.
- Provided the assembly program, fill in the stack address and content, and determine the contents inside the given register.
- A I/O device, interfacing with LEDs, where you either have to fill in the blanks or determine the characters.
- An ATD question, given an $n$-bit ADC, you either need to find the resolution or the specific voltage given the output code $k$.
- A table where you fill in the assembly instructions given the comments listed in the side. Then, determine the memory content at a given address.
I believe the HCS12 Instruction Set will be provided in the midterm.
</aside>
For the following sample questions, I will mostly use the F2012 midterm, as this is the one provided in the site. The answers are already provided, so this nothing more than just a guide on how to approach each question.
Program Execution Time
You will be given the $\text{E-clk}$ for each line and fill in the blanks. It usually consists of:
- Load instructions
- Push and pull instructions
- Loop primitive instructions
A sample question would be:

Stack Table
You will be given an assembly program with the instruction length for each one. It usually consists of:
- Load and store instructions
- Push and pull instructions
- Short branch instructions
A sample question would be:
