Changeset 274 in xtideuniversalbios


Ignore:
Timestamp:
Feb 27, 2012, 5:54:32 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Fixed register corruption bugs with the AT build for getting number of hard disks from the BIOS.

File:
1 edited

Legend:

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

    r270 r274  
    159159;       Nothing
    160160;   Returns:
    161 ;       CL:     Number of Floppy Drives
     161;       AL:     Number of Floppy Drives
    162162;       CF:     Cleared if successfull
    163163;               Set if BIOS function not supported
    164164;   Corrupts registers:
    165 ;       CH, ES
     165;       ES
    166166;--------------------------------------------------------------------
    167167%ifdef USE_AT
     
    169169.GetCountFromBIOS:
    170170    push    di
     171    push    es
     172    push    bx
     173    push    cx
    171174    push    dx
    172     push    bx
    173175
    174176    mov     ah, 08h                 ; Get Drive Parameters
     
    177179    mov     al, dl                  ; Number of Floppy Drives to AL
    178180
     181    pop     dx
     182    pop     cx
    179183    pop     bx
    180     pop     dx
     184    pop     es
    181185    pop     di
    182186%endif
Note: See TracChangeset for help on using the changeset viewer.