We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [stack-pointer]

Anything related to stack-pointer operations. The stack pointer (SP) is a special purpose register found on most microprocessors or microprocessors cores (such as those inside microcontrollers or multicore CPUs) used to hold the address of the top of the hardware stack.

Filter by
Sorted by
Tagged with
2
votes
1answer
2k views

Main Stack Pointer(MSP) vs Process Stack Pointer(PSP)

I was reading the STM32 Programming manual and somewhere on "page 18 " i see these two kind of stack pointers. I always think that there is only ONE stack and therefore only ONE stack pointer to that ...
1
vote
3answers
874 views

Why is MSP430's Stack Poniter(SP) always alligned to even address?

While I was reading through the MSP430's User's guide, I came to know that its stack pointer is alligned to even address. (Read Pg.189 of http://www.ti.com/lit/ug/slau208m/slau208m.pdf) Why is it so ...
1
vote
1answer
1k views

What happens If the interrupt occurs during the execution of HALT instruction?

Consider the following program segment on a hypothetical processor . I have this question in my course CS201. Suppose this processor has 32 bits Load/Store operations, ALU operations is 16 bits and ...
0
votes
1answer
78 views

bootloaders “reset memory mapping”

im looking into bootloaders and how they work this picture from application note by atmel for their SAM series bootloader "AP-Note_AT04189" so Stack pointer and reset? Stack pointer is an address of ...
0
votes
1answer
325 views

Confusion on pop for recursive assembly code

I'm confused on what happens during POP. When POP LR happens does that change the PC to the location of ...
-3
votes
2answers
614 views

Manually storing the stack pointer rather than using push and pop (Assembly)

What will be the instruction sequence that implements PUSH R4? A: SUB SP, SP, #4 STR R4, [SP, #0] B: ...