diff options
Diffstat (limited to 'src/kernel/kernel.c')
| -rw-r--r-- | src/kernel/kernel.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index 40438ec..01c017b 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -10,20 +10,20 @@ #error "Must use ix86-elf compiler" #endif -// Color Constants - void kernel_main(void) { - print_clear(); - for (int r = 0; r < 24; r++) { - for (int c = 0; c < 80; c += 3) { - int color = (r + c) % 15 + 1; - print_set_color(color, PRINT_COLOR_BLACK); - printf(":3 "); + print_clear(); + for (int r = 0; r < 24; r++) { + for (int c = 0; c < 80; c += 3) { + int color = (r + c) % 15 + 1; + print_set_color(color, PRINT_COLOR_BLACK); + printf(":3 "); + } + printf("%n"); } - printf("%n"); - } - print_set_color(PRINT_COLOR_YELLOW, PRINT_COLOR_BLACK); - printf("printf\n\tint: %d\n\tstring: %s\n\tchar: %c\n\tpercent: " - "%%\n\tnothing: %n", - 99, "World! ", 't'); + print_set_color(PRINT_COLOR_YELLOW, PRINT_COLOR_BLACK); + printf("printf\n\tint: %d\n\tstring: %s\n\tchar: %c\n\tpercent: " + "%%\n\tnothing: %n", + 99, "World! ", 't'); + + // printf("\n0x%d\n", *((int *)(0x0010))); } |
