Ignore:
Timestamp:
Oct 5, 2021, 1:01:04 PM (3 years ago)
Author:
krille_n_
Message:

Changes:

  • A huge thank you to Jayeson Lee-Steere for adding SST39SF0x0 flash ROM programming support to the configurator (XTIDECFG.COM). This means that there is no longer a need to use a separate program for flashing the Lo-Tech boards and other devices using these flash ROMs.
File:
1 edited

Legend:

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

    r614 r620  
    173173    ret
    174174
     175;--------------------------------------------------------------------
     176; Buffers_GetSelectedEepromSizeInWordsToAX
     177;   Parameters:
     178;       Nothing
     179;   Returns:
     180;       AX:     Selected EEPROM size in WORDs
     181;   Corrupts registers:
     182;       BX
     183;--------------------------------------------------------------------
     184ALIGN JUMP_ALIGN
     185Buffers_GetSelectedEepromSizeInWordsToAX:
     186    eMOVZX  bx, [cs:g_cfgVars+CFGVARS.bEepromType]
     187    mov     ax, [cs:bx+g_rgwEepromTypeToSizeInWords]
     188
     189    cmp     bl, EEPROM_TYPE.SST_39SF
     190    jnz     SHORT .HaveEepromSize
     191    cmp     ax, [cs:g_cfgVars+CFGVARS.wImageSizeInWords]
     192    jae     SHORT .HaveEepromSize       
     193    shl     ax, 1   ; Auto-double SST size when too small.
     194.HaveEepromSize:
     195    ret
    175196
    176197;--------------------------------------------------------------------
     
    181202;       Nothing
    182203;   Corrupts registers:
    183 ;       AX, CX, DI
     204;       AX, BX, CX, DI
    184205;--------------------------------------------------------------------
    185206ALIGN JUMP_ALIGN
     
    187208    push    es
    188209
    189     eMOVZX  di, [cs:g_cfgVars+CFGVARS.bEepromType]
    190     mov     cx, [cs:di+g_rgwEepromTypeToSizeInWords]
     210    call    Buffers_GetSelectedEepromSizeInWordsToAX
     211    mov     cx, ax
    191212    sub     cx, [cs:g_cfgVars+CFGVARS.wImageSizeInWords]    ; CX = WORDs to append
    192213    jbe     SHORT .NoNeedToAppendZeroes
Note: See TracChangeset for help on using the changeset viewer.