Changeset 95 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootPrint.asm


Ignore:
Timestamp:
Jan 28, 2011, 11:55:34 AM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Smaller boot sector loading string.
  • Cleaned boot code a bit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootPrint.asm

    r88 r95  
    2020    mov     bp, sp
    2121
    22     mov     ax, g_szHardDrv
     22    mov     ax, g_szHDD
    2323    test    dl, 80h
    24     eCMOVZ  ax, g_szFloppyDrv
    25     push    ax                  ; "Hard Drive" or "Floppy Drive"
     24    eCMOVZ  ax, g_szFDD
     25    push    ax
    2626
    2727    call    DriveXlate_ToOrBack
     
    3535
    3636;--------------------------------------------------------------------
    37 ; BootPrint_BootSectorLoaded
     37; BootPrint_BootSectorResultStringFromBX
    3838;   Parameters:
    39 ;       Nothing
     39;       CS:BX:  Ptr to "found" or "not found"
    4040;   Returns:
    4141;       Nothing
     
    4444;--------------------------------------------------------------------
    4545ALIGN JUMP_ALIGN
    46 BootPrint_BootSectorLoaded:
     46BootPrint_BootSectorResultStringFromBX:
    4747    push    bp
    4848    mov     bp, sp
    4949    ePUSH_T ax, g_szBootSector
    50     ePUSH_T ax, g_szFound
    51     jmp     SHORT PrintBootSectorResult
    52 
    53 ;--------------------------------------------------------------------
    54 ; BootPrint_FirstSectorNotBootable
    55 ;   Parameters:
    56 ;       Nothing
    57 ;   Returns:
    58 ;       Nothing
    59 ;   Corrupts registers:
    60 ;       AX, SI
    61 ;--------------------------------------------------------------------
    62 ALIGN JUMP_ALIGN
    63 BootPrint_FirstSectorNotBootable:
    64     push    bp
    65     mov     bp, sp
    66     ePUSH_T ax, g_szBootSector
    67     ePUSH_T ax, g_szNotFound
    68 PrintBootSectorResult:
     50    push    bx          ; "found" or "not found"
    6951    mov     si, g_szSectRead
    7052    jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
     
    7860;       Nothing
    7961;   Corrupts registers:
    80 ;       AX, CX, SI
     62;       AX, BX, SI
    8163;--------------------------------------------------------------------
    8264ALIGN JUMP_ALIGN
     
    8466    push    bp
    8567    mov     bp, sp
    86     eMOVZX  cx, ah              ; Error code to CX
    87     push    cx                  ; Push INT 13h error code
     68    eMOVZX  bx, ah
     69    push    bx                  ; Push INT 13h error code
    8870    mov     si, g_szReadError
    8971    jmp     BootMenuPrint_FormatCSSIfromParamsInSSBP
Note: See TracChangeset for help on using the changeset viewer.