Md. Iftekharul Islam Sakib: Lecturer Cse, Buet
Md. Iftekharul Islam Sakib: Lecturer Cse, Buet
Md. Iftekharul Islam Sakib: Lecturer Cse, Buet
LOAD
CLK
Enable
BUS
Architecture
Bus W
Ack Encoder
Hexa A
8
8
In Port 1 8 8 ALU 2 Flag
8
Ready 0
8
Serial In
7 In Port 2 8 TEMP
PC 16
8 B
MAR 16 8 C
16
Memory
8
8 0
IR 8 Out Port 4 7
Serial Out
Ack
8
CON
Input port
Port 1 and Port 2
Port 1
• Hexadecimal keyboard encoder
• Sends ready signal to bit 0 of port 2 (indicates
the data in port 1 is valid)
Port 2
Serial In
Program Counter
16 bit address
LOW CLR’
MAR and MEMORY
16- bit address to MAR (From 0000H FFFFH)
0000 H
ROM
07FF H
0800 H
Same as SAP-1
ALU and Flags
• ALU: Includes both arithmetic and logical
operation
• 4 or more control bits for determining the
operation to be performed
Eg:
LDA 2000H
STA 8000H
MVI
MVI-Move Immediate
MVI A,37H
MVI A,byte
MVI B,byte
MVI c, byte
Register Instruction
MOV
MOV A,B
MOV A,C
MOV B,A
MOV B,C
MOV C,A
MOV C,B
Register Instruction
ADD and SUB
Eg ADD B /SUB B
ADD B
ADD C
SUB B
SUB C
Register Instruction
INR and DCR
INR A/DCR A
INR B/DCR B
INR C/DCR C
Jump And Call Instruction
JMP
JMP 3000H
JM (Jump if Minus)
JZ(Jump if zero)
JNZ(Jump if not zero)
Jump And Call Instruction
CALL
Subroutine ????
• Fetch 3 T-States
• Execution Different instruction requires
different # of T-States
• Ex: ADD B 4
• ANI byte 7
• CALL 18
• JM 10/7
Summary 1
Summary 2
Handshaking
Handshaking
Math-1
Math-1
Solution of Math-1
Math-2
Solution of Math-2
Thank you