Changeset 269 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
- Timestamp:
- Feb 27, 2012, 2:58:34 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
r263 r269 63 63 ; Add in hard disks to BDA, finalize our Count and First variables 64 64 ; 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 ; 65 70 mov cx, [RAMVARS.wDrvCntAndFlopCnt] ; Our count of hard disks 66 test cl, cl67 jz .AddFloppies ; If none, nothing more to do68 71 69 72 mov al, [es:BDA.bHDCount] … … 72 75 or al, 80h ; Or in hard disk flag 73 76 mov [RAMVARS.bFirstDrv], al ; Store first drive number 74 75 77 76 78 .AddFloppies:
Note:
See TracChangeset
for help on using the changeset viewer.