Operating System
kernel.c
Go to the documentation of this file.
1 
9 #include "kernel.h"
10 #include "../include/utilities.h"
11 #include "../user/user.h"
12 #include "../user/terminal.h"
13 #include "../include/mystring.h"
14 #include "../filesystem/API/fsapi.h"
15 #define true 1
16 #define false 0
17 extern void clock_install_interupt();
18 extern void global_custom_int_install();
19 
21 int main() {
22  __screen_scroll(0, (20 << 8) + 20, 5, 0);
24  // __asm__ volatile (
25  // "pushw %ax\n"
26  // "mov $0, %ax\n"
27  // "INT $0x2B\n"
28  // "popw %ax\n"
29  // );
31  _draw_char('A', 0, DEFAULT_STYLE);
32  // __asm__("int $0x8\n");
33  // __load_program("stoneS");
34  clear_screen();
35  draw_str("enter help to get help", 1, 30);
36  //draw_char_style('A', 0, 10, G_DEFAULT);
37  // draw_char_style('A', 0, 11, G_DEFAULT_DARK);
38  newline();
39  set_cursor(2, 1);
40  terminal();
41  return 0;
42 }
static void __screen_scroll(uint16_t row_col_lu, uint16_t row_col_rd, uint8_t lines, uint16_t direction)
Definition: utilities.h:68
void clock_install_interupt()
used to install clock
int terminal()
Definition: terminal.c:35
used by kernel.c a header for kernel file. why not read the source directly?
void clear_screen()
static int16_t draw_str(char const *str, int row, int col)
Definition: stdio.h:104
void global_custom_int_install()
used to install cumstom interupt
int main()
kernel entry
Definition: kernel.c:21
static int16_t newline()
Definition: stdio.h:115
static void set_cursor(uint8_t row, uint8_t col)
Definition: utilities.h:26
#define DEFAULT_STYLE
Definition: stdio.h:12
static int16_t _draw_char(char ch, int offset, uint8_t style)
Definition: stdio.h:21