n301/System Software n301.tplt System Software Provides interface between user and "naked machine" Should give Virtual machine System software is SW, not HW Virtual machine is what we wish it looked like An intermediary between the hardware and the usr Is set of SW services created for the user Suite of programs (System software) Operating system Translators Memory managers Schedulers Utilities Types of System Software Two Examples Assembler Operating system The continuum of Programming Languages Assembler Assembly language Assembler (translator Machine specific code The Translation/Loading/Execution Process Assembly Language Features Solves many of the shortcomings of machine language Assembly code Instruction format: Our assembly language Typical Assembly Language Instruction Set Figure 6.5 Example 1
1. Initial valuesR = 20 memory location 80 = 43
memory location 81 = 97
OperationFinal Contents of Register RFinal Contents of Mem Loc 80Final Contents of Mem Loc 81
a. LOAD 80434397
b. STORE 81204320
c. COMPARE 80204397
(and the GT indicator goes ON)
d. ADD 811174397
e. IN 8020Whatever value is entered by the user97
a. OUT 81204397
Example 2
2. Initial values memory location 50 = 4
OperationFinal Contents
of Register R
a. LOAD 504
b. LOAD 4A copy of the contents of memory cell 4.
c. LOAD LBecause L is the equivalent to 50, this operation is equivalent to LOAD 50, which is
the same as part (a).
d. LOAD L + 1A 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.