Rev 7160 | Rev 7774 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7160 | Rev 7773 | ||
---|---|---|---|
Line 96... | Line 96... | ||
96 | CLD |
96 | CLD |
97 | L2: |
97 | L2: |
98 | } |
98 | } |
99 | } |
99 | } |
Line -... | Line 100... | ||
- | 100 | ||
- | 101 | inline fastcall dword memopen(ECX, EDX, ESI) |
|
- | 102 | { |
|
- | 103 | $push ebx |
|
- | 104 | $mov eax, 68 |
|
- | 105 | $mov ebx, 22 |
|
- | 106 | // ecx = area name, 31 symbols max |
|
- | 107 | // edx = area size for SHM_CREATE SHM_OPEN_ALWAYS |
|
- | 108 | // esi = flags, see the list below: |
|
- | 109 | #define SHM_OPEN 0x00 |
|
- | 110 | #define SHM_OPEN_ALWAYS 0x04 |
|
- | 111 | #define SHM_CREATE 0x08 |
|
- | 112 | #define SHM_READ 0x00 |
|
- | 113 | #define SHM_WRITE 0x01 |
|
- | 114 | $int 0x40 |
|
- | 115 | $pop ebx |
|
- | 116 | // eax, edx - please check system documentation |
|
Line -... | Line 117... | ||
- | 117 | } |
|
- | 118 | ||
- | 119 | inline fastcall dword memclose(ECX) |
|
- | 120 | { |
|
- | 121 | $push ebx |
|
- | 122 | $mov eax, 68 |
|
- | 123 | $mov ebx, 23 |
|
- | 124 | $int 0x40 |
|
- | 125 | $pop ebx |
|
Line 100... | Line 126... | ||
100 | 126 | // eax destroyed |
|
101 | 127 | } |
|
102 | 128 | ||
103 | #define mem_Alloc malloc |
129 | #define mem_Alloc malloc |