Changeset 414 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Handlers


Ignore:
Timestamp:
May 3, 2012, 12:56:04 PM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • MEMPIOVARS no longer overflow when not building MODULE_EBIOS.
Location:
trunk/XTIDE_Universal_BIOS/Src/Handlers
Files:
2 edited

Legend:

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

    r395 r414  
    4545%ifdef MODULE_HOTKEYS
    4646    call    DriveXlate_ToOrBack
    47 %endif
    4847    mov     [RAMVARS.xlateVars+XLATEVARS.bXlatedDrv], dl
     48%endif
    4949
    5050    call    FindDPT_ForDriveNumberInDL  ; DS:DI points to our DPT, or NULL if not our drive
     
    129129    mov     [bp+IDEPACK.intpack+INTPACK.si], si
    130130    mov     [bp+IDEPACK.intpack+INTPACK.bx], bx
     131%ifdef MODULE_HOTKEYS
    131132    mov     [bp+IDEPACK.intpack+INTPACK.dh], dh
     133%else
     134    mov     [bp+IDEPACK.intpack+INTPACK.dx], dx
     135%endif
    132136    mov     [bp+IDEPACK.intpack+INTPACK.cx], cx
    133137    mov     [bp+IDEPACK.intpack+INTPACK.ax], ax
     
    135139    pop     WORD [bp+IDEPACK.intpack+INTPACK.flags]
    136140    call    RamVars_GetSegmentToDS
    137     cmp     dl, [RAMVARS.xlateVars+XLATEVARS.bXlatedDrv]
     141
     142%ifdef MODULE_HOTKEYS
     143    cmp     dl, [RAMVARS.xlateVars+XLATEVARS.bXlatedDrv]    ; DL is still drive number?
    138144    je      SHORT .ExchangeInt13hHandlers
    139     mov     [bp+IDEPACK.intpack+INTPACK.dl], dl     ; Something is returned in DL
     145    mov     [bp+IDEPACK.intpack+INTPACK.dl], dl ; Something is returned in DL
    140146ALIGN JUMP_ALIGN
    141147.ExchangeInt13hHandlers:
     148%endif
     149
    142150%ifdef USE_186
    143151    push    Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH
     
    192200Int13h_ReturnFromHandlerAfterStoringErrorCodeFromAH_ALHasDriveNumber:
    193201    call    Int13h_SetErrorCodeToBdaAndToIntpackInSSBPfromAH_ALHasDriveNumber
     202
    194203%else
    195204    call    Int13h_SetErrorCodeToBdaAndToIntpackInSSBPfromAH
    196205%endif
     206
    197207Int13h_ReturnFromHandlerWithoutStoringErrorCode:
    198208    or      WORD [bp+IDEPACK.intpack+INTPACK.flags], FLG_FLAGS_IF   ; Return with interrupts enabled
     
    265275    mov     bx, BDA.bHDLastSt
    266276    test    al, al
    267     js      .HardDisk
     277    js      SHORT .HardDisk
    268278    mov     bl, BDA.bFDRetST & 0xff
    269279.HardDisk:
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm

    r413 r414  
    2929;--------------------------------------------------------------------
    3030Int19h_BootLoaderHandler:
    31     sti                                         ; Allow timer interrupts
    32     LOAD_BDA_SEGMENT_TO es, ax                  ; Load BDA segment (zero) to ES
     31    sti                                 ; Enable interrupts
     32    cld                                 ; String instructions to increment pointers
     33    LOAD_BDA_SEGMENT_TO es, ax          ; Load BDA segment (zero) to ES
    3334    ; Fall to .PrepareBootLoaderStack
    3435
Note: See TracChangeset for help on using the changeset viewer.