Unit 1 SS
Unit 1 SS
INTRODUCTION TO
SYSTEM PROGRAMMING
Software
• Software collection of programs used to perform a task. This is in
contrast to physical hardware from which the system is built and
actually performs the work.
• Types of Software:
1. System software.
2. Application software.
System Software
• System software is a computer software designed to operate the
computer hardware and provides and maintains a platform for
running application software.
(or)
• System software is a mediator or bridge between user and
hardware.
1) Assemblers.
2) Loaders.
3) Macros.
4) Compilers.
5) Operating system (OS).
1) Assemblers: It translates assembly level language into a machine
language. Mnemonics code is used for translation purpose. Assembly
language code is more often used with 8-bit processors.
Object program for SIC can be properly executed on SIX/XE which is known
as upward compatibility.
SIC Machine Architecture/Components:
1. Memory:
Memory is byte addressable that is words are addressed by location of their lowest
numbered byte.
There are 2^15 bytes in computer memory (1 byte = 8 bits)
3 consecutive byte = 1 word (24 bits = 1 word)
2. Registers:
There are 5 registers in SIC. Every register has an address associated with it known as register
number. Size of each register is 3 bytes. On basis of register size, integer size is dependent.
I. A (Accumulator-0) : It is used for mathematical operations.
II. X (Index Register-1) : It is used for addressing.
III. L (Linkage Register-2) : It stores the return address of instruction in case of sub routines.
IV. PC (Program Counter-8) : It holds the address of next instruction to be executed.
V. SW (Status Word-9) : It contains the variety of information
Status Word Register
4. Instruction-Format:
1. Memory:
Memory consists of 8 bit-bytes and the memory size is 1 megabyte (2 20
bytes). Standard SIC memory size is very small.
This change in the memory size leads to change in the instruction formats
as well as addressing modes.
3 consecutive bytes form a word (24 bits) in SIC/XE architecture.
2. Registers:
It contain 9 registers (5 SIC registers + 4 additional registers). Four additional
registers are: Mnemonics Use of Register
•B Base register
•S General working register
• T General working register
• F Floating-point accumulator
3. Data Formats:
• Integers are represented by Binary numbers.
• Characters are represented using ASCII codes.
• Floating points are represented using 48-bits.
4. Instruction formats:
In SIC/XE architecture there are 4 types of formats available. The Bit(e) is
used to distinguish between Formats 3 and Formats 4,
e=0 means Format 3 and e=1 means Format 4
5. Addressing-Modes:
To use Format 3 use of Base register and Program counter is there.
Mode Indication Target Address (TA)
Base relative b=1, p=0 TA=(B) + displacement
Program-counter b=0, p=1 TA=(PC) + displacement
relative
Instructions such as
SIO
TIO
HIO
are used to start, test, and halt the operation I/O channels.