Ignore:
Timestamp:
Nov 19, 2010, 10:59:52 AM (13 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Configuration Program v2:

  • Menu structure should now be complete.
File:
1 edited

Legend:

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

    r57 r59  
    22; Project name  :   XTIDE Universal BIOS Configurator v2
    33; Created date  :   6.10.2010
    4 ; Last update   :   10.10.2010
     4; Last update   :   19.11.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for accessing file and flash buffers.
     
    181181
    182182;--------------------------------------------------------------------
     183; Buffers_SaveChangesIfFileLoaded
     184;   Parameters:
     185;       Nothing
     186;   Returns:
     187;       Nothing
     188;   Corrupts registers:
     189;       AX, BX, CX, SI, DI
     190;--------------------------------------------------------------------
     191ALIGN JUMP_ALIGN
     192Buffers_SaveChangesIfFileLoaded:
     193    mov     ax, [cs:g_cfgVars+CFGVARS.wFlags]
     194    and     ax, BYTE (FLG_CFGVARS_FILELOADED | FLG_CFGVARS_UNSAVED)
     195    cmp     ax, BYTE (FLG_CFGVARS_FILELOADED | FLG_CFGVARS_UNSAVED)
     196    jne     SHORT .NothingToSave
     197    call    Dialogs_DisplaySaveChangesDialog
     198    jnz     SHORT .NothingToSave
     199    jmp     BiosFile_SaveUnsavedChanges
     200ALIGN JUMP_ALIGN
     201.NothingToSave:
     202    ret
     203
     204
     205;--------------------------------------------------------------------
    183206; Buffers_GenerateChecksum
    184207;   Parameters:
     
    210233
    211234;--------------------------------------------------------------------
     235; Buffers_GetRomvarsFlagsToAX
     236;   Parameters:
     237;       Nothing
     238;   Returns:
     239;       AX:     ROMVARS.wFlags
     240;   Corrupts registers:
     241;       BX
     242;--------------------------------------------------------------------
     243ALIGN JUMP_ALIGN
     244Buffers_GetRomvarsFlagsToAX:
     245    mov     bx, ROMVARS.wFlags
     246    ; Fall to Buffers_GetRomvarsValueToAXfromOffsetInBX
     247
     248;--------------------------------------------------------------------
    212249; Buffers_GetRomvarsValueToAXfromOffsetInBX
    213250;   Parameters:
     
    241278ALIGN JUMP_ALIGN
    242279Buffers_GetFileDialogItemBufferToESDI:
     280    call    Buffers_GetFileBufferToESDI
     281    push    di
     282    mov     di, es
     283    add     di, 1000h       ; Third 64k page
     284    mov     es, di
     285    pop     di
     286    ret
    243287Buffers_GetFileBufferToESDI:
    244288    mov     di, cs
Note: See TracChangeset for help on using the changeset viewer.