Last change
on this file since 314 was 305, checked in by aitotat@…, 13 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
|
Line | |
---|
1 | ; Project name : XTIDE Universal BIOS
|
---|
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:
|
---|
12 | ; ES: Same as in INTPACK
|
---|
13 | ; DL: Translated Drive number
|
---|
14 | ; DS:DI: Ptr to DPT (in RAMVARS segment)
|
---|
15 | ; SS:BP: Ptr to IDEPACK
|
---|
16 | ; Parameters on INTPACK:
|
---|
17 | ; ES:BX: Ptr to buffer to receive 512-byte drive information
|
---|
18 | ; Returns with INTPACK:
|
---|
19 | ; AH: Int 13h return status
|
---|
20 | ; CF: 0 if successful, 1 if error
|
---|
21 | ;--------------------------------------------------------------------
|
---|
22 | ALIGN JUMP_ALIGN
|
---|
23 | AH25h_HandlerForGetDriveInformation:
|
---|
24 | mov al, 1 ; Read 1 sector
|
---|
25 | call Prepare_BufferToESSIforOldInt13hTransfer
|
---|
26 | mov ah, COMMAND_IDENTIFY_DEVICE
|
---|
27 | mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRQ)
|
---|
28 | %ifdef USE_186
|
---|
29 | push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
|
---|
30 | jmp Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
|
---|
31 | %else
|
---|
32 | call Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
|
---|
33 | jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
|
---|
34 | %endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.