Ignore:
File:
1 edited

Legend:

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

    r28 r3  
    22; Project name  :   IDE BIOS
    33; Created date  :   21.9.2007
    4 ; Last update   :   1.8.2010
     4; Last update   :   12.4.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Int 13h BIOS functions (Floppy and Hard disk).
     
    5757    call    RamVars_IsFunctionHandledByThisBIOS
    5858    jnc     SHORT Int13h_DirectCallToAnotherBios
    59     ;DEBUG_PRINT_DRIVE_AND_FUNCTION
    6059
    6160    ; Jump to correct BIOS function
     
    8988Int13h_UnsupportedFunction:
    9089Int13h_DirectCallToAnotherBios:
    91     ; Temporarily store original DI and DS from stack to RAMVARS
     90    ; Temporarily store original DI and DS to RAMVARS
    9291    pop     WORD [RAMVARS.wI13hDI]
    9392    pop     WORD [RAMVARS.wI13hDS]
     
    148147;
    149148; Int13h_ReturnWithoutSwappingDrives
    150 ; Int13h_StoreErrorCodeToBDAandPopDSDIandReturn
    151 ; Int13h_StoreErrorCodeToBDAandPopXRegsAndReturn
    152149; Int13h_PopXRegsAndReturn
    153150; Int13h_PopDiDsAndReturn
     
    163160Int13h_ReturnWithoutSwappingDrives:
    164161    pushf
    165     dec     BYTE [RAMVARS.xlateVars+XLATEVARS.bRecurCnt]    ; Preserves CF
    166     call    HError_StoreBiosErrorCodeFromAHtoBDA
    167     jmp     SHORT Int13h_Leave
    168 
    169 ALIGN JUMP_ALIGN
    170 Int13h_StoreErrorCodeToBDAandPopDSDIandReturn:
    171     call    HError_StoreBiosErrorCodeFromAHtoBDA
    172     jmp     SHORT Int13h_PopDiDsAndReturn
    173 
    174 ALIGN JUMP_ALIGN
    175 Int13h_StoreErrorCodeToBDAandPopXRegsAndReturn:
    176     call    HError_StoreBiosErrorCodeFromAHtoBDA
     162    dec     BYTE [RAMVARS.xlateVars+XLATEVARS.bRecurCnt]
     163    jmp     SHORT Int13h_StoreErrorCodeAndLeave
    177164ALIGN JUMP_ALIGN
    178165Int13h_PopXRegsAndReturn:
     
    186173    pushf
    187174    call    DriveXlate_WhenLeavingInt13h
     175Int13h_StoreErrorCodeAndLeave:
     176    LOAD_BDA_SEGMENT_TO ds, di
     177    mov     [BDA.bHDLastSt], ah         ; Store error code
    188178Int13h_Leave:
    189179    popf
Note: See TracChangeset for help on using the changeset viewer.