This OS need to be compiled in a Linux/Mac distribution. If you are on Windows just use the myos.iso
file in a virtual machine.
First install the required programs using make install
on terminal.
Then compile the entire Operating System using make
. After compiling, the OS will start in qemu program.
Command | Description |
---|---|
fgcolor -hexcolor fgcolor -text |
Changes the foreground color of screen. Only one hexadecimal character is acceptec to change the color or a text with the name of color (check color table). Default: Light_Grey. |
bgcolor -hexcolor bgcolor -text |
Changes the background color of screen. Only one hexadecimal character is accepted to change the color or a text with the name of color (check color table). Default: Black. |
clear |
Clears the screen. |
info |
Shows the information about the developer and the version of OS. |
reboot |
Restart the OS. |
binary -text |
Print the corresponding binary value of each character of the string. |
octal -text |
Print the corresponding octal value of each character of the string. |
decimal -text |
Print the corresponding decimal value of each character of the string. |
hexa -text |
Print the corresponding hexadecimal value of each character of the string. |
div0 |
Test a 1/0 division. |
prog |
Display the program loaded on memory ("Hello World!"). |
Avaliable colors to change the foreground and background:
Color | Code |
---|---|
Black | 0 black |
Blue | 1 blue |
Green | 2 green |
Cyan | 3 cyan |
Red | 4 red |
Magenta | 5 magenta |
Brown | 6 brown |
Light Grey | 7 light grey |
Dark Grey | 8 dark grey |
Light Blue | 9 light blue |
Light Green | A a light green |
Light Cyan | B b light cyan |
Light Red | C c light red |
Light Magenta | D d light magenta |
Light Brown | E e light brown |
White | F f white |
Interrupt | Code | Handler |
---|---|---|
Division by 0 | 0 | Reboot |
Clock | 32 | Return |
I/O (keyboard) | 33 | Display key pressed in keyboard and stores the value in a buffer |
INT | 128 | Kernel syscall interruption |