Ignore:
Timestamp:
Jan 30, 2011, 6:43:08 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Inlined some initialization functions.
  • Removed alignment bytes from some initialization functions.
  • Removed creation of compatible DPTs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm

    r90 r97  
    1717;       Nothing
    1818;--------------------------------------------------------------------
    19 ALIGN JUMP_ALIGN
    2019Initialize_FromMainBiosRomSearch:
    2120    pushf
     
    5352;       Nothing
    5453;--------------------------------------------------------------------
    55 ALIGN JUMP_ALIGN
    5654Initialize_ShouldSkip:
    5755    sti                                     ; Enable interrupts
     
    6765;       ES:     BDA Segment
    6866;   Returns:
    69 ;       Nothing
     67;       DS:     RAMVARS segment
    7068;   Corrupts registers:
    71 ;       All, including segments
     69;       All
    7270;--------------------------------------------------------------------
    73 ALIGN JUMP_ALIGN
    7471Initialize_AndDetectDrives:
    7572    call    DetectPrint_RomFoundAtSegment
    7673    call    RamVars_Initialize
    77     call    RamVars_GetSegmentToDS
    7874    call    Interrupts_InitializeInterruptVectors
    7975    call    DetectDrives_FromAllIDEControllers
    80     call    CompatibleDPT_CreateForDrives80hAnd81h
     76    ; Fall to .StoreDptPointersToBDA
     77
     78;--------------------------------------------------------------------
     79; .StoreDptPointersToBDA
     80;   Parameters:
     81;       DS:     RAMVARS segment
     82;       ES:     BDA and interrupt vector segment (zero)
     83;   Returns:
     84;       Nothing
     85;   Corrupts registers:
     86;       DX, DI
     87;--------------------------------------------------------------------
     88.StoreDptPointersToBDA:
     89    mov     dl, 80h
     90    call    FindDPT_ForDriveNumber  ; DPT to DS:DI
     91    jnc     SHORT .FindForDrive81h  ; Store nothing if not our drive
     92    mov     [es:INTV_HD0DPT*4], di
     93    mov     [es:INTV_HD0DPT*4+2], ds
     94.FindForDrive81h:
     95    inc     dx
     96    call    FindDPT_ForDriveNumber
     97    jnc     SHORT .ResetDetectedDrives
     98    mov     [es:INTV_HD1DPT*4], di
     99    mov     [es:INTV_HD1DPT*4+2], ds
    81100    ; Fall to .ResetDetectedDrives
    82101
    83102;--------------------------------------------------------------------
    84 ; Resets all hard disks.
    85 ;
    86 ; Initialize_ResetDetectedDrives
     103; .ResetDetectedDrives
    87104;   Parameters:
    88105;       DS:     RAMVARS segment
     
    92109;       AX, BX, CX, DX, DI
    93110;--------------------------------------------------------------------
    94 ;ALIGN JUMP_ALIGN
    95111.ResetDetectedDrives:
    96112    jmp     AH0h_ResetHardDisksHandledByOurBIOS
Note: See TracChangeset for help on using the changeset viewer.