Changeset 593 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus
- Timestamp:
- Jun 30, 2018, 8:27:04 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm
r592 r593 75 75 mov cl, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bFddLetter] 76 76 mov di, g_szFDD 77 78 ; Clear CH if floppy drive is selected for boot 79 mov ch, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bFlags] 80 ;and ch, FLG_HOTKEY_HD_FIRST ; Needed if more flags are added 77 81 call FormatDriveHotkeyString 78 82 … … 92 96 call BootVars_GetLetterForFirstHardDriveToAX 93 97 mov ah, ANGLE_QUOTE_RIGHT 94 mov cl, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bHddLetter] 98 mov cx, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bHddLetter] ; Letter to CL, flags to CH 99 ;and ch, FLG_HOTKEY_HD_FIRST ; Needed if more flags are added 100 xor ch, FLG_HOTKEY_HD_FIRST ; Clear CH if HD is selected for boot, set otherwise 95 101 mov di, g_szHDD 96 102 call FormatDriveHotkeyString … … 182 188 ; FormatDriveHotkeyString 183 189 ; Parameters: 190 ; CH: Zero if letter in CL is selected for boot 184 191 ; CL: Drive letter hotkey from BOOTVARS 185 192 ; AL: First character for drive key string … … 192 199 ; AX, CX, DX, SI, DI 193 200 ;-------------------------------------------------------------------- 194 ;; No work to do before going into FormatFunctionHotkeyString 195 FormatDriveHotkeyString equ GetNonSelectedHotkeyDescriptionAttributeToDX 201 FormatDriveHotkeyString: 202 ; Invalid scancodes are filtered on HotkeyBar_StoreHotkeyToBootvarsIfValidKeystrokeInAX 203 ; so here we have either drive letter or function key pressed. If latter, draw 204 ; drive letters as unselected 205 cmp BYTE [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bScancode], FIRST_FUNCTION_KEY_SCANCODE 206 jae SHORT GetNonSelectedHotkeyDescriptionAttributeToDX 207 208 ; Drive selected to boot from? 209 test ch, ch 210 jnz SHORT GetNonSelectedHotkeyDescriptionAttributeToDX 211 jmp SHORT GetSelectedHotkeyDescriptionAttributeToDX 212 196 213 197 214 ;-------------------------------------------------------------------- … … 216 233 %ifdef MODULE_BOOT_MENU 217 234 235 GetSelectedHotkeyDescriptionAttributeToDX: 218 236 mov si, ATTRIBUTE_CHARS.cHurryTimeout ; Selected hotkey 219 je SHORT GetDescriptionAttributeToDX ; From compare with bScancode above 237 je SHORT GetDescriptionAttributeToDX ; From compare with bScancode above and from FormatDriveHotkeyString 220 238 221 239 GetNonSelectedHotkeyDescriptionAttributeToDX: … … 232 250 %else ; if no MODULE_BOOT_MENU - No boot menu so use simpler attributes 233 251 252 GetSelectedHotkeyDescriptionAttributeToDX: 234 253 mov dx, (COLOR_ATTRIBUTE(COLOR_YELLOW, COLOR_CYAN) << 8) | MONO_REVERSE_BLINK 235 je SHORT SelectAttributeFromDHorDLbasedOnVideoMode ; From compare with bScancode above 254 je SHORT SelectAttributeFromDHorDLbasedOnVideoMode ; From compare with bScancode above and from FormatDriveHotkeyString 236 255 237 256 GetNonSelectedHotkeyDescriptionAttributeToDX:
Note:
See TracChangeset
for help on using the changeset viewer.