mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
7d932d43b3
- Add a Pandoc defaults file - Add a Pandoc template based on the default one - Add chapter headers to each section ### Usage To use, install Pandoc and ConTeXt, then simply run `pandoc -d ./pandoc.yaml` from the repo root. ### Maintenance When new chapters get added, the `pandoc.yaml` will need to be updated to include each new chapter's markdown file(s). ### Miscellaneous Notes - The PDF generated complies with PDF/A 1b:2005 by default. - The PDF also contains the source markdown files as attachments - All links are fully functional! - Includes a table of contents! With links to each section! ### Conclusion Enjoy! |
||
---|---|---|
.. | ||
boot_sect_stack.asm | ||
README.md |
Bootsector: Stack
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.