Changeset 54 in xtideuniversalbios for trunk/Assembly_Library/Src/Util


Ignore:
Timestamp:
Oct 24, 2010, 11:01:17 AM (14 years ago)
Author:
aitotat
google:author:
aitotat
Message:

Changes to Assembly Library:
Drive selection moved to own dialog from File Dialog.
File Dialog now displays loading text for better usability in slow systems.
Moved some functions from Memory.asm to new Registers.asm.

Location:
trunk/Assembly_Library/Src/Util
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Assembly_Library/Src/Util/Memory.asm

    r52 r54  
    22; Project name  :   Assembly Library
    33; Created date  :   14.7.2010
    4 ; Last update   :   11.10.2010
     4; Last update   :   24.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Functions for memory access.
     
    7070    push    di
    7171    push    ax
    72     call    Memory_CopySSBPtoESDI
     72    call    Registers_CopySSBPtoESDI
    7373    call    Memory_ZeroESDIwithSizeInCX
    7474    pop     ax
     
    110110
    111111;--------------------------------------------------------------------
    112 ; Memory_ExchangeDSSIwithESDI
    113 ;   Parameters
    114 ;       Nothing
    115 ;   Returns:
    116 ;       DS:SI and ES:DI are exchanged.
    117 ;   Corrupts registers:
    118 ;       Nothing
    119 ;--------------------------------------------------------------------
    120 ALIGN JUMP_ALIGN
    121 Memory_ExchangeDSSIwithESDI:
    122     push    ds
    123     push    es
    124     pop     ds
    125     pop     es
    126     xchg    si, di
    127     ret
    128 
    129 
    130 ;--------------------------------------------------------------------
    131 ; Memory_CopySSBPtoESDI
    132 ; Memory_CopySSBPtoDSSI
    133 ; Memory_CopyDSSItoESDI
    134 ; Memory_CopyESDItoDSSI
    135 ;   Parameters
    136 ;       Nothing
    137 ;   Returns:
    138 ;       Copies farm pointer to different segment/pointer register pair
    139 ;   Corrupts registers:
    140 ;       Nothing
    141 ;--------------------------------------------------------------------
    142 ALIGN JUMP_ALIGN
    143 Memory_CopySSBPtoESDI:
    144     push    ss
    145     pop     es
    146     mov     di, bp
    147     ret
    148 
    149 ALIGN JUMP_ALIGN
    150 Memory_CopySSBPtoDSSI:
    151     push    ss
    152     pop     ds
    153     mov     si, bp
    154     ret
    155 
    156 ALIGN JUMP_ALIGN
    157 Memory_CopyDSSItoESDI:
    158     push    ds
    159     pop     es
    160     mov     di, si
    161     ret
    162 
    163 ALIGN JUMP_ALIGN
    164 Memory_CopyESDItoDSSI:
    165     push    es
    166     pop     ds
    167     mov     si, di
    168     ret
    169 
    170 
    171 ;--------------------------------------------------------------------
    172 ; Memory_SetZFifNullPointerInDSSI
    173 ;   Parameters
    174 ;       DS:SI:  Far pointer
    175 ;   Returns:
    176 ;       ZF:     Set if NULL pointer in DS:SI
    177 ;   Corrupts registers:
    178 ;       Nothing
    179 ;--------------------------------------------------------------------
    180 ALIGN JUMP_ALIGN
    181 Memory_SetZFifNullPointerInDSSI:
    182     push    ax
    183     mov     ax, ds
    184     or      ax, si
    185     pop     ax
    186     ret
    187 
    188 
    189 ;--------------------------------------------------------------------
    190112; Memory_ReserveCXbytesFromStackToDSSI
    191113;   Parameters
  • trunk/Assembly_Library/Src/Util/Sort.asm

    r46 r54  
    22; Project name  :   Assembly Library
    33; Created date  :   28.9.2010
    4 ; Last update   :   1.10.2010
     4; Last update   :   24.10.2010
    55; Author        :   Tomi Tilli
    66; Description   :   Sorting algorithms
     
    230230
    231231    ; Item DX to Item AX
    232     call    Memory_ExchangeDSSIwithESDI
     232    call    Registers_ExchangeDSSIwithESDI
    233233    call    GetItemPointerToDSSIfromIndexInDX
    234234    call    CopyItemFromDSSItoESDI
     
    236236    ; Stack to Item DX
    237237    call    GetPointerToTemporaryItemToESDI
    238     call    Memory_ExchangeDSSIwithESDI
     238    call    Registers_ExchangeDSSIwithESDI
    239239    call    CopyItemFromDSSItoESDI
    240240
Note: See TracChangeset for help on using the changeset viewer.