BIOS wait x time for keypress
Posted: Fri Jan 23, 2009 4:28 pm
I'm kind of bored, and somewhat enjoy the restrictions of bootsector programming. On top of that, my laptop's current boot system is rather horrid in getting Windows Vista, Firebird (my OS), and Leopard 10.5.6 all working nicely with each other. So I decided to try writing an MBR just for the fun of it. It should, in theory, be easier than writing my FAT32 bootloader.
My current problem is this: I want to wait 3 seconds for the user to press F8, and if they do, I want to do one thing, but if not, I want to do something else. Unfortunately, a quick Google gave me "Halt the program X amount of time" or "Halt the program until a key is pressed." What's the easiest way to do this?
My current problem is this: I want to wait 3 seconds for the user to press F8, and if they do, I want to do one thing, but if not, I want to do something else. Unfortunately, a quick Google gave me "Halt the program X amount of time" or "Halt the program until a key is pressed." What's the easiest way to do this?