Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Simple As Possible

Computer
(SAP-3)

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
CALL and RET of SAP-2
Ø When a CALL is
executed, the
contents of PC are
automatically saved
in memory locations
FFFE H & FFFF H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
SAP-2 Stack

Stack is a portion of
memory set assigned
primarily for saving
return address

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
The Stack of SPA-3

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

First in Last out


20FC H
20FD H
20FE H
SP
20FF H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

20FC H
20FD H
20FE H
SP
20FF H 00 H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

20FC H
20FD H
SP
20FE H
20FF H 00 H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

20FC H
20FD H
SP
20FE H 20 H
20FF H 00 H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

20FC H
SP
20FD H
20FE H 20 H
20FF H 00 H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

20FC H
20FD H
SP
20FE H 20 H
20FF H 00 H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

20FC H
20FD H
SP
20FE H
20FF H 00 H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

20FC H
20FD H
20FE H
SP
20FF H 00 H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Stack Pointer

20FC H
20FD H
20FE H
SP
20FF H

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET
Thank You

S. M. Raiyan Chowdhury
June 10, 2023 CSE 442: Microprocessor and Interfacing Lecturer, EEE, EWU
Grad Student, EEE, BUET

You might also like