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


Ignore:
Timestamp:
Feb 27, 2012, 2:58:34 PM (12 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Fixed a bug with reporting the number of hard disks when there were only foreign disks (none managed by this bios). Also a few small optimizations.

File:
1 edited

Legend:

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

    r263 r269  
    6363; Add in hard disks to BDA, finalize our Count and First variables
    6464;
     65; Note that we perform the add to bHDCount and store bFirstDrv even if the count is zero.
     66; This is done because we use the value of .bFirstDrv to know how many drives were in the system
     67; at the time of boot, and to return that number on int13h/8h calls.  Because the count is zero,
     68; FindDPT_ForDriveNumber will not find any drives that are ours.
     69;
    6570    mov     cx, [RAMVARS.wDrvCntAndFlopCnt]     ; Our count of hard disks
    66     test    cl, cl
    67     jz      .AddFloppies                ; If none, nothing more to do
    6871
    6972    mov     al, [es:BDA.bHDCount]
     
    7275    or      al, 80h                     ; Or in hard disk flag     
    7376    mov     [RAMVARS.bFirstDrv], al     ; Store first drive number     
    74 
    7577
    7678.AddFloppies:       
Note: See TracChangeset for help on using the changeset viewer.