Changeset 92 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuEvent.asm
- Timestamp:
- Jan 27, 2011, 5:44:27 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuEvent.asm
r88 r92 62 62 mov BYTE [si+MENUINIT.bWidth], BOOT_MENU_WIDTH 63 63 call BootMenu_GetHeightToAHwithItemCountInCL 64 sub ah, MENU_SCREEN_BOTTOM_LINES*2 64 65 mov [si+MENUINIT.bHeight], ah 65 66 stc … … 90 91 call RamVars_GetSegmentToDS 91 92 call DriveXlate_Reset 92 call BootMenu_ConvertMenuitemToDriveOrFunction 93 jc SHORT .UpdatePreviousAndNewMenuitem ; Selection changed to a function 93 call BootMenu_ConvertMenuitemFromCXtoDriveInDX 94 94 call DriveXlate_SetDriveToSwap 95 96 .UpdatePreviousAndNewMenuitem:97 95 pop ax ; Update previous item 98 96 CALL_MENU_LIBRARY RefreshItemFromAX … … 109 107 ALIGN JUMP_ALIGN 110 108 .KeyStrokeInAX: 111 xor ah, ah ; ASCII drive letter now in AX 112 call BootMenu_ConvertHotkeyToMenuitem 109 cmp ah, ROM_BOOT_HOTKEY_SCANCODE 110 jne SHORT .CheckDriveHotkeys 111 int INTV_BOOT_FAILURE ; ROM Boot, never returns 112 ALIGN JUMP_ALIGN 113 .CheckDriveHotkeys: 114 call BootMenu_ConvertAsciiHotkeyFromALtoMenuitemInCX 113 115 cmp cx, [bp+MENUINIT.wItems] 114 jae SHORT .Event NotHandled ; Invalid key116 jae SHORT .EventCompleted ; Invalid key 115 117 xchg ax, cx 116 118 CALL_MENU_LIBRARY HighlightItemFromAX … … 159 161 160 162 call RamVars_GetSegmentToDS 161 call BootMenu_ConvertMenuitemToDriveOrFunction 162 jc SHORT .DrawFunction 163 call BootMenu_ConvertMenuitemFromCXtoDriveInDX 163 164 test dl, 80h ; Floppy drive? 164 165 jz SHORT .DrawFloppyDrive 165 166 jmp [cs:bx+ITEM_TYPE_REFRESH.HardDisk] 166 ALIGN JUMP_ALIGN167 .DrawFunction:168 jmp [cs:bx+ITEM_TYPE_REFRESH.SpecialFunction]169 167 ALIGN JUMP_ALIGN 170 168 .DrawFloppyDrive: … … 177 175 at ITEM_TYPE_REFRESH.HardDisk, dw BootMenuPrint_HardDiskMenuitem 178 176 at ITEM_TYPE_REFRESH.FloppyDrive, dw BootMenuPrint_FloppyMenuitem 179 at ITEM_TYPE_REFRESH.SpecialFunction, dw BootMenuPrint_FunctionMenuitem180 177 iend 181 178 .rgwInformationItemTypeRefresh: … … 183 180 at ITEM_TYPE_REFRESH.HardDisk, dw BootMenuPrint_HardDiskMenuitemInformation 184 181 at ITEM_TYPE_REFRESH.FloppyDrive, dw BootMenuPrint_FloppyMenuitemInformation 185 at ITEM_TYPE_REFRESH.SpecialFunction, dw BootMenuPrint_ClearInformationArea186 182 iend
Note:
See TracChangeset
for help on using the changeset viewer.