Skip to content

Commit 5a7c12a

Browse files
authored
Merge pull request #72 from gtker/main
Add xor_reg,reg for zeroing out registers for amd64/x86
2 parents 261d549 + 5296569 commit 5a7c12a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

amd64/amd64_defs.M1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,9 @@ DEFINE test_rax,rax 4885C0
165165
DEFINE wrmsr 0F30
166166
DEFINE xchg_rbx,rax 4893
167167
DEFINE xor_rax,rbx 4831D8
168+
DEFINE xor_eax,eax 31C0
169+
DEFINE xor_ebx,ebx 31DB
170+
DEFINE xor_ecx,ecx 31C9
171+
DEFINE xor_edx,edx 31D2
172+
DEFINE xor_edi,edi 31FF
173+
DEFINE xor_esi,esi 31F6

x86/x86_defs.M1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,9 @@ DEFINE sub_ebx,eax 29C3
100100
DEFINE test_eax,eax 85C0
101101
DEFINE xchg_ebx,eax 93
102102
DEFINE xor_eax,ebx 31D8
103+
DEFINE xor_eax,eax 31C0
104+
DEFINE xor_ebx,ebx 31DB
105+
DEFINE xor_ecx,ecx 31C9
106+
DEFINE xor_edx,edx 31D2
107+
DEFINE xor_edi,edi 31FF
108+
DEFINE xor_esi,esi 31F6

0 commit comments

Comments
 (0)