- Timestamp:
- Feb 6, 2011, 12:36:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/OldWindowsHelper.asm
r779 r799 1 1 .486 2 2 .model flat, stdcall 3 4 ImportTrapLocal MACRO name, arg 5 @CATSTR(<_imp__>, name, <@>, arg) dd @CATSTR(name, <_Helper@>, arg) 6 PUBLIC @CATSTR(<_imp__>, name, <@>, arg) 7 ENDM 8 9 ImportTrap MACRO name, arg 10 ImportTrapLocal name, arg 11 EXTERN @CATSTR(name, <_Helper@>, arg) : DWORD 12 ENDM 13 3 14 .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 41 24 42 25 .code 43 InterlockedCompareExchange_Helper PROC PRIVATE26 InterlockedCompareExchange_Helper@12 PROC PRIVATE 44 27 mov ecx,[esp+4] 45 28 mov edx,[esp+8] … … 47 30 lock cmpxchg [ecx],edx 48 31 ret 12 49 InterlockedCompareExchange_Helper ENDP32 InterlockedCompareExchange_Helper@12 ENDP 50 33 end
Note:
See TracChangeset
for help on using the changeset viewer.