|
|
||
| 2. Virtual machine |
|
|
|
||
|
|
||
| 3. Suite of programs (System software) |
|
|
|
||
|
|
||
| 4. Types of System Software |
|
|
|
||
|
|
||
| 5. Two Examples |
|
|
|
||
|
|
||
| 6. The continuum of Programming Languages |
|
|
|
||
|
|
||
| 7. Assembler |
|
|
|
||
|
|
||
| 8. The Translation/Loading/Execution Process |
|
|
|
||
|
|
||
| 9. Assembly Language |
|
|
|
||
|
|
||
| 10. Assembly code |
|
|
|
||
|
|
||
| 11. Typical Assembly Language Instruction Set |
|
|
|
||
|
|
||||||||||||||||||||||||||||||||||||||
| 12. Example 1 |
|
|||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||
| 13. Example 2 |
|
|||||||||||||
|
||||||||||||||
1. Initial valuesR = 20 memory location 80 = 43 | |||
| Operation | Final Contents of Register R | Final Contents of Mem Loc 80 | Final Contents of Mem Loc 81 |
|---|---|---|---|
| a. LOAD 80 | 43 | 43 | 97 |
| b. STORE 81 | 20 | 43 | 20 |
| c. COMPARE 80 | 20 | 43 | 97 |
| (and the GT indicator goes ON) | |||
| d. ADD 81 | 117 | 43 | 97 |
| e. IN 80 | 20 | Whatever value is entered by the user | 97 |
| a. OUT 81 | 20 | 43 | 97 |
2. Initial values memory location 50 = 4 | |
| Operation | Final Contents of Register R |
|---|---|
| a. LOAD 50 | 4 |
| b. LOAD 4 | A copy of the contents of memory cell 4. |
| c. LOAD L | Because L is the equivalent to 50, this operation is equivalent to LOAD 50, which is the same as part (a). |
| d. LOAD L + 1 | A copy of the contents of memory cell 51. This operation means LOAD (L + 1), which is equivalents to LOAD 51. LOAD L + 1 does arithmetic on addresses, not contents. |