diff options
author | dzwdz | 2021-07-18 20:01:20 +0200 |
---|---|---|
committer | dzwdz | 2021-07-18 20:01:20 +0200 |
commit | a31794504d911d584265ac0427dfbba9a4d9ef72 (patch) | |
tree | ceff471e05be07eca6c2281a8c1d0bdcd19678b2 /src/init/main.c | |
parent | 185c7c44c0da51b5442abf4fd3fb549f99c5bab8 (diff) |
basic executable loading
Diffstat (limited to 'src/init/main.c')
-rw-r--r-- | src/init/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/init/main.c b/src/init/main.c new file mode 100644 index 0000000..e6188ac --- /dev/null +++ b/src/init/main.c @@ -0,0 +1,10 @@ +#include <stdint.h> + +int main() { + // change the colors of VGA text + // doesn't require a lot of code, but still shows that it's working + uint8_t *vga = (void*) 0xB8000; + for (int i = 0; i < 80 * 25; i++) + vga[(i << 1) + 1] = 0x4e; + for (;;); +} |