Sic, Sic/Xe: Jian-hua Yeh (葉建華) 真理大學資訊科學系助理教授
Sic, Sic/Xe: Jian-hua Yeh (葉建華) 真理大學資訊科學系助理教授
• SIC/XE
– Extended model
– Extend SIC standard functions
2
SIC Hardware Features
• Memory Structure
– 8-bits Byte
– 3-bytes Word
– Maximum Memory size: 215 = 32,768 bytes
– Byte address
– Word address: address the lowest byte among three
continuous bytes, i.e. the smallest byte address as word
address
• Register
– 5 registers
– Each register is one word long
3
SIC Registers
4
SIC Data/Instruction Format
• Data Format
– Integer: 24-bit binary number, 2’s complement
– Character: 8-bit ASCII codes
– No floating-point number
• Instruction Format
– Only one format: two types of addressing
5
SIC Instruction Format
• Addressing Mode
– Direct: TA = address of Instruction Format
– Indexed: TA = address + (X)
• Instruction Set
– Register’s Load & Store: LDA, STA,, LDX, STX, … .etc.
– Integer Arithmetic: ADD, SUB, MUL, DIV, … etc.
– Compare register A with a Word in memory: COMP
– Conditional Jump: JLT, JEQ, JGT, … etc.
– Subroutine Call and Return: JSUB and RSUB
• Input/Output
– One byte data transfer a time
– TD: Test Device
– RD: Read Data from Device
– WD: Write Data to Device
6
SIC/XE Hardware Feature
• Memory Structure
– Same as SIC
– Max. memory size is 220 = 1M bytes
• Registers:
– 5 registers are same as SIC
– 4 another register as following:
7
SIC/XE Data/Instruction Format
• Data Format
– Integer data type, Negative representation, Character data
type are same as SIC
– Floating-point data type: 48 bits, format is shown as
following:
8
SIC/XE Instruction Format
b. Format 1
8
O pco de
c. Format 2
8 4 4
O p co d e r1 r2
r 1 , r 2 : R e g is t e r n u m b e r
9
SIC/XE Instruction Format
d. Format 3
6 1 1 1 1 1 1 12
O p co d e n i x b p e d isp
e. Format 4
6 11 11 11 20
Opcode n i x b p e address
10
SIC/XE Instruction Format
6 1 1 1 1 1 1 12
O p co d e n i x b p e d isp
e: 0 format 3, 1 format 4
b: 使用base register
p: 使用program counter
x: 使用index register
i: 使用immediate mode # LDA #5
n: 使用indirect mode @ J @RETADR
disp: relative addressing
address: direct (simple) addressing
11
SIC/XE Instruction Format
6 1 1 1 1 1 1 12
O p co d e n i x b p e d isp
i n description
1 0 immediate addressing
0 1 indirect addressing
0 0 simple (direct) addressing standard type
1 1 simple (direct) addressing XE type
b p target address
1 0 TA=(B)+disp 目的地址為base register 的內容加
上disp
0 1 TA=(PC)+disp
0 0 TA=disp format 3
TA=address format 4
12
SIC/XE Instruction Set
• Instruction Set of SIC/XE
– All instructions present in SIC
– Another new instruction set includes
• New Register load and store operations: LDB, STS, … etc.
• Floating-point arithmetic: ADDF, SUBF, DIVF, MULF…
• Register to Register moving: RMO
• Register to register arithmetic: ADDR, SUBR, MULR, DIVR
• Supervisor Call: SVC
– Input/Output
• Using byte stream is same as SIC
• SIC/XE provides I/O instructions for I/O channel, they are SIO:
start I/O channel, TIO: Test I/O channel, and HIO: Halt I/O
channel
13
14