source: xtideuniversalbios/tags/XTIDE_Universal_BIOS_v2.0.0_beta1/Src/Handlers/Int13h/AH25h_HDrvID.asm

Last change on this file was 322, checked in by krille_n_@…, 12 years ago

Changes to XTIDE Universal BIOS:

  • Commented out the FS and GS segment registers from INTPACK since we never touch them anyway.
  • Minor changes to improve speed in the Int13h handler.
  • Changed Prepare_ByValidatingSectorsInALforOldInt13h so it really doesn't corrupt anything.
  • Changed the makefile so 'make strings' now works even if StringsCompressed.asm is missing or empty.
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
5SECTION .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;--------------------------------------------------------------------
22ALIGN JUMP_ALIGN
23AH25h_HandlerForGetDriveInformation:
24 mov ax, (COMMAND_IDENTIFY_DEVICE << 8 | 1) ; Read 1 sector
25 call Prepare_BufferToESSIforOldInt13hTransfer ; Preserves AX
26 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRQ)
27%ifdef USE_186
28 push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
29 jmp Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
30%else
31 call Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
32 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
33%endif
Note: See TracBrowser for help on using the repository browser.