# 1 Second Midterm TestIndex

• The Second Midterm Test date is posted on the Course Home Page.
• The Second Midterm covers material on Assignments 01 through 08 inclusive and Week Notes 01 through 07 inclusive.
• For full mark credit, read the Test Instructions for important directions on how to enter your answers on the mark-sense forms.

# 2 Lecture Notes for This WeekIndex

## 2.2 From Blackboard Course DocumentsIndex

These documents have restricted distribution and cannot be put on the Course Home Page.

• None

## 2.4 From the Classroom Whiteboard/ChalkboardIndex

• Your in-class notes go here.

• What you might need is a Binary Watch - see image.

• bitwise operators: `AND OR XOR NOT` -> `& | ^ ~`
• for any values a and b, explain what happens after the following two XOR operations (e.g. try a=5,b=10 and see what happens):
• `a = a^b`
• `a = a^b`
• for any values a and b, explain what happens after the following three XOR operations (e.g. try a=5,b=10 and see what happens):
• `a = a^b`
• `b = a^b`
• `a = a^b`
• The LMC (continued)
• see the Class Notes, above
• review: instruction cycle (remember the Increment!)
• instructions that fail if the Increment is done third instead of second: JMP and CALL
• how the JMP and SKZ instructions work with the Counter
• use of labels instead of mailbox numbers in writing assembly language
``````Author:
| Ian! D. Allen  -  idallen@idallen.ca  -  Ottawa, Ontario, Canada
| College professor (Free/Libre GNU+Linux) at: http://teaching.idallen.com/
| Defend digital freedom:  http://eff.org/  and have fun:  http://fools.ca/``````

Plain Text - plain text version of this page in Pandoc Markdown format

Author Ian! D. Allen