Difference between revisions of "CSC270 Final Exam 2011"
Line 70: | Line 70: | ||
* The first thing that needs to be done is for the program controlling the data exchange to make our port an '''output port'''. This is done by writing a 1 at Address 8000: | * The first thing that needs to be done is for the program controlling the data exchange to make our port an '''output port'''. This is done by writing a 1 at Address 8000: | ||
− | + | LDAA #01 ; set output port in output mode | |
− | + | STAA 8000 ; set port as an output port | |
* Then, we we want to the output signal high, we execute this code: | * Then, we we want to the output signal high, we execute this code: | ||
− | + | LDAA #01 ; set the output signal high | |
− | + | STAA 9000 | |
* When we want to set the output signal low, we execute this code: | * When we want to set the output signal low, we execute this code: |
Revision as of 16:49, 25 April 2011
--D. Thiebaut 10:24, 13 April 2011 (EDT)
This final exam is take-home. It is open-books, open-notes, and open-Web. It is due a week after it is made available, at 4:00 p.m. on Wed. May 4, 2011.
You cannot discuss the details of this exam with anyone except your instructor. No question will be answered in person after 2:30 a.m. on 4/29/11. Instead, if you have questions regarding the exam, you are to send them via email to thiebaut@cs.smith.edu, and the question and its answer will be broadcast back to the hole class via email.
The exam is given under the rules of the Smith College Honor Code.
Make sure you reference all work/resources you use to answer the questions below.