PC BIOS Real mode 16-bits 8086 compatible ROM routines available at boot time for a PC since 1983. The working of it is best illustrated by calling them in assembler. INT 10h Video Set video mode: MOV AH, 0x00 MOV BL, 0x03 INT 0x10 ┌─────────────────┬────────┬────────────┬────────┐ │ Function │ Code │ Parameters │ Return │ ├─────────────────┼────────┼────────────┼────────┤ │ Video Mode │ AH=0h │ BL=mode │ │ ├─────────────────┼────────┼────────────┼────────┤ │ Print Teletype │ AH=0Eh │ AL=char │ │ └─────────────────┴────────┴────────────┴────────┘ INT 13h Disk Drive Read sectors to memory: MOV AH, 0x02 MOV AL, 0x01 MOV BX, buf MOV CL, 0x02 MOV CH, 0x00 MOV DH, 0x00 INT 0x13 ┌─────────────────┬────────┬────────────┬────────┐ │ Function │ Code │ Parameters │ Return │ ├─────────────────┼────────┼────────────┼────────┤ │ Read Sectors │ AH=2h │ AL=count │ CF err │ │ │ │ ES:BX=buf │ │ │ │ │ CL=offset │ │ │ │ │ CH=cyl │ │ │ │ │ AL=head │ │ └─────────────────┴────────┴────────────┴────────┘ INT 16h Keyboard Read ASCII character: MOV AH, 0x00 INT 16h ┌─────────────────┬────────┬────────────┬──────────┐ │ Function │ Code │ Parameters │ Return │ ├─────────────────┼────────┼────────────┼──────────┤ │ Read Character │ AH=0h │ │ AL=ascii │ └─────────────────┴────────┴────────────┴──────────┘