source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH4h_HVerify.asm@ 367

Last change on this file since 367 was 332, checked in by krille_n_@…, 13 years ago

Changes:

  • Fixed a bug in the new BIOS Drive Information Tool.
  • Very small changes to improve speed (I hope).
  • Changed AH48h_GetExtendedDriveParameters.asm to allow AT builds with USE_386 (won't affect any other builds).
  • Verified that most define combinations can be built and changed Strings.asm accordingly. "Most" meaning with or without any combination of EBIOS and/or Serial code defines.
File size: 1.5 KB
Line 
1; Project name : XTIDE Universal BIOS
2; Description : Int 13h function AH=4h, Verify Disk Sectors.
3
4; Section containing code
5SECTION .text
6
7;--------------------------------------------------------------------
8; Int 13h function AH=4h, Verify Disk Sectors.
9;
10; AH4h_HandlerForVerifyDiskSectors
11; Parameters:
12; AL, CX, DH: Same as in INTPACK
13; DL: Translated Drive number
14; DS:DI: Ptr to DPT (in RAMVARS segment)
15; SS:BP: Ptr to INTPACK
16; Parameters on INTPACK in SS:BP:
17; AL: Number of sectors to verify (1...128)
18; CH: Cylinder number, bits 7...0
19; CL: Bits 7...6: Cylinder number bits 9 and 8
20; Bits 5...0: Starting sector number (1...63)
21; DH: Starting head number (0...255)
22; Returns with INTPACK in SS:BP:
23; AH: Int 13h/40h floppy return status
24; AL: Number of sectors actually verified (only valid if CF set for someBIOSes)
25; CF: 0 if successful, 1 if error
26;--------------------------------------------------------------------
27ALIGN JUMP_ALIGN
28AH4h_HandlerForVerifyDiskSectors:
29 mov ah, COMMAND_VERIFY_SECTORS
30 call Prepare_ByValidatingSectorsInALforOldInt13h ; Preserves AX
31 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRDY)
32%ifdef USE_186
33 push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAHandTransferredSectorsFromCL
34 jmp Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
35%else
36 call Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
37 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAHandTransferredSectorsFromCL
38%endif
Note: See TracBrowser for help on using the repository browser.