Why not an OS?

Hypothetical task: write a program that

Assume x86-64 CPU with disk drive, RAM, motherboard, display

Assume you have functions for:

Assume the file:

Access the file using the IDE interface

Memory Mapped I/O

CPU
 |
------------------------------------- Bus
      |
     RAM         Device Register
     0x0-0x7fff  0x8000

Device Register:
|         | 7 bit color, 8 bit char |   ...2000 characters    
0xB800    ^
          16 bits/character

Display:
            80
--------------------------
|                        |
|                        |
|                        | 25
|                        |
|                        |
--------------------------