Changeset 246 in xtideuniversalbios


Ignore:
Timestamp:
Feb 13, 2012, 12:19:51 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Configurator v2:

  • Replaced reboot code with a call to Assembly Library reboot function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm

    r181 r246  
    372372    mov     dx, g_szPCFlashSuccessfull
    373373    call    Dialogs_DisplayNotificationFromCSDX
    374     ; Fall to .RebootComputer
    375 
    376 
    377 ;--------------------------------------------------------------------
    378 ; .RebootComputer
    379 ;   Parameters:
    380 ;       Nothing
    381 ;   Returns:
    382 ;       Nothing, function never returns
    383 ;   Corrupts registers:
    384 ;       Doesn't matter
    385 ;--------------------------------------------------------------------
    386 .RebootComputer:
    387 .ResetAT:
    388     LOAD_BDA_SEGMENT_TO ds, ax, !   ; Force use of AX so we can
    389     mov     [BDA.wBoot], ax         ; make sure soft reset flag is not set
    390     mov     al, 0FEh                ; System reset (AT+ keyboard controller)
    391     out     64h, al                 ; Reset computer (AT+)
    392     mov     al, 10
    393     call    Delay_MicrosecondsFromAX
    394 .ResetXT:
    395     xor     ax, ax
    396     push    ax
    397     popf                            ; Clear FLAGS (disables interrupt)
    398     mov     ds, ax
    399     mov     es, ax
    400     mov     ss, ax
    401     jmp     WORD 0FFFFh:0h          ; XT reset
     374    xor     ax, ax          ; Cold boot flag
     375    jmp     Reboot_ComputerWithBootFlagInAX
Note: See TracChangeset for help on using the changeset viewer.