diff --git a/kernel/kernel.c b/kernel/kernel.c index 290d9e5..2d24fd9 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -6,10 +6,4 @@ void main() { set_cursor_pos(28, 2); print("eOS Version 0.1 2021", 0xf0); - - /* - set_cursor_pos(0, 0); - for( int i = 0; i < 255; i++ ) - println("X", i); - */ } diff --git a/lib/strf.c b/lib/strf.c new file mode 100644 index 0000000..c273e1b --- /dev/null +++ b/lib/strf.c @@ -0,0 +1,9 @@ +#include "lib/strf.h" + +#define int_offset 48 +// 0:48 - 9:57 + +char* int_to_str(int i) { + char* strbuf; + double num = (double)i; +} diff --git a/lib/strf.h b/lib/strf.h new file mode 100644 index 0000000..2046d91 --- /dev/null +++ b/lib/strf.h @@ -0,0 +1 @@ +char* int_to_str(int i);