Ignore:
Timestamp:
Jul 11, 2018, 9:44:43 AM (6 years ago)
Author:
aitotat
Message:

Windows 95 CMOS hack now works with Award BIOSes.
Some small optimizations to INT 19h and INT 19h reset handlers.
Added menuitem to configurator for clearing BDA drive count.

File:
1 edited

Legend:

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

    r596 r597  
    118118        jnz     SHORT .ClearBdaDriveCount       ; Unsupported BIOS, use plan B
    119119
    120         ; Now we can alter CMOS location 12h
     120        ; Now we can alter CMOS location 12h. Important! We set type for drive 1
     121        ; (primary slave) and not for drive 0! Award BIOS locks if we set drive 0 type to Fh.
     122        ; We cannot set it to less either since that will fully set predefined hard drive type to the BIOS.
     123        ; Windows 95 only cares that the CMOS location 12h is non-zero.
    121124        mov     dl, HARD_DISK_TYPES
    122         mov     al, 0F0h    ; Drive 0 type 16...47 but Windows doesn't care as long as this is not zero
     125        mov     al, 0Fh ; Drive 1 type 16...47 (defined elsewhere in the CMOS)
    123126        call    CMOS_WriteALtoIndexInDL
    124127        call    CMOS_StoreNewChecksumFor10hto2Dh
Note: See TracChangeset for help on using the changeset viewer.