Changeset 32 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot
- Timestamp:
- Aug 6, 2010, 7:11:04 AM (14 years ago)
- google:author:
- aitotat
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Boot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm
r28 r32 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 25.3.2010 4 ; Last update : 29.7.20104 ; Last update : 3.8.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Displays Boot Menu. … … 57 57 ALIGN JUMP_ALIGN 58 58 BootMenu_GetMenuitemCount: 59 call RamVars_Get DriveCounts60 movax, cx59 call RamVars_GetHardDiskCountFromBDAtoCX 60 xchg ax, cx 61 61 call FloppyDrive_GetCount 62 62 add ax, cx … … 254 254 jb SHORT .ReturnFloppyDriveInDX 255 255 sub dx, cx ; Remove floppy drives from index 256 call RamVars_Get DriveCounts256 call RamVars_GetHardDiskCountFromBDAtoCX 257 257 cmp dx, cx ; Hard disk? 258 258 jb SHORT .ReturnHardDiskInDX … … 330 330 ALIGN JUMP_ALIGN 331 331 BootMenu_IsDriveInSystem: 332 test dl, 80h ; Floppy drive?332 test dl, 80h ; Floppy drive? 333 333 jz SHORT .IsFloppyDriveIsInSystem 334 call RamVars_Get DriveCounts; Hard Disk count to CX335 or cl, 80h ; Set Hard Disk bit to CX334 call RamVars_GetHardDiskCountFromBDAtoCX ; Hard Disk count to CX 335 or cl, 80h ; Set Hard Disk bit to CX 336 336 jmp SHORT .CompareDriveNumberToDriveCount 337 337 .IsFloppyDriveIsInSystem: 338 call FloppyDrive_GetCount ; Floppy Drive count to CX338 call FloppyDrive_GetCount ; Floppy Drive count to CX 339 339 .CompareDriveNumberToDriveCount: 340 340 cmp dl, cl -
trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm
r3 r32 2 2 ; Project name : IDE BIOS 3 3 ; Created date : 26.3.2010 4 ; Last update : 12.4.20104 ; Last update : 3.8.2010 5 5 ; Author : Tomi Tilli 6 6 ; Description : Functions for printing boot menu strings. … … 24 24 call FloppyDrive_GetCount 25 25 mov bl, cl ; Floppy Drive count to BL 26 call RamVars_Get DriveCounts26 call RamVars_GetHardDiskCountFromBDAtoCX 27 27 mov bh, cl ; Hard Disk count to BH 28 28 call BootMenuPrint_GetCoordinatesForBottomStrings
Note:
See TracChangeset
for help on using the changeset viewer.