Ignore:
Timestamp:
Dec 5, 2010, 6:52:11 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS Configurator v2:

  • All necessary features should now be implemented.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm

    r57 r65  
    22; Project name  :   XTIDE Univeral BIOS Configurator v2
    33; Created date  :   19.4.2010
    4 ; Last update   :   10.10.2010
     4; Last update   :   3.12.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for managing EEPROM contents.
     7
     8; Section containing initialized data
     9SECTION .data
     10
     11ALIGN WORD_ALIGN
     12g_rgwEepromTypeToSizeInWords:
     13    dw      (2<<10) / 2     ; EEPROM_TYPE.2816_2kiB
     14    dw      (8<<10) / 2
     15    dw      (32<<10) / 2
     16    dw      (64<<10) / 2
     17
     18g_rgwEepromPageToSizeInBytes:
     19    dw      1               ; EEPROM_PAGE.1_byte
     20    dw      2
     21    dw      4
     22    dw      8
     23    dw      16
     24    dw      32
     25    dw      64
     26
     27
    728
    829; Section containing code
     
    134155
    135156;--------------------------------------------------------------------
    136 ; EEPROM_GetPointerForFlashingToESDI
     157; EEPROM_LoadFromRomToRamComparisonBuffer
    137158;   Parameters:
    138159;       Nothing
    139160;   Returns:
    140 ;       ES:DI:  Ptr to EEPROM to be flashed
     161;       Nothing
    141162;   Corrupts registers:
    142 ;       Nothing
     163;       BX, CX, SI, DI
    143164;--------------------------------------------------------------------
    144165ALIGN JUMP_ALIGN
    145 EEPROM_GetPointerForFlashingToESDI:
    146     mov     es, [cs:g_cfgVars+CFGVARS.wEepromSegment]
    147     xor     di, di
     166EEPROM_LoadFromRomToRamComparisonBuffer:
     167    push    es
     168    push    ds
     169
     170    mov     ds, [cs:g_cfgVars+CFGVARS.wEepromSegment]
     171    xor     si, si
     172    call    Buffers_GetFlashComparisonBufferToESDI
     173    eMOVZX  bx, BYTE [cs:g_cfgVars+CFGVARS.bEepromType]
     174    mov     cx, [cs:bx+g_rgwEepromTypeToSizeInWords]
     175    cld
     176    rep movsw
     177
     178    pop     ds
     179    pop     es
    148180    ret
Note: See TracChangeset for help on using the changeset viewer.