Last change
on this file since 157 was 150, checked in by Tomi Tilli, 14 years ago |
Changes to XTIDE Universal BIOS:
- Redesigned Disk Parameter Tables.
- Code generalizations for supporting non-IDE devices in the future.
|
File size:
1.0 KB
|
Rev | Line | |
---|
[150] | 1 | ; Project name : XTIDE Universal BIOS
|
---|
| 2 | ; Description : Sets IDE Device specific parameters to DPT.
|
---|
| 3 |
|
---|
| 4 | ; Section containing code
|
---|
| 5 | SECTION .text
|
---|
| 6 |
|
---|
| 7 | ;--------------------------------------------------------------------
|
---|
| 8 | ; IdeDPT_Finalize
|
---|
| 9 | ; Parameters:
|
---|
| 10 | ; DS:DI: Ptr to Disk Parameter Table
|
---|
| 11 | ; ES:SI: Ptr to 512-byte ATA information read from the drive
|
---|
| 12 | ; Returns:
|
---|
| 13 | ; Nothing
|
---|
| 14 | ; Corrupts registers:
|
---|
| 15 | ; AX, BX, CX, DX
|
---|
| 16 | ;--------------------------------------------------------------------
|
---|
| 17 | IdeDPT_Finalize:
|
---|
| 18 | ; Fall to .StoreBlockMode
|
---|
| 19 |
|
---|
| 20 | ;--------------------------------------------------------------------
|
---|
| 21 | ; .StoreBlockMode
|
---|
| 22 | ; Parameters:
|
---|
| 23 | ; DS:DI: Ptr to Disk Parameter Table
|
---|
| 24 | ; ES:SI: Ptr to 512-byte ATA information read from the drive
|
---|
| 25 | ; Returns:
|
---|
| 26 | ; Nothing
|
---|
| 27 | ; Corrupts registers:
|
---|
| 28 | ; Nothing
|
---|
| 29 | ;--------------------------------------------------------------------
|
---|
| 30 | .StoreBlockMode:
|
---|
| 31 | mov al, 1
|
---|
| 32 | mov ah, [es:si+ATA1.bBlckSize] ; Max block size in sectors
|
---|
| 33 | mov [di+DPT_ATA.wSetAndMaxBlock], ax
|
---|
| 34 | ; Fall to .EndDPT
|
---|
| 35 |
|
---|
| 36 |
|
---|
| 37 | .EndDPT:
|
---|
| 38 | ret
|
---|
Note:
See
TracBrowser
for help on using the repository browser.