answersLogoWhite

0


Best Answer

The stack pointer keeps track of the top of the stack used by the current thread. The program counter keeps track of the next instruction in a program. Both are registers and both store a memory address.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Simegn Mekbib

Lvl 2
2y ago

Program counter stores the address of the next instruction to be executed..Stack pointer stores the address of the last program request in the stack

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Program counter stores the address of the next instruction to be executed..Stack pointer stores the address of the last program request in the stack

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between stack pointer and program counter?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is difference between stack pointer and program counter?

Both of them are pointers, but otherwise they are completely unrelated. The former points to the current position of the stack, the latter points to the current instruction of the program.


Difference between program counter and instruction pointer?

There isn't any difference. Two different words forexactly same thing. Third way to call it is instruction address register.


What is program counter?

Synonym for Instruction Pointer.


Function of a program counter?

Program Counter is just a synonim for Instruction Pointer.


Purpose of program counter in a microprocessor is?

In 8085 program counter stores the address of the next instruction which is to be fecthed.same function is performed by instruction pointer in 8086.


What is the difference between the instruction location counter and the program counter?

The Instruction Location Counter is a variable inside of the assembler. While the Program Counter is a register. The PC solely keeps track of the next instruction in a program, ILC increments by each instruction's operand length.


Why are programme counter and stack pointer register 16 bit registers?

The program counter (PC) and stack pointer (SP) registers are 16-bit registers in the 8085 and in the 8086/8088 because that is how Intel designed the processors.


Which CPU register holds address for memory?

The program counter (PC) and the stack pointer (SP).


Main difference between 8085 and 8086?

The most significant difference between the Intel 8085 and 8086 microprocessors is that the 8085 is an 8-bit system and the 8086 is a 16-bit system. This difference allows the 8086 system to have a much larger set of operational instructions and can make calculations to more significant places. Note: the 8085 processor does have two 16-bit registers. The pointer and the program counter.


What is the difference bw function pointer and function of pointer?

function pointer is a variable that hold the address of any function which declared in the program but function pointer is the array of the function that accept the run time size of the function.


Why program counter and stack pointer is 16- bit?

Because that's how Intel designed it. Even though the 8085 is an 8-bit computer, the program counter and stack pointer are 16 bits wide in order to support the address bus, which is also 16 bits wide. In the case of the 8086/8088, the program counter and stack pointer are still 16 bits wide, even though the address bus is 20 bits wide, because the 8086/8088 adds segmentation through the 16 bit segment register which is left shifted by 4.


Why you call programmcounter stack pointer as special purpose resistors?

The Program Counter and Stack Pointer registers are called special purpose registers because they can not be used arbitrarily; they are, well, special. You cannot, for instance, load a new value into the Program Counter and blithely continue, that action would cause an unconditional jump. Also, the Program Counter is automatically incremented by the size of the instruction, so you can not just put something in it and expect its value to persist. Similarly, you cannot load a new value into the Stack Pointer without losing the entire stack context that you are in.