Changeset 410 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Menus


Ignore:
Timestamp:
Apr 26, 2012, 1:46:54 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Hotkey Bar now support color attributes even when not including MODULE_BOOT_MENU.
  • Cleaned AH=09h code a bit.
  • MODULE_ADVANCED_ATA now properly changes the device type to 32-bit.
  • BSY and RDY timeouts are now 2500 ms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Menus/HotkeyBar.asm

    r399 r410  
    209209;       CF:     Set if selected hotkey
    210210;               Cleared if unselected hotkey
     211;       ES:     BDA segment (zero)
    211212;   Returns:
    212213;       DX:     Description Attribute
     
    234235
    235236GetSelectedHotkeyDescriptionAttributeToDX:
    236     mov     dl, MONO_REVERSE_BLINK
    237     ret
     237    mov     dx, (COLOR_ATTRIBUTE(COLOR_YELLOW, COLOR_CYAN) << 8) | MONO_REVERSE_BLINK
     238    jmp     SHORT SelectAttributeFromDHorDLbasedOnVideoMode
    238239
    239240GetNonSelectedHotkeyDescriptionAttributeToDX:
    240     mov     dl, MONO_REVERSE
    241     ret
     241    mov     dx, (COLOR_ATTRIBUTE(COLOR_BLACK, COLOR_CYAN) << 8) | MONO_REVERSE
     242SelectAttributeFromDHorDLbasedOnVideoMode:
     243    mov     al, [es:BDA.bVidMode]
     244    shr     al, 1
     245    jnc     SHORT .AttributeLoadedToDL  ; Black & White modes
     246    shr     al, 1
     247    jnz     SHORT .AttributeLoadedToDL  ; MDA
     248    mov     dl, dh
     249.AttributeLoadedToDL:
     250    ret
     251
    242252%endif
    243253
Note: See TracChangeset for help on using the changeset viewer.