Changeset 88 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization


Ignore:
Timestamp:
Jan 27, 2011, 8:14:13 AM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Now uses new libraries (untested)
  • Non-working since code size is too large
Location:
trunk/XTIDE_Universal_BIOS/Src/Initialization
Files:
1 deleted
1 edited

Legend:

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

    r86 r88  
    1 ; Project name  :   IDE BIOS
     1; Project name  :   XTIDE Universal BIOS
    22; Description   :   Functions for printing drive detection strings.
    33
     
    1414;       Nothing
    1515;   Corrupts registers:
    16 ;       AX, CX, DX, SI
     16;       AX, SI
    1717;--------------------------------------------------------------------
    1818ALIGN JUMP_ALIGN
    1919DetectPrint_RomFoundAtSegment:
    20     push    cs
    21     ePUSH_T ax, ROMVARS.szTitle
     20    push    bp
     21
    2222    mov     si, g_szRomAt
    23     jmp     SHORT DetectPrint_4BytesPushedToStack
     23    mov     bp, sp
     24    ePUSH_T ax, ROMVARS.szTitle         ; Bios title string
     25    push    cs                          ; BIOS segment
     26    jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
    2427
    2528
     
    3437;       Nothing
    3538;   Corrupts registers:
    36 ;       AX, CX, DX, SI
     39;       AX, SI
    3740;--------------------------------------------------------------------
    3841ALIGN JUMP_ALIGN
     
    5053; DetectPrint_StartingDriveDetect
    5154;   Parameters:
    52 ;       AX:     Offset to "Master" or "Slave" string
     55;       CS:AX:  Ptr to "Master" or "Slave" string
    5356;       CS:BP:  Ptr to IDEVARS
    5457;   Returns:
    5558;       Nothing
    5659;   Corrupts registers:
    57 ;       AX, CX, DX, SI
     60;       AX, SI
    5861;--------------------------------------------------------------------
    5962ALIGN JUMP_ALIGN
    6063DetectPrint_StartingDriveDetect:
    61     push    WORD [cs:bp+IDEVARS.wPort]
    62     push    ax
     64    push    bp
     65
     66    mov     si, [cs:bp+IDEVARS.wPort]
     67    mov     bp, sp
     68    push    ax                          ; Push "Master" or "Slave"
     69    push    si                          ; Push port number
    6370    mov     si, g_szDetect
    64 DetectPrint_4BytesPushedToStack:
    65     mov     dh, 4                       ; 4 bytes pushed to stack
    66     jmp     PrintString_JumpToFormat
     71    jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
    6772
    6873
     
    7984;       Nothing
    8085;   Corrupts registers:
    81 ;       AX, DX, SI
     86;       AX, SI
    8287;--------------------------------------------------------------------
    8388ALIGN JUMP_ALIGN
    8489DetectPrint_DriveNameOrNotFound:
     90    push    di
    8591    jc      SHORT .PrintDriveNotFound
     92    push    bx
     93
    8694    lea     si, [bx+BOOTNFO.szDrvName]
    87     call    PrintString_FromES
    88     jmp     Print_Newline
     95    mov     bx, es
     96    CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromBXSI
     97    CALL_DISPLAY_LIBRARY PrintNewlineCharacters
     98
     99    pop     bx
     100    pop     di
     101    ret
     102
    89103ALIGN JUMP_ALIGN
    90104.PrintDriveNotFound:
    91105    mov     si, g_szNotFound
    92     jmp     PrintString_FromCS
     106    call    PrintNullTerminatedStringFromCSSIandSetCF
     107    pop     di
     108    ret
Note: See TracChangeset for help on using the changeset viewer.