Changes in trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm [28:3] in xtideuniversalbios
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm
r28 r3 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 25.3.2010 4 ; Last update : 29.7.20104 ; Last update : 1.4.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays Boot Menu. … … 323 323 ; DS: RAMVARS segment 324 324 ; Returns: 325 ; CF: Set if drive number is valid325 ; SF: Set if drive number is valid 326 326 ; Clear if drive is not present in system 327 327 ; Corrupts registers: 328 ; AX , CX328 ; AX 329 329 ;-------------------------------------------------------------------- 330 330 ALIGN JUMP_ALIGN … … 332 332 test dl, 80h ; Floppy drive? 333 333 jz SHORT .IsFloppyDriveIsInSystem 334 call RamVars_GetDriveCounts ; Hard Disk count to CX 335 or cl, 80h ; Set Hard Disk bit to CX 336 jmp SHORT .CompareDriveNumberToDriveCount 334 call RamVars_GetDriveCounts 335 mov ax, 7Fh ; Load mask to clear floppy bit 336 and ax, dx ; AX = Hard Disk index 337 cmp ax, cx ; Valid drive index? 338 ret 339 ALIGN JUMP_ALIGN 337 340 .IsFloppyDriveIsInSystem: 338 call FloppyDrive_GetCount ; Floppy Drive count to CX 339 .CompareDriveNumberToDriveCount: 341 call FloppyDrive_GetCount 340 342 cmp dl, cl 341 343 ret
Note: See TracChangeset
for help on using the changeset viewer.