X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/a46bffee03170f9f38004ce996dd7b22343fe6f8..f16f4f1e99d1b45e7f0ba828616c1afdd1b50721:/aseg/counter.c diff --git a/aseg/counter.c b/aseg/counter.c index 61f9b6f..8f807aa 100644 --- a/aseg/counter.c +++ b/aseg/counter.c @@ -25,7 +25,7 @@ unsigned char vgaread(unsigned char idx) void strblit(char *src) { - char *destp = (char*)(0xB8000 | (vgaread(0xC) << 5) | (vgaread(0xD) << 1)); + char *destp = (char*)(0xB8000UL | (((unsigned int)vgaread(0xC)) << 9) | (((unsigned int)vgaread(0xD)) << 1)); while (*src) { *(destp++) = *(src++);