80 likes | 210 Views
ECE 265. Midterm Review. Administrivia. The grade for quiz 3 was not entered into to Carmen before I handed them back. I realize that the only fair way to handle this is … A proposal
E N D
ECE265 ECE 265 Midterm Review
Administrivia • The grade for quiz 3 was not entered into to Carmen before I handed them back. • I realize that the only fair way to handle this is … • A proposal • If you want your grade on quiz 3 to be included give it back to me. If you don’t wish to use it, you will simply have one less quiz. Of the quizzes you do have the low will still be dropped. ECE265
Midterm Review Overview • What is on the exam • Material up through the end of lecture 8 • Quiz review – as some questions on exam will be much like what was on quiz 3 and 4. • Quick highlights of the lectures • High level architectural questions such as how many ports, timers, etc. • Addressing modes – how is the effective address of the operand determined • The assembler instructions and their action. ECE265
Topics Covered • The 68HC11 architecture • Programmers Model • Addressing Modes • Basic Instructions • Short pieces of code ECE265
Know how to do this • Write a program to add the contents to location $C000 and location $C001. If overflow did not occur store the results at $C001. If overflow did occur, store a value of $FF at location $C001. ECE265
The start • Write a program to add the contents to location $C000 and location $C001. If overflow did not occur store the results at $C001. If overflow did occur store a value of $FF at location $C001. • LDAA $C000 Load one value into A • ADDA $C001 Add the second location ECE265
The branch • Write a program to add the contents to location $C000 and location $C001. If overflow did not occur store the results at $C001. If overflow did occur store a value of $FF at location $C001. • LDAA $C000 Load one value into A • ADDA $C001 Add the second location • BVC STORE Branch if overflow=0 • LDAA #$FF V=1 so load $FF • STORE STAA $C001 ECE265
Assignment • Study for the exam. • Look over the lecture slides. • Go over the quizes • Review the homework problems. ECE265