OS Project
Kai_Justice (202)

I made this OS a week or two ago and I've been adding on to it for a while, if you have any feedback or tips please tell me, I want to improve this as much as I can.

2020 Footnote: This is definitely not a OS looking back at this I probably should've at least looked at what an OS is.

You are viewing a single comment. View All
Foster_Bryant (100)

I might start making an actual operating system in C soon idk. It may take months or years but I also can't find any resources on how to add UI to the operating system, like for example how window10 shows the login page when you start ur computer

CSharpIsGud (643)

@Foster_Bryant You need C and Assembly, you cant find any resources on it because its incredibly difficult to do. First you need to fully grasp how pointers work and how memory is laid out, then if you want keyboard input, what an interrupt descriptor table is. And finally, assuming you find out how to write pixels to the screen(I haven't got there yet, still working on an IDT) you have to do all that manually too, including implementing logic for text input/buttons.

CSharpIsGud (643)

@Foster_Bryant Also here is an example, I have writing characters to the screen finished https://repl.it/@CSharpIsGud/RealOS

Foster_Bryant (100)

@CSharpIsGud how long have you been working on this also this is the error i got:
main.sh: line 16: bochs: command not found
exit status 127

CSharpIsGud (643)

@Foster_Bryant A day, and it cant run on repl.it
I tried an emulator but it would need graphical output and it doesn't run right on replit

Foster_Bryant (100)

@CSharpIsGud outside of repl.it does bash have to do with it? Also is there any videos you watched or anything? Thx I'm just starting with os developement ;-; and it's so confusing

CSharpIsGud (643)

@Foster_Bryant bash is just the shell lang unix uses, if you know how to use a terminal then you know how to use bash. I just used it in order to chain the commands to compile and run the emulator.
You shouldn't be doing os dev until you fully understand the following:
Advanced C or C++:
Meaning you know what bitwise operations are;
Understand pointers and structs;
And finally, you can do things such as splitting 'strings' yourself,
you don't get a standard library when your the OS.
At least basic understanding of assembly and how memory is laid out.

Foster_Bryant (100)

@CSharpIsGud I was hoping I would be able to use C++ instead of C lol also where did u learn this stuff

CSharpIsGud (643)

@Foster_Bryant mostly google also it doesn't really matter whether you use C++ or C unless you want classes, you don't get the C or C++ lib

Foster_Bryant (100)

what do u mean by u don't get the c or c++ [email protected]

CSharpIsGud (643)

@Foster_Bryant You can't do #include <iostream> or any of that, you have to do it all yourself, which means you create your own standard libs

Foster_Bryant (100)

@CSharpIsGud bruh this is so complicated ;-;

CSharpIsGud (643)

@Foster_Bryant the whole point of an operating system is to provide utilities for the applications to use. if there was a library for creating the OS itself there would be many more of them

Foster_Bryant (100)

@CSharpIsGud Ik but how would I recreate iostream wtf

CSharpIsGud (643)

@Foster_Bryant You don't, you just don't use them.