WWW - Iiu.edu - PK: Monday, May 20, 2019
WWW - Iiu.edu - PK: Monday, May 20, 2019
SAP-1
Block Diagram
Simple-As-Possible.
One output device with 8 LEDs
16 bytes of read only memory.
5 instructions
3 with 1 operand,
2 with implicit operands.
Accumulator Architecture
Accumulator, Out Register,
B Register, Memory Address Register (MAR)
Instruction Register (IR).
T6 T5 T4 T3 T2 T1
CON CP EP L M CE L I E I L A EA SU EU L B LO
= 1 0 1 1 1 1 1 0 0 0 1 1
= B E 3
CON CP EP L M CE L I E I L A EA SU EU L B LO
= 0 0 1 0 0 1 1 0 0 0 1 1
= 2 6 3
The next three states (T4, T5, and T6) are the execution
cycle of SAP-1.
The register transfers during the execution cycle
depend on the particular instruction being executed.
For instance. LDA 9H requires different register
transfers than ADD BH.
What follows are the control routines for different
SAP-1 instructions.
SAP-1
Simulation
0000 1000
of Program
1111
0001 1111
0000
1110 1001
0101
1010
0011
LDA 9H
ADD AH 1010
1001
OUT
0000
0001
1110
1111
HLT
08
Computer
www.iiu.edu.pk Halted
Monday, May 20, 2019
www.iiu.edu.pk 51 Monday, May 20, 2019