Changeset 249 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm


Ignore:
Timestamp:
Feb 16, 2012, 1:56:36 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Number of successfully transferred sectors is now returned by all transfer functions (instead of requested sector count).
  • Added INT 19h handler for proper reboot.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm

    r243 r249  
    44; Section containing code
    55SECTION .text
     6
     7;--------------------------------------------------------------------
     8; INT 19h handler that properly reboots the computer when
     9; INT 19h is called.
     10;
     11; Int19h_ResetHandler
     12;   Parameters:
     13;       Nothing
     14;   Returns:
     15;       Never returns (reboots computer)
     16;--------------------------------------------------------------------
     17Int19h_ResetHandler:
     18    mov     ax, BOOT_FLAG_WARM              ; Skip memory tests
     19    jmp     Reboot_ComputerWithBootFlagInAX
     20
    621
    722;--------------------------------------------------------------------
     
    125140    push    cx          ; sgment address for MBR
    126141    push    bx          ; offset address for MBR
     142    mov     bx, BIOS_BOOT_LOADER_INTERRUPT_19h  ; INT 19h interrupt vector offset
     143    mov     si, Int19h_ResetHandler             ; INT 19h handler to reboot the system
     144    call    Interrupts_InstallHandlerToVectorInBXFromCSSI
    127145    retf                ; NOTE: DL is set to the drive number
    128146
Note: See TracChangeset for help on using the changeset viewer.