Debugging Program Loading | 32 bit OS Dev (in C)
Fixing loading and running programs (".bin" files), and fixing graphics modes with bits per pixel values less than 32bpp.
I'd like to allow position independent code, and may switch back to using it later. Using open(), running the program, and close() would be a lot nicer and more straightforward.
Notes:
- Probably could've at least halved the length on this one, from leaving in all the looking around for issues, but that gives another look at what I do off camera for debugging things. It's not efficient, and I should really use gdb/actual debugging if possible.
Next video:
- Refactors for system calls to return ints and remove inline assembly, and have the calculator take in quoted expressions as arguments.
OS Dev playlist:
https://www.youtube.com/playlist?list=PLT7NbkyNWaqajsw8Xh7SP9KJwjfpP8TNX
Git Repos:
Sourcehut: https://git.sr.ht/~queso_fuego/quesos
Github mirror: https://github.com/queso-fuego/amateuros
Repo state at the start of this video:
git clone -n https://github.com/queso-fuego/amateuros
cd amateuros
git checkout fa6a4a24bf72fc956d5a90d7faf385f4fe13eeb0
Join the Community Discord: https://discord.gg/yKm4T89QFn
Contact:
https://queso_fuego.srht.site/contact.html
- Let me know if there's anything specific you'd like to see!
Outline:
0:00 fixes since the last video
6:14 refactor loading & running programs and fail at debugging
38:04 back after debugging, load pgms the new old way
49:49 fixes for graphics modes
57:11 outro
Questions about setup/software/etc.?
Check the FAQ: https://queso_fuego.srht.site/about.html
Music credits:
New Road by Ghostrifter Official | https://soundcloud.com/ghostrifter-official
Creative Commons — Attribution-NoDerivs 3.0 Unported — CC BY-ND 3.0
Music promoted by https://www.chosic.com/free-music/all/
#nopieforme #kerneldev #cprogramming