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

βˆ™ 9y ago
This answer is:
User Avatar
More answers
User Avatar

Simegn Mekbib

Lvl 2
βˆ™ 3y 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.


What component of the computer keeps track of the address in memory of the programming instruction being executed?

A stored-program computer at least needs to know which instruction it has to execute next. Other memory addresses of special significance are e.g. the top of one or more stacks, or addresses to be used by instructions.To keep track of such addresses, all CPUs have one or more registers; for instance the address of the next instruction is stored in the instruction pointer, a.k.a. program counter. Which and how many registers of a CPU are designated to keep addresses depends on the CPU type. The Z80 for instance has a program counter, a stack pointer, two index registers and an indirect address register doubling as 16 bit accumulator, while the contemporay 6502 only has a program counter and a stack pointer.