Changeset 505 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus/DriveXlate.asm
- Timestamp:
- Feb 25, 2013, 4:23:09 PM (12 years ago)
- google:author:
- krille_n_@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/DriveXlate.asm
r493 r505 3 3 4 4 ; 5 ; XTIDE Universal BIOS and Associated Tools 5 ; XTIDE Universal BIOS and Associated Tools 6 6 ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. 7 7 ; … … 10 10 ; the Free Software Foundation; either version 2 of the License, or 11 11 ; (at your option) any later version. 12 ; 12 ; 13 13 ; This program is distributed in the hope that it will be useful, 14 14 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 15 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ; GNU General Public License for more details. 16 ; GNU General Public License for more details. 17 17 ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 18 ; 18 ; 19 19 20 20 ; Section containing code … … 48 48 %if HotkeyBar_FallThroughTo_DriveXlate_ConvertDriveLetterInDLtoDriveNumber <> DriveXlate_ConvertDriveLetterInDLtoDriveNumber 49 49 %error "DriveXlate_ConvertDriveLetterInDLtoDriveNumber must be at the top of DriveXlate.asm, and that file must immediately follow HotKeys.asm" 50 %endif51 50 %endif 52 51 %endif 52 53 53 ;-------------------------------------------------------------------- 54 54 ; DriveXlate_ConvertDriveNumberFromDLtoDriveLetter … … 64 64 ;-------------------------------------------------------------------- 65 65 DriveXlate_ConvertDriveNumberFromDLtoDriveLetter: 66 test dl, dl67 j ns SHORT .GetDefaultFloppyDrive66 xor dl, 80h 67 js SHORT .GetDefaultFloppyDrive 68 68 69 69 ; Store default hard drive to boot from 70 70 call DriveXlate_GetLetterForFirstHardDriveToAX 71 sub dl, 80h72 71 add dl, al 73 72 stc … … 75 74 76 75 .GetDefaultFloppyDrive: 77 add dl, DEFAULT_FLOPPY_DRIVE_LETTER; Clears CF76 sub dl, 80h - DEFAULT_FLOPPY_DRIVE_LETTER ; Clears CF 78 77 ret 79 78 … … 96 95 MAX_U al, DEFAULT_HARD_DRIVE_LETTER 97 96 ret 98 97 99 98 100 99 ;-------------------------------------------------------------------- … … 168 167 mov al, dl ; Store floppy translation 169 168 SKIP2B di 170 .SetHardDriveToSwap: 169 .SetHardDriveToSwap: 171 170 mov ah, dl ; Store HD translation 172 171 mov WORD [RAMVARS.xlateVars+XLATEVARS.wFDandHDswap], ax
Note:
See TracChangeset
for help on using the changeset viewer.