Last change
on this file since 305 was
305,
checked in by aitotat@…, 12 years ago
|
Changes to XTIDE Universal BIOS:
- AH=25h (Get Drive Information) no longer call Device_IdentifyToBufferInESSIwithDriveSelectByteInBH (stack usage is now much smaller).
|
File size:
1.2 KB
|
Rev | Line | |
---|
[88] | 1 | ; Project name : XTIDE Universal BIOS |
---|
[3] | 2 | ; Description : Int 13h function AH=25h, Get Drive Information. |
---|
| 3 | |
---|
| 4 | ; Section containing code |
---|
| 5 | SECTION .text |
---|
| 6 | |
---|
| 7 | ;-------------------------------------------------------------------- |
---|
| 8 | ; Int 13h function AH=25h, Get Drive Information. |
---|
| 9 | ; |
---|
| 10 | ; AH25h_HandlerForGetDriveInformation |
---|
| 11 | ; Parameters: |
---|
[148] | 12 | ; ES: Same as in INTPACK |
---|
| 13 | ; DL: Translated Drive number |
---|
| 14 | ; DS:DI: Ptr to DPT (in RAMVARS segment) |
---|
[150] | 15 | ; SS:BP: Ptr to IDEPACK |
---|
| 16 | ; Parameters on INTPACK: |
---|
[3] | 17 | ; ES:BX: Ptr to buffer to receive 512-byte drive information |
---|
[150] | 18 | ; Returns with INTPACK: |
---|
[3] | 19 | ; AH: Int 13h return status |
---|
[294] | 20 | ; CF: 0 if successful, 1 if error |
---|
[3] | 21 | ;-------------------------------------------------------------------- |
---|
| 22 | ALIGN JUMP_ALIGN |
---|
| 23 | AH25h_HandlerForGetDriveInformation: |
---|
[221] | 24 | mov al, 1 ; Read 1 sector |
---|
| 25 | call Prepare_BufferToESSIforOldInt13hTransfer |
---|
[305] | 26 | mov ah, COMMAND_IDENTIFY_DEVICE |
---|
| 27 | mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRQ) |
---|
[165] | 28 | %ifdef USE_186 |
---|
| 29 | push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH |
---|
[305] | 30 | jmp Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH |
---|
[165] | 31 | %else |
---|
[305] | 32 | call Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH |
---|
[165] | 33 | jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH |
---|
| 34 | %endif |
---|
Note: See
TracBrowser
for help on using the repository browser.