diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-27 00:29:45 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-27 00:29:45 +0100 |
| commit | 0e402637492f34a4d0e1302fbe34344e19bc4813 (patch) | |
| tree | 6c42e23b23f5bb703d27700e96444224e2eb87e2 /video | |
| parent | 7393db6692c861bc66164c0dd9b83f23a554775b (diff) | |
Progs at vmem=0x8048000 and Improved Console Ouput
Diffstat (limited to 'video')
| -rw-r--r-- | video/console.c | 14 | ||||
| -rw-r--r-- | video/console.h | 4 |
2 files changed, 10 insertions, 8 deletions
diff --git a/video/console.c b/video/console.c index 743aaac..4a04cf1 100644 --- a/video/console.c +++ b/video/console.c @@ -66,12 +66,13 @@ void scr_clear() posx=posy=0; } - +/* void scr_put_string_nl(char *str) { scr_put_string(str); scr_nextline(); } +*/ void scr_nextline() { @@ -127,7 +128,7 @@ void scr_put_char(char ch,char col) } - +/* void scr_put_hex(uint16_t val) { @@ -142,9 +143,11 @@ void scr_put_hex(uint16_t val) } -} +} +*/ +/* void scr_put_hex32(uint32_t val) { scr_put_string("["); @@ -153,12 +156,13 @@ void scr_put_hex32(uint32_t val) scr_put_hex(val&0xffff); scr_put_string("]"); } +*/ -void scr_put_string(char *str) +void scr_put_string(char *str, char col) { while(*str!=0) { - scr_put_char(*(str++),SCR_WHITE); + scr_put_char(*(str++),col); } } diff --git a/video/console.h b/video/console.h index 71c3c72..e9eff29 100644 --- a/video/console.h +++ b/video/console.h @@ -38,8 +38,6 @@ void scr_clear(); void scr_nextline(); void scr_backspace(); void scr_put_char(char ch,char col); -void scr_put_string(char *str); -void scr_put_string_nl(char *str); -void scr_put_hex(uint16_t val); +void scr_put_string(char *str, char col); #endif |
