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