Professional Documents
Culture Documents
1151CS105
UNIT 1
Introduction
(System Software and Machine Architecture)
Course Coordinator : Dr. J. Visumathi
Course Handling Faculty: Mr. N. K. Senthil kumar
IBM 15 LPA
THEORY
8.45 – 9.45 9.45 -10.45 10.45 - 11.45 11.45 - 12.45 1.45- 2.45 2.45- 3.45 3.45 - 4.45 4.45 - 5.45
Monday S5
Tuesday S5
Wednesday S3
Thursday S3 S5
Friday S3
CO
Course Outcomes K Level
Nos.
Distinguish different software into different categories and explain the
CO1 K2
architecture of SIC and SIC/XE
CO2 Translate the given mnemonic into object code K2
Illustrate how the object code is loaded into memory and
CO3 K2
linked with other object code
CO4 Summarize the macro definitions and its expansions K2
CO5 Explain features of modern editing /debugging tools. K2
System Software Vs. Application Software, Different System Software– Assembler, Linker,
Loader, Macro Processor, Text Editor, Debugger, Device Driver, Compiler, Interpreter,
Operating System(Basic Concepts only) SIC & SIC/XE Architecture, Addressing modes, SIC
& SIC/XE Instruction set, Assembler Directives and Programming.
UNIT II ASSEMBLERS L -
10
Basic Functions of Assembler. Assembler output format – Header,Text and End Records-
Assembler data structures, Two pass assembler algorithm, Hand assembly of SIC/XE program,
Machine dependent assembler features. Machine Independent assembler features – program
blocks, Control sections, Implementation example of MASM Assembler
Basic loader functions - Design of an Absolute Loader – A Simple Bootstrap Loader - Machine
dependent loader features - Relocation – Program Linking – Algorithm and Data Structures for
Linking Loader - Machine-independent loader features - Automatic Library Search – Loader
Options - Loader design options - Linkage Editors – Dynamic Linking.
Basic macro processor functions - Macro Definition and Expansion – Macro Processor
Algorithm and data structures - Machine-independent macro processor features -
Concatenation of Macro Parameters – Generation of Unique Labels – Conditional Macro
Expansion – Keyword Macro Parameters-Macro within Macro-Implementation example -
MASM Macro Processor.
Device drivers: Anatomy of a device driver, Character and block device drivers, General design
of device drivers Text Editors: Overview of Editing, User Interface, Editor Structure.
Debuggers -Debugging Functions and Capabilities, Relationship with other parts of the system,
Debugging Methods- By Induction, Deduction and Backtracking.
Delivery
Cognitive
Course Outcome methods
Level
CO1:Distinguish different software into different
categories and explain the architecture of SIC and SIC/XE Understand Chalk & Talk
CO2:Translate the given mnemonic into object code Chalk & Talk,
Understand
PBL
CO3:Illustrate how the object code is loaded into memory Chalk &
Understand
andlinked with other object code Talk,PBL
CO4:Summarize the macro definitions and its expansions Understand Chalk & Talk
CO5:Explain features of modern editing /debugging tools. Understand Chalk & Talk
07/11/20 MR. N K SENTHI KUMAR 15
Mapping of Course Outcomes with Program Outcomes and Student Outcomes
(Mention the program outcomes mapped to the course with levels : 1-Low,2-Medium,3-High)
Program Outcomes PO1 PO2 PO3 PO4 PO6 PO7 PO9 PO10 PO1
Correlates this
Course to program 1 2 1 2 1 2 2 1 1
outcomes: NBA
Example:
◦ e.g. when you took the first programming course
◦ text editor, compiler, loader or linker, debugger
◦ e.g. when you wrote assembler language
◦ assembler, macro processor
◦ e.g. you control all of these processes by interacting
with the operation system
Types of Software
• System Software
• Application Software
Loader
• Loads the program into Main memory for execution.
Linker
• Links sub programs together for execution.
Debuger
• Detects and locates error in program for correction.
Macroprocessor
• Which is used to expand the Macro, Macro is nothing but a set of
instruction defied under the single name.
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
Instruction Formats
opcode (8) x address (15)
Addressing Modes
Mode Indication Target address calculation
Direct x=0 TA=address
Indexed x=1 TA=address+(X)
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 1 0 0
More Registers
Format 4 e=1
op(6) n I x b p e address (20)
Input/Output
◦ SIO, TIO, HIO: start, test, halt the operation of I/O device (Chap 6)
LDA FIVE
STA ALPHA
LDCH CHARZ
STCH C1
.
ALPHA RESW 1
FIVE WORD 5
CHARZ BYTE C’Z’
C1 RESB 1
LDA ALPHA
ADD INCR
SUB ONE
STA BEETA
……..
……..
……..
……..
ONE WORD 1
ALPHA RESW 1
BEETA RESW 1
INCR RESW 1
LDA #5
STA ALPHA
LDA #90
STCH C1
.
.
ALPHA RESW 1
C1 RESB 1
Example 2(Arithmetic operations)
LDS INCR
LDA ALPHA
ADD S,A
SUB #1
STA BEETA
………….
…………..
ALPHA RESW 1
BEETA RESW 1
INCR RESW 1
• (‘N’)
• (‘k’)
• (37)10
• (FFC)16
• (-22)10
• (-4.7)10