Beruflich Dokumente
Kultur Dokumente
Professor Gwan-Hwan Hwang Dept. Computer Science and Information Engineering National Taiwan Normal University 9/17/2009
Outlines
1.1 Introduction 1.2 System Software and Machine Architecture p p (SIC) ) 1.3 The Simplified Instructional Computer (
SIC Machine Architecture SIC/XE Machine Architecture S C/ ac e c ec u e SIC Programming Examples
Introduction
Definition of System software
System software consists of a variety of programs that support the operation of a computer t
Examples
Text editor, compiler, loader or linker, debugger, macro processors, operating system, database management systems, software engineering tools, etc.
3
10
8 opcode
1 x
15 address
11
Subroutine linkage
JSUB, RSUB
14
15
17
Format 1 (1 b ) F byte)
Format 2 (2 bytes)
6 op 6 op
Mode Base relative Program-counter relative
1 11111
n i x b p e Format 4 (5 bytes)
12 disp 20 address
Target address calculation TA=(B)+disp (0disp 4095) TA=(PC)+disp (-2048disp 2047)
19
1 11111
n i x b p e Indication b=1,p=0 b=1 p=0 b=0,p=1 p
20
21
23
Figure 1.3
Sample arithmetic operations
Figure 1.4
Sample looping and indexing operations
Figure 1.5
Sample looping and indexing operations
Figure 1.6
I/O
Figure 1.7
Subroutine call
24
25
26
27
28
29
30