Changeset 270 in xtideuniversalbios


Ignore:
Timestamp:
Feb 27, 2012, 3:19:35 PM (12 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.

Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
2 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
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm

    r262 r270  
    174174;       AL:     First floppy drive number supported
    175175;       CF:     Number of floppy drives supported (clear = 1, set = 2)
     176;       SF:     Emulating drives (clear = yes, set = no)
    176177;   Corrupts registers:
    177178;       Nothing
Note: See TracChangeset for help on using the changeset viewer.