English, asked by dasmona1997, 1 year ago

Function of stack pointer and program counter

Answers

Answered by shivams2212
3

Stack pointer is a small register that is used to store the address of last program accessed by stack, The Stack is a Last In First Out (LIFO) memory. Data is placed onto the Stack with a PUSH instruction and removed with a POP instruction..

A program counter is a register in a computer processor that contains the address (location) of the instruction being executed at the current time. As each instruction gets fetched, the program counter increases its stored value by 1..

hope it will help you....

if so please mark it as brainliest that would be a great help...


shivams2212: thank you for the brainliest mark...
Answered by Annesha672
5

A stack pointer is a small register that stores the address of the last program request on a stack. A stack is a specialized buffer which stores data from the top down. As new requests come in, they "push down" the older ones.

A program counter is a register in a computer processor that contains the address(location) of the instruction being executed at the current time. As each instruction gets fetched, the program counter increases its stored value by 1.


dasmona1997: Thank you
Annesha672: welcome
Similar questions