Changeset 269 in xtideuniversalbios
- Timestamp:
- Feb 27, 2012, 2:58:34 PM (13 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuInfo.asm
r254 r269 21 21 BootMenuInfo_CreateForHardDisk: 22 22 call BootMenuInfo_ConvertDPTtoBX ; ES:BX now points to new BOOTMENUINFO 23 push bx ; Preserve for return24 25 mov di, bx ; Starting pointer at beginning of structure26 23 27 24 ; Store Drive Name … … 45 42 pop si 46 43 pop ds 47 pop bx48 44 49 45 ret -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH0h_HReset.asm
r264 r269 148 148 mov dl, ROMVARS.ideVars0 ; starting Idevars offset 149 149 150 mov cl, [cs:ROMVARS.bIdeCnt] ; get count of ide controllers 151 mov ch, 0 150 call RamVars_GetIdeControllerCountToCX 152 151 jcxz .done ; just in case bIdeCnt is zero (shouldn't be) 153 152 -
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.