Ep 081: Introduction to the Stack Pointer

  Рет қаралды 55,345

Intermation

Intermation

Күн бұрын

Пікірлер: 26
@chunsikkthepotato
@chunsikkthepotato 3 жыл бұрын
This is literally THE BEST explaination for stack pointer. Cant believe that this qualified lecture's free.
@TheLeontheking
@TheLeontheking 3 жыл бұрын
Well, having Bruce Willis explain assembly language for sure is something not to miss!
@miguelalbuquerque9961
@miguelalbuquerque9961 4 жыл бұрын
Incredibly well explained. Was having a hard time finding a good explanation of this. Thank you
@Intermation
@Intermation 3 жыл бұрын
Glad it helped!
@halawallah95
@halawallah95 3 жыл бұрын
I haven't finished the video but I'm already loving it! Thank you!
@sayan3032
@sayan3032 3 жыл бұрын
he is really a good teacher.
@leander11
@leander11 3 жыл бұрын
Thank you! Lively explanation and very understandable!
@ybbetter2990
@ybbetter2990 3 жыл бұрын
Amazing video very helpful! Thanks for this
@Intermation
@Intermation 3 жыл бұрын
Glad it was helpful!
@goutamsingh5906
@goutamsingh5906 4 жыл бұрын
i loved the way you explained it
@Intermation
@Intermation 4 жыл бұрын
Thank you so much for your kind words!
@Bob-em6kn
@Bob-em6kn 3 жыл бұрын
great explanation. easy to understand
@xrafter
@xrafter 3 жыл бұрын
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 .
@steve9125
@steve9125 3 жыл бұрын
I found assembly very complex and that makes it interesting to me.
@anirudhmadri2628
@anirudhmadri2628 3 жыл бұрын
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?
@Intermation
@Intermation 3 жыл бұрын
Yes, it's just memory. Of course a number of mechanisms have been added by both hardware and the operating system to make it more secure, but push and pop are basically putting items on and taking items off the stack.
@eventidewatcher
@eventidewatcher 3 жыл бұрын
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??
@andrewbaum768
@andrewbaum768 3 жыл бұрын
how are you writeing backwords
@Intermation
@Intermation 3 жыл бұрын
Nope, it's all done by flipping the video in the video editor. Sorry to disappoint!
@TheLeontheking
@TheLeontheking 3 жыл бұрын
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?
@bimanroy8865
@bimanroy8865 3 жыл бұрын
How will I get the operand of POP ? You said "POP r1". But will stack remember the position of r1?
@Intermation
@Intermation 3 жыл бұрын
That's the key. The elements of the stack have no identification of where they came from. Your (assembly language) code is responsible for maintaining the correct order of pushes and pops.
@pyitheinkyaw8673
@pyitheinkyaw8673 3 жыл бұрын
Thanks sir, I have wrong idea about POP - op code, this make me correct. Btw what class is it. I would love to join.
@Sharath429
@Sharath429 3 жыл бұрын
A Stack pointer is ?: 1. Last element added to the stack or 2. Previous last element added to the stack
@goutamsingh5906
@goutamsingh5906 4 жыл бұрын
so we push the new data from top to bottom ?
@Intermation
@Intermation 4 жыл бұрын
It depends on how the architect designed the stack to operate. (In fact, some processors allow the programmer to decide!) From the programmer's point of view, however, you can push any registers in any order onto the stack. To restore those registers, you simply pop off in the opposite order that you pushed.
Ep 079: Basic CPU Architecture and Instruction Execution
20:17
Intermation
Рет қаралды 12 М.
Ep 082: How Functions use the Stack Pointer
8:57
Intermation
Рет қаралды 18 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Understanding Static, Stack, and Heap Memory Regions (Examples in C)
33:29
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
Introduction to Direct Memory Access (DMA)
20:33
Intermation
Рет қаралды 49 М.
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins (EzeeLinux)
Рет қаралды 2,3 МЛН
4. Assembly Language & Computer Architecture
1:17:35
MIT OpenCourseWare
Рет қаралды 733 М.
WHY IS THE HEAP SO SLOW?
17:53
Core Dumped
Рет қаралды 285 М.
Ep 083: Introduction to the Flags Register
14:02
Intermation
Рет қаралды 16 М.
Intro to Data Oriented Design for Games
52:35
Nic Barker
Рет қаралды 36 М.
What is a stack and how does it work? - 6502 part 5
24:25
Ben Eater
Рет қаралды 753 М.
Emulating a CPU in C++ (6502)
52:28
Dave Poo
Рет қаралды 1 МЛН
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН