Changes in trunk/XTIDE_Universal_BIOS/Src/Boot/BootMenu.asm [28:3] in xtideuniversalbios


Ignore:
File:
1 edited

Legend:

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

    r28 r3  
    22; Project name  :   IDE BIOS
    33; Created date  :   25.3.2010
    4 ; Last update   :   29.7.2010
     4; Last update   :   1.4.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Displays Boot Menu.
     
    323323;       DS:     RAMVARS segment
    324324;   Returns:
    325 ;       CF:     Set if drive number is valid
     325;       SF:     Set if drive number is valid
    326326;               Clear if drive is not present in system
    327327;   Corrupts registers:
    328 ;       AX, CX
     328;       AX
    329329;--------------------------------------------------------------------
    330330ALIGN JUMP_ALIGN
     
    332332    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
    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
     339ALIGN JUMP_ALIGN
    337340.IsFloppyDriveIsInSystem:
    338     call    FloppyDrive_GetCount    ; Floppy Drive count to CX
    339 .CompareDriveNumberToDriveCount:
     341    call    FloppyDrive_GetCount
    340342    cmp     dl, cl
    341343    ret
Note: See TracChangeset for help on using the changeset viewer.