Changeset 262 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CreateDPT.asm
- Timestamp:
- Feb 24, 2012, 10:28:31 AM (13 years ago)
- google:author:
- gregli@hotmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/CreateDPT.asm
r258 r262 200 200 call Device_FinalizeDPT 201 201 202 ;---------------------------------------------------------------------- 203 ; Update drive counts (hard and floppy) 204 ;---------------------------------------------------------------------- 205 202 206 %ifdef MODULE_SERIAL_FLOPPY 203 207 ; … … 223 227 %endif 224 228 225 ; Fall to .StoreDriveNumberAndUpdateDriveCount226 227 ;--------------------------------------------------------------------228 ; .StoreDriveNumberAndUpdateDriveCount229 ; Parameters:230 ; DS:DI: Ptr to Disk Parameter Table231 ; ES:SI: Ptr to 512-byte ATA information read from the drive232 ; CS:BP: Ptr to IDEVARS for the controller233 ; ES: BDA Segment234 ; Returns:235 ; DL: Drive number for new drive236 ; CF: Always cleared237 ; Corrupts registers:238 ; Nothing239 ;--------------------------------------------------------------------240 .StoreDriveNumberAndUpdateDriveCount:241 mov dl, [es:BDA.bHDCount]242 or dl, 80h ; Set bit 7 since hard disk243 244 229 inc BYTE [RAMVARS.bDrvCnt] ; Increment drive count to RAMVARS 245 inc BYTE [es:BDA.bHDCount] ; Increment drive count to BDA 246 247 cmp BYTE [RAMVARS.bFirstDrv], 0 ; First drive set? 248 ja SHORT .AllDone ; If so, return 249 mov [RAMVARS.bFirstDrv], dl ; Store first drive number 250 251 .AllDone: 230 231 .AllDone: 252 232 clc 253 233 ret
Note:
See TracChangeset
for help on using the changeset viewer.