Changeset 128 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot/BootSector.asm


Ignore:
Timestamp:
Mar 4, 2011, 1:47:17 PM (13 years ago)
Author:
krille_n_@…
google:author:
krille_n_@hotmail.com
Message:

Changes to the XTIDE Universal BIOS:

  • Size optimizations in various files.
File:
1 edited

Legend:

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

    r96 r128  
    2323    jc      SHORT .FailedToLoadFirstSector
    2424
    25     test    dl, 80h
    26     jz      SHORT .AlwaysBootFromFloppyDriveForBooterGames
     25    test    dl, dl
     26    jns     SHORT .AlwaysBootFromFloppyDriveForBooterGames
    2727    cmp     WORD [es:bx+510], 0AA55h        ; Valid boot sector?
    2828    jne     SHORT .FirstHardDiskSectorNotBootable
     
    8484.ResetBootDriveFromDL:
    8585    xor     ax, ax                          ; AH=0h, Disk Controller Reset
    86     test    dl, 80h                         ; Floppy drive?
    87     eCMOVNZ ah, 0Dh                         ; AH=Dh, Reset Hard Disk (Alternate reset)
     86    test    dl, dl                          ; Floppy drive?
     87    jns     SHORT .SkipAltReset
     88    mov     ah, 0Dh                         ; AH=Dh, Reset Hard Disk (Alternate reset)
     89.SkipAltReset:
    8890    int     INTV_DISK_FUNC
    8991    ret
Note: See TracChangeset for help on using the changeset viewer.