Ep 081: Introduction to the Stack Pointer

preview_player
Показать описание
For proper operation, applications require memory beyond that defined by the variables. This temporary memory, called the stack, is "pointed" to by a register called the stack pointer. This video presents some of the basics of stack pointer operation.

Take aways: At the completion of this lesson, each student should be able to:
• describe the operation of the stack and the stack pointer,
• describe how the assembly language instructions PUSH and POP are used, and
• explain the importance of maintaining the integrity of the stack pointer.

#stackpointer #stack #push #pop
Рекомендации по теме
Комментарии
Автор

This is literally THE BEST explaination for stack pointer. Cant believe that this qualified lecture's free.

chunsikkthepotato
Автор

Well, having Bruce Willis explain assembly language for sure is something not to miss!

TheLeontheking
Автор

Incredibly well explained.
Was having a hard time finding a good explanation of this.

Thank you

miguelalbuquerque
Автор

Thank you! Lively explanation and very understandable!

leander
Автор

I haven't finished the video but I'm already loving it! Thank you!

halawallah
Автор

When you use this stack pointer in function be sure pop everything from the stack before returning, cause the return instruction expect the return address to be in the top of the stack .

xrafter
Автор

Amazing video very helpful! Thanks for this

ybbetter
Автор

I found assembly very complex and that makes it interesting to me.

steve
Автор

Excellent video - really beyond what I expected for a YT video. Thanks very much, saved me on my final! Also...is this dude writing backwards for the camera??

eventidewatcher
Автор

good vid sir, , so basically stack is a certain set of memory locations right... and it may or maynot have values in it. so the stack pointer points to the top of the stack...and with that u can store or remove stuff from the stack using push or pop?

anirudhmadri
Автор

Thanks sir,
I have wrong idea about POP - op code, this make me correct. Btw what class is it. I would love to join.

pyitheinkyaw
Автор

Is the memory that the stack uses manually addressable? That is could I do sth. like `orr r4, sp` and then `str r5, [r4]`?
Is the stack-memory a system-defined thing completely separate from any heap-address-space, or can there be overlap?
Also, is the stack-pointer automatically initialized to sth. legit, or does the programmer have to care for this?

TheLeontheking
Автор

A Stack pointer is ?: 1. Last element added to the stack or 2. Previous last element added to the stack

Sharath
Автор

How will I get the operand of POP ? You said "POP r1". But will stack remember the position of r1?

bimanroy
Автор

so we push the new data from top to bottom ?

goutamsingh