outputf("NIC: Command: 0x%x, %d bytes", p->command, dl);
- if (p->command == 0x42)
- {
+ switch (p->command) {
+ case 0x42:
for (i = 0; i < dl; i++)
kbd_inject_key(p->data[i]);
+ break;
+ case 0xFE:
+ outb(0xCF9, 0x4); /* Reboot */
+ break;
}
}
// 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;