Last change
on this file since 243 was 150, checked in by Tomi Tilli, 13 years ago |
Changes to XTIDE Universal BIOS:
- Redesigned Disk Parameter Tables.
- Code generalizations for supporting non-IDE devices in the future.
|
File size:
855 bytes
|
Rev | Line | |
---|
[116] | 1 | ; Project name : XTIDE Universal BIOS
|
---|
[3] | 2 | ; Description : Int 13h function AH=1h, Read Disk Status.
|
---|
| 3 |
|
---|
| 4 | ; Section containing code
|
---|
| 5 | SECTION .text
|
---|
| 6 |
|
---|
| 7 | ;--------------------------------------------------------------------
|
---|
| 8 | ; Int 13h function AH=1h, Read Disk Status.
|
---|
| 9 | ;
|
---|
| 10 | ; AH1h_HandlerForReadDiskStatus
|
---|
| 11 | ; Parameters:
|
---|
[148] | 12 | ; DL: Translated Drive number
|
---|
| 13 | ; DS:DI: Ptr to DPT (in RAMVARS segment)
|
---|
[150] | 14 | ; SS:BP: Ptr to IDEREGS_AND_INTPACK
|
---|
| 15 | ; Returns with INTPACK:
|
---|
[3] | 16 | ; AH: Int 13h floppy return status
|
---|
| 17 | ; CF: 0 if AH = RET_HD_SUCCESS, 1 otherwise (error)
|
---|
| 18 | ;--------------------------------------------------------------------
|
---|
| 19 | ALIGN JUMP_ALIGN
|
---|
| 20 | AH1h_HandlerForReadDiskStatus:
|
---|
[148] | 21 | LOAD_BDA_SEGMENT_TO ds, ax, !
|
---|
| 22 | xchg ah, [BDA.bHDLastSt] ; Load and clear last error
|
---|
[150] | 23 | call Int13h_SetErrorCodeToIntpackInSSBPfromAH
|
---|
[148] | 24 | jmp Int13h_ReturnFromHandlerWithoutStoringErrorCode
|
---|
Note:
See
TracBrowser
for help on using the repository browser.