source: NonGTP/Xerces/xercesc/util/Platforms/OS2/os2ilck.asm @ 188

Revision 188, 873 bytes checked in by mattausch, 19 years ago (diff)

added xercesc to support

Line 
1        title os2ilck.asm
2        .486
3
4CODE32  segment dword use32 public 'CODE'
5CODE32  ends
6DATA32  segment dword use32 public 'DATA'
7DATA32  ends
8DGROUP  group  DATA32
9        assume  cs:FLAT, ds:FLAT, ss:FLAT, es:FLAT
10CODE32  segment
11        align 04h
12os2InterlockedCompareExchange    proc
13       mov ecx, [esp+4]
14       mov edx, [esp+8]
15       mov eax, [esp+12]
16       lock cmpxchg [ecx], edx
17       ret
18os2InterlockedCompareExchange    endp
19        align 04h
20os2InterlockedIncrement  proc 
21        mov     eax,[esp+4]
22        lock    inc dword ptr[eax]
23        ret     
24os2InterlockedIncrement  endp
25        align 04h
26os2InterlockedDecrement  proc 
27        mov     eax,[esp+4]
28        lock    dec dword ptr[eax]
29        ret     
30os2InterlockedDecrement  endp
31
32public os2InterlockedCompareExchange
33public os2InterlockedIncrement
34public os2InterlockedDecrement
35CODE32  ends
36end
37
Note: See TracBrowser for help on using the repository browser.