diff options
Diffstat (limited to 'kernel/console.c')
| -rw-r--r-- | kernel/console.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kernel/console.c b/kernel/console.c index d5d4573..f17dbe3 100644 --- a/kernel/console.c +++ b/kernel/console.c @@ -1,11 +1,24 @@ -#include <stdint.h> - #include "console.h" static int posx=0; static int posy=0; -void print_nextline() +void scr_clear() +{ + int x,y; + + for(x=0;x<SCR_WIDTH;x++) + for(y=0;y<SCR_HEIGHT;y++) + { + print_char_col(x,y," ",SCR_BLACK); + + } + + posx=posy=0; + +} +//TODO +void scr_nextline() { int i,x; @@ -30,8 +43,9 @@ void print_nextline() } } -void print_hex(uint16_t val) +void scr_put_hex(uint16_t val) { + int i; print_char_col(posx,posy,'0',SCR_WHITE); @@ -43,34 +57,20 @@ void print_hex(uint16_t val) { print_single_hex((val&0xf000)>>12); val=val << 4; - } } -void print_string(char *str) +void scr_put_string(char *str) { - while(*str!=0) { print_char(posx++,posy,*(str++)); } } -void console_clear_screen() -{ - int x,y; - for(x=0;x<SCR_WIDTH;x++) - for(y=0;y<SCR_WIDTH;y++) - { - print_char_col(x,y," ",SCR_BLACK); - - } - posx=posy=0; - -} |
