X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/14e7cde49a59deddadd15afd15231ea4cc6f3485..57508dad16d8683539329dee3e1809875ec6e996:/net/net.c?ds=inline diff --git a/net/net.c b/net/net.c index e1c7444..46ea9cd 100644 --- a/net/net.c +++ b/net/net.c @@ -83,6 +83,13 @@ void eth_poll() // if ((c++) % 2) // return; + + if (((base + 80*25*2)%0x8000) < base) + { + if ((pos > ((base + 80*25*2)%0x8000)) && (pos < base)) + pos = base; + } else if ((pos > base + 80*25*2) || (pos < base)) + pos = base; test[0] = pos >> 8; test[1] = pos & 0xFF;