cfenollosa_os-tutorial/04-bootsector-stack
2018-09-21 13:24:55 -05:00
..
boot_sect_stack.asm we _can_ access different locations in the stack. correct this comment, and add an example for clarity 2018-09-21 13:24:55 -05:00
README.md updated READMEs 2014-10-05 18:39:45 +02:00

Concepts you may want to Google beforehand: stack

Goal: Learn how to use the 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.