Changeset 547 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h
- Timestamp:
- Apr 21, 2013, 3:47:11 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH15h_HSize.asm
r526 r547 23 23 ;-------------------------------------------------------------------- 24 24 ; Int 13h function AH=15h, Read Disk Drive Size. 25 ; 26 ; It is unclear what is the total number of sectors to return. 27 ; Award BIOS from 1997 returns full capacity instead of L-CHS limit 28 ; like we do. I think it makes more sense if this function returns 29 ; L-CHS limit. 25 30 ; 26 31 ; AH15h_HandlerForReadDiskDriveSize -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/Prepare.asm
r526 r547 45 45 46 46 ; Make sure that sector count is valid 47 mov al, [es:si+DAP.wSectorCount] 48 test al, al 49 jz SHORT ZeroSectorsRequestedSoNoErrors 50 js SHORT InvalidNumberOfSectorsRequested 51 52 %if 0 ; Slow version in the unlikely case that high byte needs to be checked. 47 53 mov ax, [es:si+DAP.wSectorCount] 48 54 test ax, ax … … 50 56 cmp ax, BYTE 127 51 57 ja SHORT InvalidNumberOfSectorsRequested 58 %endif 52 59 53 60 ; Get EBIOS command index to BX … … 55 62 call Prepare_GetOldInt13hCommandIndexToBX 56 63 mov al, [di+DPT.bFlagsLow] 57 eSHL_IMal, 1 ; Set CF if LBA48 supported64 shl al, 1 ; Set CF if LBA48 supported 58 65 adc bl, bh ; LBA48 EXT commands 59 66 ret
Note:
See TracChangeset
for help on using the changeset viewer.