Changeset 492 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc

    r473 r492  
    2222%define BOOTVARS_INC
    2323
     24; Default drives
     25DEFAULT_FLOPPY_DRIVE_LETTER             EQU 'A'
     26DEFAULT_HARD_DRIVE_LETTER               EQU 'C'
     27
    2428; Number of times to retry booting before accepting error
    2529BOOT_READ_RETRY_TIMES       EQU     3
     
    4347    .clearToZeroFromThisPoint:
    4448%ifdef MODULE_HOTKEYS
    45     .hotkeyVars         resb    HOTKEYVARS_size
     49    .hotkeyVars             resb    HOTKEYVARS_size
    4650%endif
    4751
     
    5054
    5155%ifdef MODULE_HOTKEYS
     56
    5257struc HOTKEYVARS
    5358    .wTimeToClose       resb    2       ; Earliest system time when Hotkey Bar can be closed
    54     .bScancode          resb    1       ; Function hotkey scancode
    55     .bFlags             resb    1       ; Must be just before .bHddLetter!
    5659    .wHddAndFddLetters:
     60    .bFddLetter         resb    1       ; Floppy Drive letter hotkey (upper case)
    5761    .bHddLetter         resb    1       ; Hard Drive letter hotkey (upper case)
    58     .bFddLetter         resb    1       ; Floppy Drive letter hotkey (upper case)
     62    .bFlags             resb    1       ; Must be just after .bHddLetter!  (dependency in Hotkeybar.asm)
     63    .bScancode          resb    1       ; Function hotkey scancode, must be just after .bFlags!
    5964endstruc
    6065
    61 ; Bit defines for HOTKEYVARS.bFlags
     66%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
     67%if HOTKEYVARS.bFddLetter+1 != HOTKEYVARS.bHddLetter || HOTKEYVARS.bHddLetter+1 != HOTKEYVARS.bFlags || HOTKEYVARS.bFlags+1 != HOTKEYVARS.bScancode
     68%error "HOTKEYVARS: bytes need to come in the order .bFddLetter, then .bHddLetter, then .bFlags, then .bScancode"
     69%endif
     70%endif
     71
     72; Bit defines for KEYBOARDVARS.bFlags
    6273FLG_HOTKEY_HD_FIRST     EQU     (1<<0)  ; First try to boot from HDD, then FDD
    6374
    64 %endif ; MODULE_HOTKEY
    65 
    66 
     75%endif ; MODULE_HOTKEYS
    6776
    6877struc DRVDETECTINFO
Note: See TracChangeset for help on using the changeset viewer.