4
1
I want to write x86 assembler code that can be used to boot your computer from and dims NumLock. This means
- you cannot rely on glibc or any other of these "comfi" libraries
- you cannot rely on the Linux kernel
- we will test your code by dumping it onto a virtual floppy and boot a VM from it
- goal is to switch on and off NumLock so quickly that it appears dimmed
- it's okay if everything fits into the bootloader and loops endlessly
Solution with most votes wins.
1I know you think "dim numlock - that's easy" but it is not. So much has to happen to get that far, like scanning for devices and drivers for them. A PS2 keyboard might be easier but I digress. I could make a z80 output "Hello world!" via a UART easily though :P – Alec Teal – 2014-01-02T08:11:23.857
wow good comment... I did dim NumLock once and thought I knew it was easy. But that was maybe specific to my DIN keyboard (DIN was the predecessor for PS/2 at least in Germany). – Thorsten Staerk – 2014-01-02T09:58:48.853
doesn't the BIOS give you an address where to write the NumLock? If not, how would you do it e.g. in the boot loader? Now I am curious to solve my own excercise :) – Thorsten Staerk – 2014-01-02T09:59:39.543
use port 60: http://stackoverflow.com/questions/3434827/assembly-keyboard-io-port
– Thorsten Staerk – 2014-01-02T10:02:35.620