Changeset 492 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/RamVars.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/RamVars.inc

    r444 r492  
    2626%endif
    2727
     28%ifdef MODULE_SERIAL_FLOPPY
     29    %define NEED_XLATEVARS
     30%endif
     31
     32%ifdef MODULE_DRIVEXLATE
     33    %define NEED_XLATEVARS
     34%endif
     35
     36
    2837; RAM Variables.
    2938; Variables should be kept to minimum since they might be located
     
    5059
    5160    ; Variables for drive number translation
    52 %ifdef MODULE_HOTKEYS
     61%ifdef NEED_XLATEVARS
    5362    .xlateVars          resb    XLATEVARS_size
    5463%endif
     
    6069
    6170
    62 
     71%ifdef NEED_XLATEVARS
    6372; Variables for translating drive numbers.
    64 %ifdef MODULE_HOTKEYS
    6573    struc XLATEVARS
    6674    %ifdef MODULE_SERIAL_FLOPPY
     
    6977                                        ; and number of drives (low order bit, max 2 drives supported).
    7078                                        ; During initialization, until the end of DetectDrives_FromAllIDEControllers,
    71                                         ; this byte contains the raw number of floppy drives seen (using .bFlopCreateCnt)
     79                                        ; this byte contains the raw number of floppy drives seen
     80                                        ; (using .bFlopCreateCnt)
    7281    %else
    7382                            resb    1   ; alignment
    7483    %endif
     84
     85    %ifdef MODULE_DRIVEXLATE
    7586        .bXlatedDrv         resb    1   ; Drive number after translation
    7687        .wFDandHDswap:
    7788        .bFDSwap            resb    1   ; Floppy Drive to swap to 00h and vice versa
    7889        .bHDSwap            resb    1   ; Hard Drive to swap to 80h and vice versa
     90    %else
     91                            resb    1   ; alignment
     92    %endif
    7993    endstruc
    8094%endif
    81 
    8295
    8396%ifdef MODULE_SERIAL_FLOPPY
Note: See TracChangeset for help on using the changeset viewer.