Changeset 800 in dev for branches/egtra/ab5.0/abdev/OldWindowsHelper.asm
- Timestamp:
- Feb 6, 2011, 4:35:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/egtra/ab5.0/abdev/OldWindowsHelper.asm
r799 r800 2 2 .model flat, stdcall 3 3 4 ImportTrapLocal MACRO name, arg 5 @CATSTR(<_imp__>, name, <@>, arg) dd @CATSTR(name, <_Helper@>, arg) 4 ImportTrap MACRO name, arg 5 @CATSTR(<alias__imp__>, name) LABEL DWORD 6 @CATSTR(<_imp__>, name, <@>, arg) dd ? 6 7 PUBLIC @CATSTR(<_imp__>, name, <@>, arg) 8 PUBLIC @CATSTR(<alias__imp__>, name) 7 9 ENDM 8 10 9 ImportTrap MACRO name, arg 10 ImportTrapLocal name, arg 11 EXTERN @CATSTR(name, <_Helper@>, arg) : DWORD 12 ENDM 13 14 .data 11 .const 12 TrapTableFirst LABEL DWORD 15 13 ImportTrap IsDebuggerPresent, 0 16 14 ImportTrap EncodePointer, 4 … … 21 19 ImportTrap InterlockedPushEntrySList, 8 22 20 ImportTrap InterlockedPopEntrySList, 4 23 ImportTrapLocal InterlockedCompareExchange, 12 21 ImportTrap InterlockedCompareExchange, 12 22 TrapTableLast LABEL DWORD 24 23 25 .code 26 InterlockedCompareExchange_Helper@12 PROC PRIVATE 27 mov ecx,[esp+4] 28 mov edx,[esp+8] 29 mov eax,[esp+12] 30 lock cmpxchg [ecx],edx 31 ret 12 32 InterlockedCompareExchange_Helper@12 ENDP 24 REPEAT 4096 - (TrapTableLast - TrapTableFirst) 25 db ? 26 ENDM 27 28 PUBLIC TrapTableFirst 29 PUBLIC TrapTableLast 33 30 end
Note:
See TracChangeset
for help on using the changeset viewer.