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

Last change on this file since 592 was 568, checked in by krille_n_@…, 10 years ago

Changes:

  • SerDrive: Using named pipe mode (serdrive -p) now works under Windows XP/2000/Server 2003.
  • checksum.pl: Added a compatibility fix for 3Com 3C503 cards.
  • XTIDECFG will now scan every possible segment address to find and load the BIOS and/or its settings from EEPROM. This should simplify things for people using combined option ROMs.
  • Fixed a bug from r521 in BootSector.asm where the BIOS would not display a timeout error if it failed to load the boot sector from harddrive.
  • Fixed a bug from r541 in CompatibleDPT.asm where CompatibleDPT_CreateDeviceParameterTableExtensionToESBXfromDPTinDSSI would generate an invalid checksum in the DPTE.
  • Optimizations and other fixes.
File size: 2.2 KB
RevLine 
[148]1; Project name : XTIDE Universal BIOS
[3]2; Description : Int 13h function AH=4h, Verify Disk Sectors.
3
[376]4;
[526]5; XTIDE Universal BIOS and Associated Tools
6; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team.
[376]7;
8; This program is free software; you can redistribute it and/or modify
9; it under the terms of the GNU General Public License as published by
10; the Free Software Foundation; either version 2 of the License, or
11; (at your option) any later version.
[526]12;
[376]13; This program is distributed in the hope that it will be useful,
14; but WITHOUT ANY WARRANTY; without even the implied warranty of
15; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
[526]16; GNU General Public License for more details.
[376]17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
[526]18;
[376]19
[3]20; Section containing code
21SECTION .text
22
23;--------------------------------------------------------------------
24; Int 13h function AH=4h, Verify Disk Sectors.
25;
26; AH4h_HandlerForVerifyDiskSectors
27; Parameters:
[148]28; AL, CX, DH: Same as in INTPACK
29; DL: Translated Drive number
30; DS:DI: Ptr to DPT (in RAMVARS segment)
31; SS:BP: Ptr to INTPACK
32; Parameters on INTPACK in SS:BP:
[221]33; AL: Number of sectors to verify (1...128)
[3]34; CH: Cylinder number, bits 7...0
35; CL: Bits 7...6: Cylinder number bits 9 and 8
36; Bits 5...0: Starting sector number (1...63)
37; DH: Starting head number (0...255)
[148]38; Returns with INTPACK in SS:BP:
[3]39; AH: Int 13h/40h floppy return status
[568]40; AL: Number of sectors actually verified (only valid if CF set for some BIOSes)
[294]41; CF: 0 if successful, 1 if error
[3]42;--------------------------------------------------------------------
43ALIGN JUMP_ALIGN
44AH4h_HandlerForVerifyDiskSectors:
[155]45 mov ah, COMMAND_VERIFY_SECTORS
[332]46 call Prepare_ByValidatingSectorsInALforOldInt13h ; Preserves AX
[150]47 mov bx, TIMEOUT_AND_STATUS_TO_WAIT(TIMEOUT_DRQ, FLG_STATUS_DRDY)
48%ifdef USE_186
[249]49 push Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAHandTransferredSectorsFromCL
[150]50 jmp Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
51%else
52 call Idepack_TranslateOldInt13hAddressAndIssueCommandFromAH
[249]53 jmp Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAHandTransferredSectorsFromCL
[150]54%endif
Note: See TracBrowser for help on using the repository browser.