We set everything up to continue our bootloader in C. We also learn about a lot of interesting stuff, the linking process, calling conventions, how to call C code from Assembly, how to call Assembly code from C, memory models and many others.
Patreon: https://www.patreon.com/nanobyte
Discord channel: https://discord.gg/RgHc5XrCEw
Source code: https://github.com/nanobyte-dev/nanobyte_os/tree/videos/part4
Tools:
- Open Watcom 2: https://github.com/open-watcom/open-watcom-v2
- Digital Mars: https://digitalmars.com/download/freecompiler.html
Documentation:
- OpenWatcom manuals (in installation directory)
- Calling conventions: https://en.wikipedia.org/wiki/X86_calling_conventions
- Ralf Brown's Interrupt List: http://www.ctyme.com/rbrown.htm
- INT10h, AX=0Eh: http://www.ctyme.com/intr/rb-0106.htm
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.