diff options
Diffstat (limited to 'kernel/console.c')
| -rw-r--r-- | kernel/console.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/console.c b/kernel/console.c index 27b21e5..77b5fc1 100644 --- a/kernel/console.c +++ b/kernel/console.c @@ -104,6 +104,7 @@ void scr_put_char(char ch,char col) if(posx>=SCR_WIDTH)scr_nextline(); } + void scr_put_hex(uint16_t val) { @@ -121,6 +122,15 @@ void scr_put_hex(uint16_t val) } +void scr_put_hex32(uint32_t val) +{ + scr_put_string("["); + scr_put_hex(val>>16); + scr_put_string(","); + scr_put_hex(val&0xffff); + scr_put_string("]"); +} + void scr_put_string(char *str) { while(*str!=0) |
