Changeset 259 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot


Ignore:
Timestamp:
Feb 23, 2012, 7:14:06 AM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

For function int13/0h, restored the code to only reset the floppy drives if a floppy drive was passed in for reset. Other minor optimizations. Better create new floppy support in Serial Server.

File:
1 edited

Legend:

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

    r258 r259  
    2323    mov     bp, sp
    2424
    25     call    RamVars_IsDriveHandledByThisBIOS               
     25    call    RamVars_IsDriveHandledByThisBIOS_And_FindDPT_ForDriveNumber
    2626    jc      .notOurs
    2727
    28     call    FindDPT_ForDriveNumber                  ; if it is one of ours, print the string in bootnfo
    2928    call    BootMenuInfo_ConvertDPTtoBX
    3029    mov     si, g_szDriveNumBOOTNFO                 ; special g_szDriveNum that prints from BDA
     
    112111    mov     si, g_szCapacity                            ; Setup print string now, carries through to print call
    113112
    114     xor     di, di
    115     call    RamVars_IsDriveHandledByThisBIOS
    116     jc      SHORT .notours
    117     call    FindDPT_ForDriveNumber                      ; DS:DI to point DPT
    118 .notours:       
    119        
     113    xor     di, di                                      ; Zero DI for checks for our drive later on
     114    call    RamVars_IsDriveHandledByThisBIOS_And_FindDPT_ForDriveNumber
     115
    120116    test    dl, dl                                      ; are we a hard disk?
    121     js      BootMenuPrint_HardDiskRefreshInformation       
    122 
    123     test    di,di
    124     jnz     .ours
     117    js      BootMenuPrint_HardDiskRefreshInformation   
     118
     119    test    di, di
     120    jnz     .ours                                       ; Based on CF from RamVars_IsDriveHandledByThisBIOS above
    125121    call    FloppyDrive_GetType                         ; Get Floppy Drive type to BX
    126122    jmp     .around
     
    187183; BootMenuPrint_HardDiskMenuitemInformation
    188184;   Parameters:
    189 ;       DL:     Untranslated Hard Disk number
    190185;       DS:     RAMVARS segment
    191186;   Returns:
     
    196191ALIGN JUMP_ALIGN
    197192BootMenuPrint_HardDiskRefreshInformation:       
    198     test    di,di
     193    test    di, di
    199194    jz      .HardDiskMenuitemInfoForForeignDrive       
    200195
    201196.HardDiskMenuitemInfoForOurDrive:
    202     ePUSH_T ax, g_szInformation
    203 
    204     ; Get and push total LBA size
    205     call    BootMenuInfo_GetTotalSectorCount
     197    ePUSH_T ax, g_szInformation                     ; Add substring for our hard disk information
     198    call    BootMenuInfo_GetTotalSectorCount        ; Get Total LBA Size
    206199    jmp     .ConvertSectorCountInBXDXAXtoSizeAndPushForFormat
    207200       
Note: See TracChangeset for help on using the changeset viewer.