Changeset 92 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuEvent.asm


Ignore:
Timestamp:
Jan 27, 2011, 5:44:27 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Removed ROM Boot from boot menu and created a hotkey for it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuEvent.asm

    r88 r92  
    6262    mov     BYTE [si+MENUINIT.bWidth], BOOT_MENU_WIDTH
    6363    call    BootMenu_GetHeightToAHwithItemCountInCL
     64    sub     ah, MENU_SCREEN_BOTTOM_LINES*2
    6465    mov     [si+MENUINIT.bHeight], ah
    6566    stc
     
    9091    call    RamVars_GetSegmentToDS
    9192    call    DriveXlate_Reset
    92     call    BootMenu_ConvertMenuitemToDriveOrFunction
    93     jc      SHORT .UpdatePreviousAndNewMenuitem ; Selection changed to a function
     93    call    BootMenu_ConvertMenuitemFromCXtoDriveInDX
    9494    call    DriveXlate_SetDriveToSwap
    95 
    96 .UpdatePreviousAndNewMenuitem:
    9795    pop     ax      ; Update previous item
    9896    CALL_MENU_LIBRARY RefreshItemFromAX
     
    109107ALIGN JUMP_ALIGN
    110108.KeyStrokeInAX:
    111     xor     ah, ah                  ; ASCII drive letter now in AX
    112     call    BootMenu_ConvertHotkeyToMenuitem
     109    cmp     ah, ROM_BOOT_HOTKEY_SCANCODE
     110    jne     SHORT .CheckDriveHotkeys
     111    int     INTV_BOOT_FAILURE       ; ROM Boot, never returns
     112ALIGN JUMP_ALIGN
     113.CheckDriveHotkeys:
     114    call    BootMenu_ConvertAsciiHotkeyFromALtoMenuitemInCX
    113115    cmp     cx, [bp+MENUINIT.wItems]
    114     jae     SHORT .EventNotHandled  ; Invalid key
     116    jae     SHORT .EventCompleted   ; Invalid key
    115117    xchg    ax, cx
    116118    CALL_MENU_LIBRARY HighlightItemFromAX
     
    159161
    160162    call    RamVars_GetSegmentToDS
    161     call    BootMenu_ConvertMenuitemToDriveOrFunction
    162     jc      SHORT .DrawFunction
     163    call    BootMenu_ConvertMenuitemFromCXtoDriveInDX
    163164    test    dl, 80h                 ; Floppy drive?
    164165    jz      SHORT .DrawFloppyDrive
    165166    jmp     [cs:bx+ITEM_TYPE_REFRESH.HardDisk]
    166 ALIGN JUMP_ALIGN
    167 .DrawFunction:
    168     jmp     [cs:bx+ITEM_TYPE_REFRESH.SpecialFunction]
    169167ALIGN JUMP_ALIGN
    170168.DrawFloppyDrive:
     
    177175    at  ITEM_TYPE_REFRESH.HardDisk,         dw  BootMenuPrint_HardDiskMenuitem
    178176    at  ITEM_TYPE_REFRESH.FloppyDrive,      dw  BootMenuPrint_FloppyMenuitem
    179     at  ITEM_TYPE_REFRESH.SpecialFunction,  dw  BootMenuPrint_FunctionMenuitem
    180177iend
    181178.rgwInformationItemTypeRefresh:
     
    183180    at  ITEM_TYPE_REFRESH.HardDisk,         dw  BootMenuPrint_HardDiskMenuitemInformation
    184181    at  ITEM_TYPE_REFRESH.FloppyDrive,      dw  BootMenuPrint_FloppyMenuitemInformation
    185     at  ITEM_TYPE_REFRESH.SpecialFunction,  dw  BootMenuPrint_ClearInformationArea
    186182iend
Note: See TracChangeset for help on using the changeset viewer.