Ignore:
Timestamp:
Feb 28, 2011, 4:23:58 PM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Configurator v2:

  • Warm boot flag is now reset when rebooting.
  • Checksum generation no longer corrupts images when image size is less than EEPROM size.
  • Configuration and flashing menu items are now displayed when loading BIOS from EEPROM.
File:
1 edited

Legend:

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

    r68 r118  
    1 ; File name     :   EEPROM.asm
    21; Project name  :   XTIDE Univeral BIOS Configurator v2
    3 ; Created date  :   19.4.2010
    4 ; Last update   :   9.12.2010
    52; Author        :   Tomi Tilli
    63; Description   :   Functions for managing EEPROM contents.
     
    3128
    3229;--------------------------------------------------------------------
     30; EEPROM_GetSmallestEepromSizeInWordsToCXforImageWithWordSizeInAX
     31;   Parameters:
     32;       AX:     Image size in WORDs
     33;   Returns:
     34;       CX:     Required EEPROM size in WORDs
     35;       CF:     Set if EEPROM size found
     36;               Cleared if no valid EEPROM found
     37;   Corrupts registers:
     38;       BX
     39;--------------------------------------------------------------------
     40ALIGN JUMP_ALIGN
     41EEPROM_GetSmallestEepromSizeInWordsToCXforImageWithWordSizeInAX:
     42    mov     bx, g_rgwEepromTypeToSizeInWords
     43    mov     cx, NUMBER_OF_EEPROM_TYPES
     44ALIGN JUMP_ALIGN
     45.CheckNextEepromSize:
     46    cmp     ax, [cs:bx]
     47    jbe     SHORT .ReturnEepromSizeInAX
     48    inc     bx
     49    inc     bx
     50    loop    .CheckNextEepromSize
     51    clc     ; None of the supported EEPROMs are large enough
     52    ret
     53ALIGN JUMP_ALIGN
     54.ReturnEepromSizeInAX:
     55    mov     cx, [cs:bx]
     56    stc
     57    ret
     58
     59
     60;--------------------------------------------------------------------
    3361; EEPROM_LoadXtideUniversalBiosFromRomToRamBufferAndReturnSizeInDXCX
    3462;   Parameters:
Note: See TracChangeset for help on using the changeset viewer.