Changeset 567 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools
- Timestamp:
- May 26, 2014, 1:25:15 PM (11 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/Tools/Prepare.asm
r558 r567 113 113 ; Prepare_ByValidatingSectorsInALforOldInt13h 114 114 ; Parameters: 115 ; AL: Number of sectors to transfer 115 ; AL: Number of sectors to transfer (1...128 is valid) 116 116 ; Returns: 117 117 ; Exits INT 13h if invalid number of sectors in AL … … 120 120 ;-------------------------------------------------------------------- 121 121 Prepare_ByValidatingSectorsInALforOldInt13h: 122 test al, al 123 js SHORT .CheckZeroOffsetFor128Sectors ; 128 or more 124 jz SHORT InvalidNumberOfSectorsRequested ; Zero not allowed for old INT 13h 122 test al, al ; Check if 0 < AL < 128 (Clears OF) 123 jle SHORT .CheckIf128Sectors ; Jump if not 125 124 ret ; Continue with transfer 126 125 127 126 ALIGN JUMP_ALIGN 128 .Check ZeroOffsetFor128Sectors:127 .CheckIf128Sectors: 129 128 cmp al, 128 130 j aSHORT InvalidNumberOfSectorsRequested129 jne SHORT InvalidNumberOfSectorsRequested 131 130 test si, si ; Offset must be zero to xfer 128 sectors 132 131 jnz SHORT CannotAlignPointerProperly
Note:
See TracChangeset
for help on using the changeset viewer.