Parent |
WARNING: | This web page is about the IBM Fixed Disk Adapter. Other controllers can behave differently. |
IBM 5150/5155/5160 without IBM Fixed Disk Adapter: | INT 13h supports only the floppy disk system (because the 5150/5155/5160 motherboard BIOS knows nothing about hard drives). |
IBM 5150/5155/5160 with IBM Fixed Disk Adapter: | INT 13h supports both the hard disk system and the floppy disk system. |
- a 100 | |
xxxx:0100 mov ah,0 | (Comment: Function 00h) |
xxxx:0102 mov dl,80 | (Comment: 80h = hard drive 0) (Comment: Required to inform INT 13h that the target is the hard disk system [not the floppy disk system]) |
xxxx:0104 int 13 | |
xxxx:0106 int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:0107 | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
- a 100 | |
xxxx:0100 mov ah,12 | (Comment: Function 12h) |
xxxx:0102 mov dl,80 | (Comment: 80h = hard drive 0) (Comment: Required to inform INT 13h that the target is the hard disk system [not the floppy disk system]) |
xxxx:0104 int 13 | |
xxxx:0106 int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:0107 | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
- a 100 | |
xxxx:0100 mov ah,14 | (Comment: Function 14h) |
xxxx:0102 mov dl,80 | (Comment: 80h = hard drive 0) (Comment: Required to inform INT 13h that the target is the hard disk system [not the floppy disk system]) |
xxxx:0104 int 13 | |
xxxx:0106 int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:0107 | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
- a 100 | |
xxxx:0100 mov ah,10 | (Comment: Function 10h) |
xxxx:0102 mov dl,80 | (Comment: 80h = hard drive 0, 81h = hard drive 1 ) |
xxxx:0104 int 13 | |
xxxx:0106 int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:0107 | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
- a 100 | |
xxxx:0100 mov ah,11 | (Comment: Function 11h) |
xxxx:0102 mov dl,80 | (Comment: 80h = hard drive 0, 81h = hard drive 1 ) |
xxxx:0104 int 13 | |
xxxx:0106 int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:0107 | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
- a 100 | |
xxxx:0100 mov ah,0C | (Comment: Function 0Ch) |
xxxx:0102 mov dl,80 | (Comment: 80h = hard drive 0, 81h = hard drive 1 ) |
xxxx:0104 mov cx,4001 | (Comment: Cylinder 40h, Sector 1) (Comment: Cylinder number contained in CH and upper two bits of CL) |
xxxx:0107 int 13 | |
xxxx:0109 int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:010A | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
- a 80 | |
xxxx:0080 mov ah,02 | (Comment: Function 02h) |
xxxx:0082 mov dl,80 | (Comment: 80h = hard drive 0, 81h = hard drive 1 ) |
xxxx:0084 mov dh,0 | (Comment: Head 0 ) |
xxxx:0086 mov cx,4001 | (Comment: Cylinder 40h, Sector 1) (Comment: Cylinder number contained in CH and upper two bits of CL) |
xxxx:0089 mov al,01 | (Comment: 1 sector is to be read) |
xxxx:008B mov bx,0100 | (Comment: Point ES:BX to our local data buffer) |
xxxx:008E int 13 | |
xxxx:0090 int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:0091 | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=80 |
- n mysector.bin | (Comment: file will be named MYSECTOR.BIN) |
- rbx | |
BX 0100 | |
: 0 | (Comment: BX = high-order file size = 0000) |
- rcx | |
CX 4001 | |
: 200 | (Comment: CX = low-order file size = 0200h [512 decimal] ) |
- w100 | (Comment: write from offset 0100 in local segment) |
Writing 0200 bytes | |
- |
- a 100 | |
xxxx:0100 mov ah,13 | (Comment: Function 13h) |
xxxx:0102 mov dl,80 | (Comment: 80h = hard drive 0, 81h = hard drive 1 ) |
xxxx:0104 int 13 | |
xxxx:0106 int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:0107 | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |
- a 100 | |
xxxx:0100 mov ah,05 | (Comment: Function 05h) |
xxxx:0102 mov dl,80 | (Comment: 80h = hard drive 0, 81h = hard drive 1 ) |
xxxx:0104 mov cx,6001 | (Comment: Cylinder 60h, Sector 1) (Comment: Cylinder number contained in CH and upper two bits of CL) |
xxxx:0107 mov dh,0 | (Comment: Head 0) |
xxxx:0109 mov al,5 | (Comment: Sector interleave of 5) |
xxxx:010B int 13 | |
xxxx:010D int 3 | (Comment: Breakpoint return for DEBUG) |
xxxx:010E | <----- at this line just press the [ENTER] key - this will return DEBUG's dash prompt |
- g=100 |