Hypothetical task: write a program that
Assume x86-64 CPU with disk drive, RAM, motherboard, display
Assume you have functions for:
Assume the file:
[A-Za-z]+
Access the file using the IDE interface
read_ide_sector(long long sector_num, char buf[SECTOR_LENGTH])
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
| |
| |
--------------------------