Changeset 364 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs


Ignore:
Timestamp:
Mar 27, 2012, 4:21:58 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Advanced ATA Module variables are now kept in DPTs.
  • Forced full mode when using Advanced ATA Module.
Location:
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/AccessDPT.asm

    r358 r364  
    44; Section containing code
    55SECTION .text
     6
     7%ifdef MODULE_ADVANCED_ATA
     8;--------------------------------------------------------------------
     9; AccessDPT_GetIdeBasePortToBX
     10;   Parameters:
     11;       DS:DI:  Ptr to Disk Parameter Table
     12;   Returns:
     13;       BX:     IDE Base Port Address
     14;   Corrupts registers:
     15;       Nothing
     16;--------------------------------------------------------------------
     17ALIGN JUMP_ALIGN
     18AccessDPT_GetIdeBasePortToBX:
     19    eMOVZX  bx, [di+DPT.bIdevarsOffset]         ; CS:BX points to IDEVARS
     20    mov     bx, [cs:bx+IDEVARS.wPort]
     21    ret
     22
     23%endif
     24
    625
    726;--------------------------------------------------------------------
  • trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/RamVars.asm

    r294 r364  
    3131;--------------------------------------------------------------------
    3232.StealMemoryForRAMVARS:
     33    ; Always steal memory when using Advanced ATA module since it
     34    ; uses larger DPTs
     35%ifndef MODULE_ADVANCED_ATA
    3336    mov     ax, LITE_MODE_RAMVARS_SEGMENT
    3437    test    BYTE [cs:ROMVARS.wFlags], FLG_ROMVARS_FULLMODE
    3538    jz      SHORT .InitializeRamvars    ; No need to steal RAM
     39%endif
    3640
    3741    LOAD_BDA_SEGMENT_TO ds, ax, !       ; Zero AX
Note: See TracChangeset for help on using the changeset viewer.