Simple As Possible Computer (SAP-1) : Md. Iftekharul Islam Sakib Lecturer, CSE, BUET
Simple As Possible Computer (SAP-1) : Md. Iftekharul Islam Sakib Lecturer, CSE, BUET
Simple As Possible Computer (SAP-1) : Md. Iftekharul Islam Sakib Lecturer, CSE, BUET
(SAP-1)
1
SAP-1
Block Diagram
SAP1 Architecture
⚫ Simple-As-Possible.
⚫ One output device with 8 LEDs
⚫ 16 bytes of RAM
⚫ 5 instructions
⚪ 3 with 1 operand,
⚫ Accumulator Architecture
⚪ Accumulator, Out Register,
⚪ B Register, Memory Address Register (MAR)
⚪ Instruction Register (IR).
16
= 0 1 0 1 1 1 1 0 0 0 1 1
= 5 E 3
= 1 0 1 1 1 1 1 0 0 0 1 1
= B E 3
= 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
0000 1000
Simulation
of Program
LDA 9H 1111
0001 1111
0000
1110 1001
0101
1010
0011
ADD AH 1010
1001
OUT
0000
0001
1110
1111
HLT 08
Computer Halted T321654
Saturday, June 30, 2018
54
Acknowledgement:
Engr. Rashid Farid Chishti
Lecturer, Faculty of Engineering &
Technology
International Islamic university
Islamabad.
Mobile: 0321 5300 497
E-mail: [email protected]