kernel.c 435 B

1234567891011121314151617
  1. #include "../drivers/screen.h"
  2. #include "util.h"
  3. void main() {
  4. clear_screen();
  5. /* Fill up the screen */
  6. int i = 0;
  7. for (i = 0; i < 24; i++) {
  8. char str[255];
  9. int_to_ascii(i, str);
  10. kprint_at(str, 0, i);
  11. }
  12. kprint_at("This text forces the kernel to scroll. Row 0 will disappear. ", 60, 24);
  13. kprint("And with this text, the kernel will scroll again, and row 1 will disappear too!");
  14. }