
Finally Got My Very First CPU 🥹
Excited to see its performance in action! Love the looks of the chip itself too :D

Excited to see its performance in action! Love the looks of the chip itself too :D
I am so happy with this. I learned so much about how computers and hardware work and plan on continuing my little toy kernel for as long as possible.
Recently, I put a lot of effort into the project structure itself to keep it easily maintainable in the future and also started writing inline assembly in C which was a little difficult for me as the syntax was confusing in the beginning. We can literally write assembly code and later on just store it within a C program in some variable 🤯
The next step I think is to first enable paging with an identity mapping (I forgor) then worry about interrupts and a few simple drivers to finally have my own shell and/or my first text editor :D
It may not be much but im proud of it nonetheless. :D
This may seem silly but this is the most fun I’ve had in years! I feel like this was a big step for me and am now free from assemblies quirks and can use the mighty C language! Let’s see where this goes :)
I don’t really have a CS background so I’m proud to have built the starting point for beginning writing in my favorite language by jumping to for i686 compiled C code!
I had lots of trouble with the structure of the GDT as to why it’s organized in such a specific manner but that taught reading documentation I guess. (next to using asm)
Finally I also found that the cursor is not bound to the frame buffer itself in 32 bit mode so after switching cpu modes the text was displayed but the cursor was still where it was back in 16 bit mode.
For the curious: this is actually handled by a separate hardware controller
I’m in no rush so maybe in a few months I can show off handling the graphics and maybe a memory allocator here or a shell there who knows