Changeset 23 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization


Ignore:
Timestamp:
Jul 1, 2010, 5:33:40 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Booting is now possible from hard disks if floppy controller reset fails.
AH=00h, Disk Controller Reset now returns error code for the requested drive only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm

    r3 r23  
    22; Project name  :   IDE BIOS
    33; Created date  :   23.3.2010
    4 ; Last update   :   2.5.2010
     4; Last update   :   1.7.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for initializing the BIOS.
     
    418418ALIGN JUMP_ALIGN
    419419Initialize_ResetDetectedDrives:
    420     ; Initialize to speed up POST. DOS will reset drives anyway.
    421     eMOVZX  cx, BYTE [RAMVARS.bDrvCnt]
    422     jcxz    .Return
    423     mov     dl, [RAMVARS.bFirstDrv]
    424 ALIGN JUMP_ALIGN
    425 .InitLoop:
    426     call    AH9h_InitializeDriveForUse
    427     inc     dx                  ; Next drive
    428     loop    .InitLoop
    429 .Return:
    430     ret
     420    xor     ah, ah              ; Disk Controller Reset
     421    mov     dl, 80h             ; Reset all floppy drives and hard disks
     422    int     INTV_DISK_FUNC
     423    ret
Note: See TracChangeset for help on using the changeset viewer.