SS Chapter 01 Introduction To A Machine Architecture
SS Chapter 01 Introduction To A Machine Architecture
1) Application Software
2) System Software
System Software:
Definition
• System software consists of a variety of programs that support the operation of a
computer .
• To study “behind the scene”
System Software vs. Machine Architecture
• One characteristic in which most system software differ from is machine dependency
• e.g. assembler translate mnemonic instructions into machine code
• e.g. compilers must generate machine language code
• e.g. operating systems are directly concerned with the management of nearly all of the
resources of a computing system
• There are some aspects of system software that do not directly depend upon the type
of computing system
• e.g. general design and logic of an assembler
• e.g. code optimization techniques
Simplified Instructional Computer (SIC)
• Write Data WD
• Data is sent to output device specified by the memory.
SIC Machine Architecture
• Input and Output
• TIX
• Increments the content of X and compares its content with
memory
• Depending on the result the conditional flags are updated
if (X) < (m) then CC = ‘<‘
if (X) = (m) then CC = ‘=‘
if (X) > (m) then CC = ‘>‘
SIC/XE Machine Architecture
• Memory
• Memory structure is same as that for SIC.
• 220 bytes in the computer memory.
• This increase leads to a change in instruction format and
addressing modes.
SIC/XE Machine Architecture
• More Registers
• frac: 0~1
• exp: 0~2047
• S(0=+ve , 1=-ve)
The absolute value of the number is frac*2(exp-1024)
SIC/XE Machine Architecture
• Instruction Formats
• The instruction format of SIC/XE is modified to suit the
changes made in the hardware such as:
• Enhancing the number of address lines
• Increasing the number of registers
• Providing floating point accumulator
SIC/XE Machine Architecture
• Instruction Formats
Formats 1 and 2 are instructions that do not reference memory at all
8
Format 1 (1 byte) op
8 4 4
Format 2 (2 bytes) op r1 r2
6 1 1 1 1 1 1 12
Format 3 (3 bytes) op n i x b p e displacement
6 1 1 1 1 1 1 20
Format 4 (4 bytes) op n i x b p e address
SIC/XE Machine Architecture
• The Format 3 and Format 4 instructions have 6 flag bits:-
n – indirect addressing
I – immediate addressing
x – indexed addressing
b – base relative
p – PC relative
e – (0 – Format 3 1 – Format 4)
SIC/XE Machine Architecture
• Addressing modes
Base relative (n=1, i=1, b=1, p=0)
Program-counter relative (n=1, i=1, b=0, p=1)
Direct (n=1, i=1, b=0, p=0)
Immediate (n=0, i=1, x=0)
Indirect (n=1, i=0, x=0)
Indexing (both n & i = 0 or 1, x=1)
Extended (e=1)
SIC/XE Machine Architecture
Base Relative Addressing Mode (STCH BUF,X)
n i x b p e
opcode 1 1 1 0 disp
PC Relative Addressing Mode (J Next)(-ve=2’s comp
n i x b p e
opcode 1 1 0 1 disp
n i x b p e
opcode 1 1 1 0 0 disp
n i x b p e
opcode 0 1 0 disp
Indirect Addressing Mode (ADD @2000)
n i x b p e
opcode 1 0 0 disp
n i x b p e
opcode 0 0 disp
n i x b p e
opcode 1 1 disp
GAMMA[I]=ALPHA[I]+BETA[I]
I=0 to 100
SIC/XE Programming Example (Fig 1.5b)
SIC Programming Example (Fig 1.6)
to read 1 byte of data from device F1 and copy it to device 05
SIC Programming Example (Fig 1.7a)
To read 100 bytes of record from an input device into memory
SIC/XE Programming Example (Fig 1.7b)
End of Chapter 01
Introduction to a Machine Architecture