Changeset 68 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages


Ignore:
Timestamp:
Dec 9, 2010, 6:36:00 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to Configurator v2:

  • Finally ready for testing.
Location:
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/FlashMenu.asm

    r65 r68  
    185185ALIGN JUMP_ALIGN
    186186StartFlashing:
     187    call    .MakeSureThatImageFitsInEeprom
     188    jc      SHORT .InvalidFlashingParameters
    187189    push    es
    188190    push    ds
     
    200202    pop     ds
    201203    pop     es
     204.InvalidFlashingParameters:
     205    ret
     206
     207;--------------------------------------------------------------------
     208; .MakeSureThatImageFitsInEeprom
     209;   Parameters:
     210;       SS:BP:  Ptr to MENU
     211;   Returns:
     212;       Nothing
     213;   Corrupts registers:
     214;       AX, BX, DX
     215;--------------------------------------------------------------------
     216ALIGN JUMP_ALIGN
     217.MakeSureThatImageFitsInEeprom:
     218    call    .GetSelectedEepromSizeInWordsToAX
     219    cmp     ax, [cs:g_cfgVars+CFGVARS.wImageSizeInWords]
     220    jae     SHORT .ImageFitsInSelectedEeprom
     221    mov     dx, g_szErrEepromTooSmall
     222    call    Dialogs_DisplayErrorFromCSDX
     223    stc
     224    ret
     225ALIGN JUMP_ALIGN
     226.ImageFitsInSelectedEeprom:
     227    clc
    202228    ret
    203229
     
    270296ALIGN JUMP_ALIGN
    271297.GetNumberOfPagesToFlashToAX:
    272     eMOVZX  bx, BYTE [si+FLASHVARS.bEepromType]
    273     mov     ax, [cs:bx+g_rgwEepromTypeToSizeInWords]
     298    call    .GetSelectedEepromSizeInWordsToAX
    274299    xor     dx, dx
    275300    shl     ax, 1       ; Size in bytes to...
     
    282307    ret
    283308
     309;--------------------------------------------------------------------
     310; .GetSelectedEepromSizeInWordsToAX
     311;   Parameters:
     312;       Nothing
     313;   Returns:
     314;       AX:     Selected EEPROM size in WORDs
     315;   Corrupts registers:
     316;       BX
     317;--------------------------------------------------------------------
     318ALIGN JUMP_ALIGN
     319.GetSelectedEepromSizeInWordsToAX:
     320    eMOVZX  bx, BYTE [cs:g_cfgVars+CFGVARS.bEepromType]
     321    mov     ax, [cs:bx+g_rgwEepromTypeToSizeInWords]
     322    ret
    284323
    285324;--------------------------------------------------------------------
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/MainMenu.asm

    r59 r68  
    22; Project name  :   XTIDE Universal BIOS Configurator v2
    33; Created date  :   6.10.2010
    4 ; Last update   :   19.11.2010
     4; Last update   :   9.12.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Main menu structs and functions.
     
    226226LoadXtideUniversalBiosFromRom:
    227227    call    Buffers_SaveChangesIfFileLoaded
    228     call    EEPROM_LoadXtideUniversalBiosFromRomToRamBuffer
     228    call    EEPROM_LoadXtideUniversalBiosFromRomToRamBufferAndReturnSizeInDXCX
    229229    mov     ax, FLG_CFGVARS_ROMLOADED
    230     call    Buffers_NewBiosWithSizeInCXandSourceInAXhasBeenLoadedForConfiguration
    231     push    cs
    232     pop     ds
    233     mov     si, g_szDlgMainLoadROM
    234     CALL_MENU_LIBRARY DisplayMessageWithInputInDSSI
    235     ret
     230    call    Buffers_NewBiosWithSizeInDXCXandSourceInAXhasBeenLoadedForConfiguration
     231    mov     dx, g_szDlgMainLoadROM
     232    jmp     Dialogs_DisplayNotificationFromCSDX
    236233
    237234
     
    241238    call    EEPROM_LoadOldSettingsFromRomToRamBuffer
    242239    and     WORD [g_cfgVars+CFGVARS.wFlags], ~FLG_CFGVARS_UNSAVED
    243     push    cs
    244     pop     ds
    245     mov     si, g_szDlgMainLoadStngs
    246     CALL_MENU_LIBRARY DisplayMessageWithInputInDSSI
    247     ret
     240    mov     dx, g_szDlgMainLoadStngs
     241    jmp     Dialogs_DisplayNotificationFromCSDX
Note: See TracChangeset for help on using the changeset viewer.