Changeset 799 in dev for branches


Ignore:
Timestamp:
Feb 6, 2011, 12:36:43 AM (14 years ago)
Author:
イグトランス (egtra)
Message:

OldWindowsHelper.asmの内容をマクロによりまとめる。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/OldWindowsHelper.asm

    r779 r799  
    11.486
    22.model flat, stdcall
     3
     4ImportTrapLocal MACRO name, arg
     5    @CATSTR(<_imp__>, name, <@>, arg) dd @CATSTR(name, <_Helper@>, arg)
     6    PUBLIC @CATSTR(<_imp__>, name, <@>, arg)
     7ENDM
     8
     9ImportTrap MACRO name, arg
     10    ImportTrapLocal name, arg
     11    EXTERN @CATSTR(name, <_Helper@>, arg) : DWORD
     12ENDM
     13
    314.data
    4     _imp__IsDebuggerPresent@0 dd IsDebuggerPresent_Helper@0
    5     PUBLIC _imp__IsDebuggerPresent@0
    6 
    7     _imp__EncodePointer@4 dd EncodePointer_Helper@4
    8     PUBLIC _imp__EncodePointer@4
    9 
    10     _imp__DecodePointer@4 dd DecodePointer_Helper@4
    11     PUBLIC _imp__DecodePointer@4
    12 
    13     _imp__IsProcessorFeaturePresent@4 dd IsProcessorFeaturePresent_Helper@4
    14     PUBLIC _imp__IsProcessorFeaturePresent@4
    15 
    16     _imp__HeapSetInformation@16 dd HeapSetInformation_Helper@16
    17     PUBLIC _imp__HeapSetInformation@16
    18 
    19     _imp__InitializeCriticalSectionAndSpinCount@8 dd InitializeCriticalSectionAndSpinCount_Helper@8
    20     PUBLIC _imp__InitializeCriticalSectionAndSpinCount@8
    21 
    22     _imp__InterlockedPushEntrySList@8 dd InterlockedPushEntrySList_Helper@8
    23     PUBLIC _imp__InterlockedPushEntrySList@8
    24 
    25     _imp__InterlockedPopEntrySList@4 dd InterlockedPopEntrySList_Helper@4
    26     PUBLIC _imp__InterlockedPopEntrySList@4
    27 
    28     _imp__InterlockedCompareExchange@12 dd InterlockedCompareExchange_Helper
    29     PUBLIC _imp__InterlockedCompareExchange@12
    30 
    31     EXTERN IsDebuggerPresent_Helper@0 : DWORD
    32     EXTERN EncodePointer_Helper@4 : DWORD
    33     EXTERN DecodePointer_Helper@4 : DWORD
    34     EXTERN IsProcessorFeaturePresent_Helper@4 : DWORD
    35     EXTERN HeapSetInformation_Helper@16 : DWORD
    36     EXTERN InitializeCriticalSectionAndSpinCount_Helper@8 : DWORD
    37     EXTERN InterlockedPushEntrySList_Helper@8 : DWORD
    38     EXTERN InterlockedPopEntrySList_Helper@4 : DWORD
    39 
    40     EXTERN _imp__InitializeCriticalSection@4 : DWORD
     15    ImportTrap IsDebuggerPresent, 0
     16    ImportTrap EncodePointer, 4
     17    ImportTrap DecodePointer, 4
     18    ImportTrap IsProcessorFeaturePresent, 4
     19    ImportTrap HeapSetInformation, 16
     20    ImportTrap InitializeCriticalSectionAndSpinCount, 8
     21    ImportTrap InterlockedPushEntrySList, 8
     22    ImportTrap InterlockedPopEntrySList, 4
     23    ImportTrapLocal InterlockedCompareExchange, 12
    4124
    4225.code
    43     InterlockedCompareExchange_Helper PROC PRIVATE
     26    InterlockedCompareExchange_Helper@12 PROC PRIVATE
    4427        mov             ecx,[esp+4]
    4528        mov             edx,[esp+8]
     
    4730        lock cmpxchg    [ecx],edx
    4831        ret             12
    49     InterlockedCompareExchange_Helper ENDP
     32    InterlockedCompareExchange_Helper@12 ENDP
    5033end
Note: See TracChangeset for help on using the changeset viewer.