Changeset 28 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm
- Timestamp:
- Aug 1, 2010, 5:57:24 PM (15 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm
r3 r28 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 25.3.2010 4 ; Last update : 1.4.20104 ; Last update : 29.7.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays Boot Menu. … … 323 323 ; DS: RAMVARS segment 324 324 ; Returns: 325 ; SF: Set if drive number is valid325 ; CF: Set if drive number is valid 326 326 ; Clear if drive is not present in system 327 327 ; Corrupts registers: 328 ; AX 328 ; AX, CX 329 329 ;-------------------------------------------------------------------- 330 330 ALIGN JUMP_ALIGN … … 332 332 test dl, 80h ; Floppy drive? 333 333 jz SHORT .IsFloppyDriveIsInSystem 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 334 call RamVars_GetDriveCounts ; Hard Disk count to CX 335 or cl, 80h ; Set Hard Disk bit to CX 336 jmp SHORT .CompareDriveNumberToDriveCount 340 337 .IsFloppyDriveIsInSystem: 341 call FloppyDrive_GetCount 338 call FloppyDrive_GetCount ; Floppy Drive count to CX 339 .CompareDriveNumberToDriveCount: 342 340 cmp dl, cl 343 341 ret
Note:
See TracChangeset
for help on using the changeset viewer.