Changeset 493 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus
- Timestamp:
- Dec 21, 2012, 8:44:25 AM (12 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Menus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuEvent.asm
r492 r493 161 161 EventItemHighlightedFromCX: 162 162 push cx 163 call DriveXlate_Reset164 163 call BootMenu_GetDriveToDXforMenuitemInCX 165 164 jnc .noDriveSwap … … 209 208 ;-------------------------------------------------------------------- 210 209 CloseBootMenu: 211 call DriveXlate_Reset212 210 CALL_MENU_LIBRARY Close 213 211 ; Fall to BootMenuEvent_Completed -
trunk/XTIDE_Universal_BIOS/Src/Menus/DriveXlate.asm
r492 r493 144 144 ; Nothing 145 145 ; Corrupts registers: 146 ; Nothing146 ; AX, DI, DL 147 147 ;-------------------------------------------------------------------- 148 148 DriveXlate_Reset: 149 mov WORD [RAMVARS.xlateVars+XLATEVARS.wFDandHDswap], 8000h 150 ret 151 149 xor dl, dl ; no translation for a floppy 150 ;; fall through to DriveXlate_SetDriveToSwap 152 151 153 152 ;-------------------------------------------------------------------- … … 161 160 ; Nothing 162 161 ; Corrupts registers: 163 ; Nothing162 ; AX, DI 164 163 ;-------------------------------------------------------------------- 165 164 DriveXlate_SetDriveToSwap: 165 mov ax, 8000h ; Default mapping (no translation) 166 166 test dl, dl ; Floppy drive? 167 167 js SHORT .SetHardDriveToSwap 168 169 ; Set Floppy Drive to swap 170 mov [RAMVARS.xlateVars+XLATEVARS.bFDSwap], dl 168 mov al, dl ; Store floppy translation 169 SKIP2B di 170 .SetHardDriveToSwap: 171 mov ah, dl ; Store HD translation 172 mov WORD [RAMVARS.xlateVars+XLATEVARS.wFDandHDswap], ax 171 173 ret 172 173 .SetHardDriveToSwap:174 mov [RAMVARS.xlateVars+XLATEVARS.bHDSwap], dl175 ret
Note:
See TracChangeset
for help on using the changeset viewer.