Changeset 50 in xtideuniversalbios for trunk/Assembly_Library/Src/Menu/Dialog


Ignore:
Timestamp:
Oct 9, 2010, 5:47:26 PM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to Assembly Library:
Removed Memory_ExchangeSSBPwithESDI since it obviously corrupted stack.
CGA detection is now only done once when initializing Display Context.
Moved File Library defines to File.inc.

Location:
trunk/Assembly_Library/Src/Menu/Dialog
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Menu/Dialog/Dialog.asm

    r48 r50  
    22; Project name  :   Assembly Library
    33; Created date  :   6.8.2010
    4 ; Last update   :   7.10.2010
     4; Last update   :   9.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Common functions for many dialogs.
     
    2626    push    ds
    2727    mov     di, bp                              ; Backup parent MENU
    28     eENTER_STRUCT DIALOG_size
    29 
    3028    mov     cx, DIALOG_size
     29    eENTER_STRUCT cx
     30
    3131    call    Memory_ZeroSSBPwithSizeInCX
    3232    mov     [bp+DIALOG.fpDialogIO], si
  • trunk/Assembly_Library/Src/Menu/Dialog/DialogFile.asm

    r48 r50  
    22; Project name  :   Assembly Library
    33; Created date  :   6.9.2010
    4 ; Last update   :   4.10.2010
     4; Last update   :   9.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Displays file dialog.
     
    114114    call    LoadItemStringBufferToESDI
    115115    call    SortDirectoryContentsStringFromESDIwithCountInCX
    116     push    ss
    117     pop     ds
    118     mov     si, bp
     116    call    Memory_CopySSBPtoDSSI
    119117    call    Dialog_EventInitializeMenuinitFromDSSI
    120118    call    GetInfoLinesToCXandDialogFlagsToAX
     
    199197ALIGN JUMP_ALIGN
    200198.ClearDLifInRootDirectory:
    201     push    es
    202     pop     ds
    203     mov     si, di
     199    call    Memory_CopyESDItoDSSI
    204200    call    Directory_WriteCurrentPathToDSSI
    205201    mov     dl, [si]
     
    511507    add     di, BYTE FILE_DIALOG_IO.szFile
    512508    mov     cx, FILENAME_BUFFER_SIZE-1
    513     cld
    514     rep movsb
     509    call    Memory_CopyCXbytesFromDSSItoESDI
    515510    xor     ax, ax
    516511    stosb                       ; Terminate with NULL
    517     jmp     CloseFileDialogAfterSuccessfullSelection
     512    jmp     SHORT CloseFileDialogAfterSuccessfullSelection
    518513
    519514;--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.