(Section 001, Fall 2007)
The questions carry equal weight. Please show the computations leading to the result. Show all your work for full credit!
operation code | action |
001 xxx | load the value from memory address xxx into AC |
010 xxx | store the value of AC into memory location xxx |
011 xxx | add the value of memory location xxx to AC |
110 xxx | jump to memory location xxx |
111 000 | halt execution |
Let the content of the memory be:
address | content |
000 | 001 110 |
001 | 011 111 |
010 | 010 101 |
011 | 111 000 |
100 | 010 000 |
101 | 000 000 |
110 | 000 011 |
111 | 000 100 |