Changeset 492 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs


Ignore:
Timestamp:
Dec 21, 2012, 1:01:55 AM (11 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Removed the dependency between MODULE_BOOT_MENU and MODULE_HOTKEYS. With these changes, 0, 1, or 2 of them can be included in a build. This change also means that the hotkeys don't work while the menu is up. But the most important hotkey there was for Rom Boot, and that has been added to the menu as a choice proper. Lots of changes across the board in the hotkeys code - even if we eventually back this change out (becaue, for example we want hotkeys to work in the menu) we should probably start from this base and add that functionality back in, as these changes results in approximately 120 bytes of savings and includes new functionality, such as the Rom Boot menu item and the Com Detect hotkey.

Location:
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm

    r491 r492  
    6464;--------------------------------------------------------------------
    6565BootVars_StoreHotkeyForDriveNumberInDL:
    66     mov     WORD [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wHddAndFddLetters], DEFAULT_HARD_DRIVE_LETTER | (DEFAULT_FLOPPY_DRIVE_LETTER<<8)
    67     call    HotkeyBar_ConvertDriveNumberFromDLtoDriveLetter
     66    mov     WORD [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wHddAndFddLetters], DEFAULT_FLOPPY_DRIVE_LETTER | (DEFAULT_HARD_DRIVE_LETTER<<8)
     67    call    DriveXlate_ConvertDriveNumberFromDLtoDriveLetter
    6868    jmp     HotkeyBar_StoreHotkeyToBootvarsForDriveLetterInDL
    6969
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm

    r489 r492  
    107107.InitializeDriveTranslationAndReturn:
    108108    pop     es
    109 %ifdef MODULE_HOTKEYS
     109%ifdef MODULE_DRIVEXLATE
    110110    jmp     DriveXlate_Reset
    111111%else
     
    164164;       AX:     Total hard disk count
    165165;   Corrupts registers:
    166 ;       CX
     166;       BX
    167167;--------------------------------------------------------------------
    168168%ifdef MODULE_BOOT_MENU
     
    171171    push    ds
    172172    LOAD_BDA_SEGMENT_TO ds, cx
    173     mov     cl, [BDA.bHDCount]
    174     MAX_U   al, cl
     173    mov     bl, [BDA.bHDCount]
     174    MAX_U   al, bl
    175175    pop     ds
    176176    ret
Note: See TracChangeset for help on using the changeset viewer.