Changeset 542 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc


Ignore:
Timestamp:
Apr 15, 2013, 4:03:33 PM (11 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Fixed a bug that allowed EBIOS functions for user defined CHS.
  • Simplified user defined CHS and LBA setup a little.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/CustomDPT.inc

    r540 r542  
    3737    .bLchsHeads             resb    1   ; (1...255)
    3838    .bLchsSectorsPerTrack   resb    1   ; (1...63)
     39    .wPchsHeadsAndSectors:
    3940    .bPchsHeads             resb    1   ; (1...16)
     41    .bPchsSectorsPerTrack   resb    1   ; (1...63)
    4042
    4143    ; LBA and remaining P-CHS variables
    4244%ifdef MODULE_EBIOS
    43     .bPchsSectorsPerTrack   resb    1
    4445    .wPchsCylinders         resb    2
    4546    .twLbaSectors           resb    6   ; 48-bit sector count for LBA addressing
     
    5657    FLGL_DPT_ENABLE_IRQ                 EQU (1<<5)              ; Bit 5, Enable IRQ
    5758%endif
     59    FLGL_DPT_LBA                        EQU FLG_DRVNHEAD_LBA    ; Bit 6, Drive supports LBA and so EBIOS functions can be supported
    5860%ifdef MODULE_EBIOS
    59     FLGL_DPT_LBA_AND_EBIOS_SUPPORTED    EQU FLG_DRVNHEAD_LBA    ; Bit 6, Drive supports LBA and so EBIOS functions can be supported
    6061    FLGL_DPT_LBA48                      EQU (1<<7)              ; Bit 7, Drive supports 48-bit LBA (Must be bit 7!)
    6162%endif
Note: See TracChangeset for help on using the changeset viewer.