Why? Also, I see you're clearing a VGA index, unless it's named wrong, is this OS code? If so, please for the love of God plan things better. (stuff like this is usually an indicator of even worse things elsewhere) My last 2 OS projects completely flopped because the code was getting more and more messy. OS development needs a lot of planning to make anything more than displaying text on a screen work.
Ah, that's fine then. Do you have any projects that you're currently working on that are intended to actually function? Or did you just try it once and not do anything afterwards? (also, shameless self plug in case you want to look at a slightly better organized and planned (although very incomplete) OS: https://github.com/ThatCodingGuy86/UnnamedOS-V2)
I would end up naming it something I would be very embarrassed by a couple years down the line, or I would end up naming it too similar to an existing project and get the repo taken down.
It's genuinely annoying, for some reason the OSDev wiki page link on it completely doesn't describe how you're supposed to structure a few of the data structures. I've been literally guessing how you're supposed to structure a few of the arrays from staring at the example code for way too long.
It actually is not as hard as you might think. The source code is only a few kilobytes in size. Here is the source code if you wanna take a look: https://github.com/SoftJSK/antique
If you do, here's a wiki (and forum!) that'll help you out a lot: https://wiki.osdev.org
And please don't start with BIOS. Start with UEFI, it's much simpler to use (no low level ASM calls from C) and works on modern hardware so you can test it on your own machine.
It's not as hard as people make it out to be. It's taken me a year or so of stupidity to write an OS that has the ability to load programs and all sorts of fun stuff (Not complete and whatever but it's something): https://github.com/MandelbrotOS/MandelbrotOS
It doesn't actually take much to have something you can justify calling an OS: task switching, message passing, interrupt handling, basic memory management.
62
u/CaydendW May 25 '22
Much better way to do VGA clearing and whatever. C standard functions are your friends. If you need a simple memset in C:
160
u/Furry_69 May 25 '22
Why? Also, I see you're clearing a VGA index, unless it's named wrong, is this OS code? If so, please for the love of God plan things better. (stuff like this is usually an indicator of even worse things elsewhere) My last 2 OS projects completely flopped because the code was getting more and more messy. OS development needs a lot of planning to make anything more than displaying text on a screen work.
27
u/CrazeeeTony May 25 '22
It’s just captions for this video
https://youtu.be/uLeAot4Zrxo
53
u/BlackWarlow May 25 '22
that's some r/AAAAAAAAAAAAAAAAA material
30
u/ZaytsevCS May 25 '22
The guy is clearly happy when clearsAll
4
u/suppow May 26 '22
That is onomatopoeic code: it prints out exactly what I exclaim when reading it.
6
u/loradan May 25 '22
The Fonz approves this code 🤣🤣
3
u/MaxMan386 May 25 '22
r/AAAAAAAAAAAAAAAAA
5
u/UlyssesOddity May 25 '22
Open your mouth and say "AAAAAAAA..."
2
u/maksytka03 May 25 '22
r/AAAAAAAAAAAAAAAAA
1
u/No_Crow6726 Sep 25 '22
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!!!!