Changeset 4224 for trunk/src/kernel32/exceptutil.asm
- Timestamp:
- Sep 8, 2000, 8:07:52 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/exceptutil.asm
r4189 r4224 1 ; $Id: exceptutil.asm,v 1.1 0 2000-09-04 18:24:42sandervl Exp $1 ; $Id: exceptutil.asm,v 1.11 2000-09-08 18:07:49 sandervl Exp $ 2 2 3 3 ;/* … … 53 53 54 54 _RtlUnwind@16 proc near 55 ; fudge return address 56 push eax 57 mov eax, dword ptr [esp+12] 58 mov dword ptr [esp+4], eax 59 pop eax 60 55 61 push dword ptr [esp+4] ;PWINEXCEPTION_FRAME pEndFrame 56 62 push dword ptr [esp+12] ;LPVOID unusedEip … … 135 141 PUBLIC getEAX 136 142 PUBLIC getEBX 137 getEAX 138 ret 139 getEAX 140 141 getEBX 143 getEAX proc near 144 ret 145 getEAX endp 146 147 getEBX proc near 142 148 mov eax, ebx 143 149 ret 144 getEBX 150 getEBX endp 145 151 146 152 PUBLIC GetFS 147 GetFS 148 moveax, fs149 150 GetFS 153 GetFS proc near 154 mov eax, fs 155 ret 156 GetFS endp 151 157 152 158 PUBLIC SetFS 153 SetFS 154 moveax, [esp+4]155 movfs, eax156 157 SetFS 159 SetFS proc near 160 mov eax, [esp+4] 161 mov fs, eax 162 ret 163 SetFS endp 158 164 159 165 PUBLIC getCS 160 getCS 161 moveax, cs162 163 getCS 166 getCS proc near 167 mov eax, cs 168 ret 169 getCS endp 164 170 165 171 PUBLIC getDS 166 getDS 167 moveax, ds168 169 getDS 170 171 172 getDS proc near 173 mov eax, ds 174 ret 175 getDS endp 176 177 PUBLIC SetReturnFS 172 178 SetReturnFS proc near 173 pushfs174 moveax, [esp+8]175 movfs, eax176 popeax177 179 push fs 180 mov eax, [esp+8] 181 mov fs, eax 182 pop eax 183 ret 178 184 SetReturnFS endp 179 185 180 186 PUBLIC getSS 181 getSS 182 movax, ss183 184 getSS 187 getSS proc near 188 mov ax, ss 189 ret 190 getSS endp 185 191 186 192 PUBLIC getES 187 getES 188 moveax, es189 190 getES 193 getES proc near 194 mov eax, es 195 ret 196 getES endp 191 197 192 198 PUBLIC getGS 193 getGS 194 moveax, gs195 196 getGS 197 198 199 getGS proc near 200 mov eax, gs 201 ret 202 getGS endp 203 204 PUBLIC getESP 199 205 getESP proc near 200 moveax, esp201 202 getESP 203 204 206 mov eax, esp 207 ret 208 getESP endp 209 210 PUBLIC RestoreOS2FS 205 211 RestoreOS2FS proc near 206 push150bh207 movax, fs208 popfs209 212 push 150bh 213 mov ax, fs 214 pop fs 215 ret 210 216 RestoreOS2FS endp 211 217 212 218 PUBLIC _Mul32x32to64 213 219 _Mul32x32to64 proc near 214 pushebp215 movebp, esp216 pusheax217 pushedx218 pushedi219 220 mov edi, [ebp+8];64 bits result221 mov eax, [ebp+12];op1222 mov edx, [ebp+16];op2223 muledx224 mov[edi], eax225 mov[edi+4], edx226 227 popedi228 popedx229 popeax230 popebp231 220 push ebp 221 mov ebp, esp 222 push eax 223 push edx 224 push edi 225 226 mov edi, [ebp+8] ;64 bits result 227 mov eax, [ebp+12] ;op1 228 mov edx, [ebp+16] ;op2 229 mul edx 230 mov [edi], eax 231 mov [edi+4], edx 232 233 pop edi 234 pop edx 235 pop eax 236 pop ebp 237 ret 232 238 _Mul32x32to64 endp 233 239
Note:
See TracChangeset
for help on using the changeset viewer.