source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH25h_HDrvID.asm@ 352

Last change on this file since 352 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
RevLine 
[88]1; Project name : XTIDE Universal BIOS
[3]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:
[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;--------------------------------------------------------------------
22ALIGN JUMP_ALIGN
23AH25h_HandlerForGetDriveInformation:
[322]24 mov ax, (COMMAND_IDENTIFY_DEVICE << 8 | 1) ; Read 1 sector
25 call Prepare_BufferToESSIforOldInt13hTransfer ; Preserves AX
[305]26 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRQ)
[165]27%ifdef USE_186
28 push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
[305]29 jmp Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
[165]30%else
[305]31 call Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
[165]32 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
33%endif
Note: See TracBrowser for help on using the repository browser.