Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction
Definition
System software consists of a variety of programs that support
the operation of a computer
One characteristic in which most system software differ from
application software is machine dependency
Example:
e.g. when you took the first programming course
text editor, compiler, loader or linker, debugger
Memory
8-bit bytes
3 consecutive bytes form a word
215 bytes in the computer memory
Registers
Mnemonic Number Special use
A
Accumulator; used for arithmetic operations
0
X
Index register; used for addressing
1
L
Linkage register; JSUB
2
PC
Program counter
8
SW
Status word, including CC
9
Data Formats
Integers are stored as 24-bit binary numbers; 2s
complement representation is used for negative values
No floating-point hardware
Instruction Formats
opcode (8)
address (15)
Addressing Modes
Mode
Direct
Indexed
Indication
x=0
x=1
Instruction Set
load and store: LDA, LDX, STA, STX, etc.
integer arithmetic operations: ADD, SUB, MUL, DIV, etc.
All arithmetic operations involve register A and a word in memory,
with the result being left in the register
comparison: COMP
COMP compares the value in register A with a word in memory,
this instruction sets a condition code CC to indicate the result
(Fig 1.2)
Data movement
10
Arithmetic
Arithmetic operations are performed using register A, with the result
being left in register A
Looping (TIX)
(X)=(X)+1
compare with operand
set CC
11
Memory
220 bytes in the computer memory
More Registers
12
Data Formats
Floating-point data type: frac*2(exp-1024)
frac: 0~1
exp: 0~2047
s exponent (11)
fraction (36)
Instruction Formats
larger memory -> extend addressing capacity
Format 1
op(8)
Format 2
op(8)
r1(4)
r2(4)
Format 3
op(6)
e=0
n I x b p e
Format 4
op(6)
e=1
n I x b p e
disp(12)
address (20)
13
Addressing Modes
Mode
Indication
Base relative
b=1, p=0
Program-counter b=0, p=1
relative
Direct
Indexed
b=0, p=0
x=1
immediate addressing
indirect addressing
simple addressing
Indication
i=1, n=0
i=0, n=1
operand value
TA
(TA)
i=0, n=0
i=1, n=1
14
Instruction Set
Input/Output
SIO, TIO, HIO: start, test, halt the operation of I/O device
(Chap 6)
15
data movement
immediate addressing for SIC/XE
arithmetic
Looping (TIXR)
(X)=(X)+1
compare with register specified
set CC
16
(Fig 1.3)
(Fig 1.4)
(Fig 1.5)
(Fig 1.6)