Cleaning up and commenting

This commit is contained in:
2017-11-18 16:23:22 +01:00
parent ab1a471857
commit 83f81b9a74
3 changed files with 23 additions and 3 deletions

View File

@@ -2,14 +2,14 @@
void clear_screen()
{
unsigned char *vidmem = (void *)(0xB8000 + KERNEL_OFFSET);
unsigned char *vidmem = P2V(0xB8000);
for(int i=0; i < 80*24*2; i++)
*vidmem++ = 0;
}
void print_string(char *str)
{
unsigned char *vidmem = (void *)(0xB8000 + KERNEL_OFFSET);
unsigned char *vidmem = P2V(0xB8000);
while(*str)
{
*vidmem++ = *str++;