-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathst_swap64.asm
More file actions
57 lines (50 loc) · 767 Bytes
/
Copy pathst_swap64.asm
File metadata and controls
57 lines (50 loc) · 767 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.CODE
st_swap:
lea rax , [rsp + 8]
lea rsp , [rcx + 112]
push rax
push rbx
push rcx
push rdx
push QWORD PTR [rax - 8]
push rsi
push rdi
push rbp
push r8
push r9
push r12
push r13
push r14
push r15
mov rsp,rdx
pop r15
pop r14
pop r13
pop r12
pop r9
pop r8
pop rbp
pop rdi
pop rsi
pop rax
pop rdx
pop rcx
pop rbx
pop rsp
push rax
xor eax,eax
ret
st_save_fpu:
add rcx,15
and rcx,0fffffffffffffff0h
fxsave [rcx]
xor eax,eax
ret
st_restore_fpu:
add rcx,15
and rcx,0fffffffffffffff0h
fxrstor [rcx]
xor eax,eax
ret
public st_swap, st_save_fpu, st_restore_fpu
END