Whats in this post?
- Background and Explanation of the code
- Download Code
Background and Explanation of the code
- Very basic graphics engine has been implemented (graphical boot screen and graphical login)
- Default font library has been made
- Routines to make new commands and accept them- done
- Interrupts section being worked upon to implement mouse support
Kernel.cpp – The core kernel file that includes all other header files. Implements kernel logic, boot screen, welcome screen, font, window creation and shell (command line interface) for very basic commands.
Graphics.cpp – Implements core graphics functionalities – Video driver initialization, text and graphics mode, drawing of pixels, lines and rectangles, mouse support.
Mem.cpp – Uses interrupts to know RAM and VRAM size
String.cpp – Basic string processing functions – string compare, copy, len and concat.
Sys.cpp – All routine functions such as clear screen, cursor position, get and put char and string, color settings etc.
Time.cpp – Gets system date and time
Video.cpp – Detects video card type – vga or mono and initializes it
Config.h – Basic kernel configurations
Defs.h – byte, word and color definitions
Graphics.h – Prototypes and definitions for graphics.cpp
Mem.h – Prototypes and definitions for mem.cpp
String.h – Prototypes and definitions for string.cpp
Sys.h – Prototypes and definitions for sys.cpp
Time.h – Prototypes and definitions for time.cpp
Video.h – Prototypes and definitions for video.cpp