Changeset 492 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Main.asm


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/Src/Main.asm

    r491 r492  
    3636    %define MENUEVENT_INLINE_OFFSETS        ; Only one menu required, save space and inline offsets
    3737    %define INCLUDE_MENU_LIBRARY
    38 
     38    %define MENU_NO_ESC                     ; User cannot 'esc' out of the menu
    3939%else   ; If no boot menu included
    4040    %define INCLUDE_DISPLAY_LIBRARY
     
    197197%ifdef MODULE_HOTKEYS
    198198    %include "HotkeyBar.asm"        ; For hotkeys during drive detection and boot menu
    199     %include "DriveXlate.asm"       ; For swapping drive numbers
     199%endif     
     200%ifdef MODULE_DRIVEXLATE
     201    %include "DriveXlate.asm"       ; For swapping drive numbers, must come immediately after HotkeyBar.asm
    200202%endif
    201203
     
    211213    ; Boot loader
    212214    %include "Int19h.asm"           ; For Int 19h, Boot Loader
     215    %include "BootSector.asm"       ; For loading boot sector
    213216    %include "Int19hReset.asm"      ; INT 19h handler for proper system reset
    214     %include "BootSector.asm"       ; For loading boot sector
    215217
    216218    ; For all device types
Note: See TracChangeset for help on using the changeset viewer.