An old-style PC BIOS served the function of a bootloader in loading the operating system kernel, and of an API in providing a ...
It was meant to be a console.
It's pretty easy to build.