Changeset 601 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus
- Timestamp:
- Feb 14, 2019, 7:38:08 PM (6 years ago)
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Menus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Menus/BootMenu/BootMenuPrintCfg.asm
r592 r601 4 4 ; 5 5 ; Included by BootMenuPrint.asm, this routine is to be inserted into 6 ; BootMenuPrint_ HardDiskRefreshInformation.6 ; BootMenuPrint_RefreshInformation. 7 7 ; 8 8 … … 26 26 SECTION .text 27 27 28 ;;; fall-into from BootMenuPrint_ HardDiskRefreshInformation.28 ;;; fall-into from BootMenuPrint_RefreshInformation. 29 29 30 30 ;-------------------------------------------------------------------- … … 32 32 ; Cursor is set to configuration header string position. 33 33 ; 34 ; BootMenuPrintCfg_ForOurDrive34 ; .BootMenuPrintCfg_ForOurDrive 35 35 ; Parameters: 36 36 ; DS:DI: Pointer to DPT … … 38 38 ; Nothing 39 39 ; Corrupts registers: 40 ; AX, BX, CX,DX40 ; AX, BX, DX 41 41 ;-------------------------------------------------------------------- 42 42 .BootMenuPrintCfg_ForOurDrive: 43 eMOVZX ax, [di+DPT.bIdevarsOffset]44 xchg bx, ax ; CS:BX now points to IDEVARS45 43 ; Fall to .PushAddressingMode 46 44 … … 49 47 ; Parameters: 50 48 ; DS:DI: Ptr to DPT 51 ; CS:BX: Ptr to IDEVARS52 49 ; Returns: 53 50 ; Nothing (falls to next push below) 54 51 ; Corrupts registers: 55 ; AX, CX, DX52 ; AX, BX, DX 56 53 ;-------------------------------------------------------------------- 57 54 .PushAddressingMode: … … 66 63 imul ax, g_szAddressingModes_Displacement << (8-TRANSLATEMODE_FIELD_POSITION) 67 64 %else 68 mov cx, g_szAddressingModes_Displacement << (8-TRANSLATEMODE_FIELD_POSITION)69 mul cx65 mov bx, g_szAddressingModes_Displacement << (8-TRANSLATEMODE_FIELD_POSITION) 66 mul bx 70 67 %endif 71 68 xchg al, ah ; AL = always zero after above multiplication … … 78 75 ; Parameters: 79 76 ; DS:DI: Ptr to DPT 80 ; CS:BX: Ptr to IDEVARS81 77 ; Returns: 82 78 ; Nothing (falls to next push below) … … 97 93 ; Parameters: 98 94 ; DS:DI: Ptr to DPT 99 ; CS:BX: Ptr to IDEVARS100 95 ; Returns: 101 96 ; Nothing (falls to next push below) 102 97 ; Corrupts registers: 103 ; AX 98 ; AX, BX 104 99 ;-------------------------------------------------------------------- 105 100 .PushDeviceType: 101 call AccessDPT_GetIdevarsToCSBX 106 102 %ifndef MODULE_SERIAL 107 103 mov al, g_szDeviceTypeValues_Displacement … … 155 151 ; Nothing (falls to next push below) 156 152 ; Corrupts registers: 157 ; A X, BX, DX, ES153 ; AL 158 154 ;-------------------------------------------------------------------- 159 155 .PushResetStatus: … … 161 157 push ax 162 158 163 ;;; fall-out to BootMenuPrint_ HardDiskRefreshInformation.159 ;;; fall-out to BootMenuPrint_RefreshInformation. -
trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm
r600 r601 33 33 ; Nothing 34 34 ; Corrupts registers: 35 ; AX, CX, DX, SI, DI 36 ;-------------------------------------------------------------------- 35 ; Nothing 36 ;-------------------------------------------------------------------- 37 ALIGN JUMP_ALIGN 37 38 HotkeyBar_TimerTickHandler: 38 39 push es … … 56 57 ; Call previous handler 57 58 pushf 58 call far[es:BOOTVARS.hotkeyVars+HOTKEYVARS.fpPrevTimerHandler]59 call FAR [es:BOOTVARS.hotkeyVars+HOTKEYVARS.fpPrevTimerHandler] 59 60 60 61 ; Update Hotkeybar (process key input and draw) every fourth tick … … 98 99 mov BYTE [RAMVARS.bTimeoutTicksLeft], 0 99 100 .ContinueDrawing: 100 101 101 ; Fall to HotkeyBar_DrawToTopOfScreen 102 102 … … 141 141 142 142 ; Clear CH if floppy drive is selected for boot 143 %if 0 ; Not needed until more flags added 144 mov ch, FLG_HOTKEY_HD_FIRST 145 and ch, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bFlags] 146 %else 143 147 mov ch, [es:BOOTVARS.hotkeyVars+HOTKEYVARS.bFlags] 144 ;and ch, FLG_HOTKEY_HD_FIRST; Not needed until more flags added 148 %endif 145 149 call FormatDriveHotkeyString 146 150 … … 428 432 429 433 ; Store system 1Ch Timer Tick handler and install our hotkeybar handler 430 mov ax, [ SYSTEM_TIMER_TICK*4]434 mov ax, [BIOS_SYSTEM_TIMER_TICK_INTERRUPT_1Ch*4] 431 435 mov [BOOTVARS.hotkeyVars+HOTKEYVARS.fpPrevTimerHandler], ax 432 mov ax, [ SYSTEM_TIMER_TICK*4+2]436 mov ax, [BIOS_SYSTEM_TIMER_TICK_INTERRUPT_1Ch*4+2] 433 437 mov [BOOTVARS.hotkeyVars+HOTKEYVARS.fpPrevTimerHandler+2], ax 434 mov al, SYSTEM_TIMER_TICK438 mov al, BIOS_SYSTEM_TIMER_TICK_INTERRUPT_1Ch 435 439 mov si, HotkeyBar_TimerTickHandler 436 440 call Interrupts_InstallHandlerToVectorInALFromCSSI
Note:
See TracChangeset
for help on using the changeset viewer.