forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgmsasm.asm
31 lines (24 loc) · 905 Bytes
/
gmsasm.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
; Licensed to the .NET Foundation under one or more agreements.
; The .NET Foundation licenses this file to you under the MIT license.
;
; *** NOTE: If you make changes to this file, propagate the changes to
; gmsasm.s in this directory
.586
.model flat
include asmconstants.inc
option casemap:none
.code
; int __fastcall LazyMachStateCaptureState(struct LazyMachState *pState);
@LazyMachStateCaptureState@4 proc public
mov [ecx+MachState__pRetAddr], 0 ; marks that this is not yet valid
mov [ecx+MachState__edi], edi ; remember register values
mov [ecx+MachState__esi], esi
mov [ecx+MachState__ebx], ebx
mov [ecx+LazyMachState_captureEbp], ebp
mov [ecx+LazyMachState_captureEsp], esp
mov eax, [esp] ; capture return address
mov [ecx+LazyMachState_captureEip], eax
xor eax, eax
retn
@LazyMachStateCaptureState@4 endp
end