From 0e402637492f34a4d0e1302fbe34344e19bc4813 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Thu, 27 Nov 2014 00:29:45 +0100 Subject: Progs at vmem=0x8048000 and Improved Console Ouput --- video/console.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'video/console.c') 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); } } -- cgit v1.2.3