0% found this document useful (0 votes)
39 views14 pages

Sap 3

The document discusses the stack and stack pointer of the SAP-3 computer. The stack is a portion of memory used for saving return addresses. When a function is called, the return address is automatically saved onto the stack. The stack pointer registers points to the top of the stack and increments or decrements as items are pushed onto or popped off the stack.

Uploaded by

Shahariar Jubair
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views14 pages

Sap 3

The document discusses the stack and stack pointer of the SAP-3 computer. The stack is a portion of memory used for saving return addresses. When a function is called, the return address is automatically saved onto the stack. The stack pointer registers points to the top of the stack and increments or decrements as items are pushed onto or popped off the stack.

Uploaded by

Shahariar Jubair
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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