Ignore:
Timestamp:
Feb 6, 2011, 4:35:27 AM (14 years ago)
Author:
イグトランス (egtra)
Message:

OldWindowsHelperを整理

File:
1 edited

Legend:

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

    r799 r800  
    22.model flat, stdcall
    33
    4 ImportTrapLocal MACRO name, arg
    5     @CATSTR(<_imp__>, name, <@>, arg) dd @CATSTR(name, <_Helper@>, arg)
     4ImportTrap MACRO name, arg
     5    @CATSTR(<alias__imp__>, name) LABEL DWORD
     6    @CATSTR(<_imp__>, name, <@>, arg) dd ?
    67    PUBLIC @CATSTR(<_imp__>, name, <@>, arg)
     8    PUBLIC @CATSTR(<alias__imp__>, name)
    79ENDM
    810
    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
    1513    ImportTrap IsDebuggerPresent, 0
    1614    ImportTrap EncodePointer, 4
     
    2119    ImportTrap InterlockedPushEntrySList, 8
    2220    ImportTrap InterlockedPopEntrySList, 4
    23     ImportTrapLocal InterlockedCompareExchange, 12
     21    ImportTrap InterlockedCompareExchange, 12
     22    TrapTableLast LABEL DWORD
    2423
    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
    3330end
Note: See TracChangeset for help on using the changeset viewer.