Changeset 249 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.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/Int13h.asm

    r227 r249  
    105105ALIGN JUMP_ALIGN
    106106.ExchangeInt13hHandlers:
    107     call    ExchangeCurrentInt13hHandlerWithOldInt13hHandler
     107%ifdef USE_186
     108    push    Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
     109    jmp     SHORT ExchangeCurrentInt13hHandlerWithOldInt13hHandler
     110%else
     111    call    ExchangeCurrentInt13hHandlerWithOldInt13hHandler
     112    jmp     SHORT Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
     113%endif
     114
     115
     116;--------------------------------------------------------------------
     117; Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAHandTransferredSectorsFromCL
     118;   Parameters:
     119;       AH:     BIOS Error code
     120;       CL:     Number of sectors actually transferred
     121;       SS:BP:  Ptr to IDEPACK
     122;   Returns:
     123;       All registers are loaded from INTPACK
     124;--------------------------------------------------------------------
     125ALIGN JUMP_ALIGN
     126Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAHandTransferredSectorsFromCL:
     127    mov     [bp+IDEPACK.intpack+INTPACK.al], cl
    108128    ; Fall to Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
    109 
    110129
    111130;--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.