In the 1990's I used to make BIOS calls (in C/C++ or Assembly) to access some hardware without needing to use the MS-DOS. In general, it was just for fun. But, for my games, I needed to use BIOS interrupt calls to the time system (to play music) and the keyboard (to make the keys function like a joystick).