Changeset 32 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot


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

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

Location:
trunk/XTIDE_Universal_BIOS/Src/Boot
Files:
2 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
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenuPrint.asm

    r3 r32  
    22; Project name  :   IDE BIOS
    33; Created date  :   26.3.2010
    4 ; Last update   :   12.4.2010
     4; Last update   :   3.8.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for printing boot menu strings.
     
    2424    call    FloppyDrive_GetCount
    2525    mov     bl, cl                  ; Floppy Drive count to BL
    26     call    RamVars_GetDriveCounts
     26    call    RamVars_GetHardDiskCountFromBDAtoCX
    2727    mov     bh, cl                  ; Hard Disk count to BH
    2828    call    BootMenuPrint_GetCoordinatesForBottomStrings
Note: See TracChangeset for help on using the changeset viewer.