Changeset 413 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization


Ignore:
Timestamp:
Apr 28, 2012, 4:23:30 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Hotkeys are now displayed at least 5 seconds.
  • Optimized ROM initialization routine.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm

    r392 r413  
    3333;       Nothing
    3434;--------------------------------------------------------------------
    35 Initialize_FromMainBiosRomSearch:           ; unused entrypoint ok
    36     pushf
    37     push    es
     35Initialize_FromMainBiosRomSearch:       ; unused entrypoint ok
     36    pushf                               ; To store IF
    3837    push    ds
    39     ePUSHA
    4038
    41     LOAD_BDA_SEGMENT_TO es, ax
    42     sti                                     ; Enable interrupts
    43     test    BYTE [es:BDA.bKBFlgs1], (1<<2)  ; Clears ZF if CTRL is held down
     39%ifndef USE_186
     40    push    ax
     41    LOAD_BDA_SEGMENT_TO ds, ax
     42%else
     43    push    BYTE 0
     44    pop     ds
     45%endif
     46
     47    sti                                 ; Enable interrupts for keystrokes
     48    test    BYTE [BDA.bKBFlgs1], (1<<2) ; Clears ZF if CTRL is held down
    4449    jnz     SHORT .SkipRomInitialization
    4550
    4651    ; Install INT 19h handler (boot loader) where drives are detected
    47     mov     al, BIOS_BOOT_LOADER_INTERRUPT_19h
    48     mov     si, Int19h_BootLoaderHandler
    49     call    Interrupts_InstallHandlerToVectorInALFromCSSI
     52    mov     WORD [BIOS_BOOT_LOADER_INTERRUPT_19h*4], Int19h_BootLoaderHandler
     53    mov     [BIOS_BOOT_LOADER_INTERRUPT_19h*4+2], cs
    5054
    5155.SkipRomInitialization:
    52     ePOPA
     56%ifndef USE_186
     57    pop     ax
     58%endif
    5359    pop     ds
    54     pop     es
    5560    popf
    5661    retf
     
    6671;       DS:     RAMVARS segment
    6772;   Corrupts registers:
    68 ;       All
     73;       All, except ES
    6974;--------------------------------------------------------------------
    7075Initialize_AndDetectDrives:
Note: See TracChangeset for help on using the changeset viewer.