boot: fix stray bits in scancodes in bochs

This commit is contained in:
K. Lange 2023-04-11 20:28:21 +09:00
parent 6d2d6edffc
commit 2af556d9da

View File

@ -182,6 +182,6 @@ int read_scancode(int timeout) {
}
}
int result = do_bios_call(4,0);
return result >> 8;
return (result >> 8) & 0xFF;
}
#endif