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


Ignore:
Timestamp:
Feb 27, 2012, 3:19:35 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Fixed a bug with the number of floppy drives reported, if there were no floppy drives emulated.

File:
1 edited

Legend:

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

    r258 r270  
    130130%ifdef MODULE_SERIAL_FLOPPY
    131131    call    RamVars_UnpackFlopCntAndFirstToAL
     132    js      .UseBIOSorBDA               ; We didn't add in any drives, counts here are not valid
     133       
    132134    adc     al,1                        ; adds in the drive count bit, and adds 1 for count vs. 0-index,
    133                                         ; but still won't impact SF
    134     jns     .UseInternalNumber          ; need to clear CH on the way out, and add in additional drive numbers
    135 
     135    jmp     .FinishCalc                 ; need to clear AH on the way out, and add in minimum drive numbers
     136
     137.UseBIOSorBDA: 
    136138%endif
    137139    call    FloppyDrive_GetCountFromBIOS_or_BDA
    138        
    139 .UseInternalNumber:
     140
     141.FinishCalc:   
    140142    mov     ah, [cs:ROMVARS.bMinFddCnt]
    141143    MAX_U   al, ah
Note: See TracChangeset for help on using the changeset viewer.