Changeset 492 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h


Ignore:
Timestamp:
Dec 21, 2012, 1:01:55 AM (12 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/Handlers/Int19h/BootSector.asm

    r428 r492  
    3333;       AX, CX, DH, SI, DI, (DL if failed to read boot sector)
    3434;--------------------------------------------------------------------
    35 BootSector_TryToLoadFromDriveDL:
     35BootSector_TryToLoadFromDriveDL_AndBoot:
    3636    call    DetectPrint_TryToBootFromDL
    3737    call    LoadFirstSectorFromDriveDL
     
    4444.AlwaysBootFromFloppyDriveForBooterGames:
    4545    stc
    46     ret
     46    jmp     SHORT JumpToBootSector_or_RomBoot       
    4747.FailedToLoadFirstSector:
    4848    call    DetectPrint_FailedToLoadFirstSector
    49     clc
    5049    ret
    5150.FirstHardDiskSectorNotBootable:
    5251    mov     si, g_szBootSectorNotFound
    5352    call    DetectPrint_NullTerminatedStringFromCSSIandSetCF
    54     clc
    5553    ret
     54
     55%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS       
     56  %ifdef MODULE_DRIVEXLATE
     57    %if TryToBoot_FallThroughTo_BootSector_TryToLoadFromDriveDL_AndBoot <> BootSector_TryToLoadFromDriveDL_AndBoot
     58      %error "TryToBoot_FallThroughTo_BootSector_TryToLoadFromDriveDL_AndBoot <> BootSector_TryToLoadFromDriveDL_AndBoot, BootSector must come immediately after int19h.asm"
     59    %endif
     60  %endif
     61%endif
    5662
    5763;--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.