Changeset 32 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm


Ignore:
Timestamp:
Aug 6, 2010, 7:11:04 AM (14 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Correct number of drives is now returned from AH=08h even when it is redirected to foreign BIOS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm

    r28 r32  
    22; Project name  :   IDE BIOS
    33; Created date  :   25.3.2010
    4 ; Last update   :   29.7.2010
     4; Last update   :   3.8.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Displays Boot Menu.
     
    5757ALIGN JUMP_ALIGN
    5858BootMenu_GetMenuitemCount:
    59     call    RamVars_GetDriveCounts
    60     mov     ax, cx
     59    call    RamVars_GetHardDiskCountFromBDAtoCX
     60    xchg    ax, cx
    6161    call    FloppyDrive_GetCount
    6262    add     ax, cx
     
    254254    jb      SHORT .ReturnFloppyDriveInDX
    255255    sub     dx, cx                  ; Remove floppy drives from index
    256     call    RamVars_GetDriveCounts
     256    call    RamVars_GetHardDiskCountFromBDAtoCX
    257257    cmp     dx, cx                  ; Hard disk?
    258258    jb      SHORT .ReturnHardDiskInDX
     
    330330ALIGN JUMP_ALIGN
    331331BootMenu_IsDriveInSystem:
    332     test    dl, 80h                 ; Floppy drive?
     332    test    dl, 80h                             ; Floppy drive?
    333333    jz      SHORT .IsFloppyDriveIsInSystem
    334     call    RamVars_GetDriveCounts  ; Hard Disk count to CX
    335     or      cl, 80h                 ; Set Hard Disk bit to CX
     334    call    RamVars_GetHardDiskCountFromBDAtoCX ; Hard Disk count to CX
     335    or      cl, 80h                             ; Set Hard Disk bit to CX
    336336    jmp     SHORT .CompareDriveNumberToDriveCount
    337337.IsFloppyDriveIsInSystem:
    338     call    FloppyDrive_GetCount    ; Floppy Drive count to CX
     338    call    FloppyDrive_GetCount                ; Floppy Drive count to CX
    339339.CompareDriveNumberToDriveCount:
    340340    cmp     dl, cl
Note: See TracChangeset for help on using the changeset viewer.