mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 20:34:36 +03:00
lesson 4, manipulating the stack
This commit is contained in:
13
04-bootsector-stack/README.md
Normal file
13
04-bootsector-stack/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
*Concepts you may want to Google beforehand:stack*
|
||||
|
||||
The usage of the stack is important, so we'll write yet another boot sector
|
||||
with an example.
|
||||
|
||||
Remember that the `bp` register stores the base address (i.e. bottom) of the stack,
|
||||
and `sp` stores the top, and that the stack grows downwards from `bp` (i.e. `sp` gets
|
||||
decremented)
|
||||
|
||||
This lesson is quite straightforward, so jump ahead to the code.
|
||||
|
||||
I suggest that you try accessing in-stack memory addresses by yourself,
|
||||
at different points in the code, and see what happens.
|
||||
Reference in New Issue
Block a user