Possible unwanted result from "VmdtRunCheck"

Possible unwanted result from "VmdtRunCheck" procedure. Since RAX is treated as a volatile register(return value), it must be emptied upon entering the procedure
This commit is contained in:
ReaP
2023-02-06 11:55:50 +01:00
committed by GitHub
parent 2d16980908
commit c2f93ca599
+3 -1
View File
@@ -1,6 +1,8 @@
.CODE
VmdtRunCheck PROC
xor rax, rax
push rsi
push rdi
@@ -14,7 +16,7 @@ VmdtRunCheck PROC
and rsi, rdi
cmp rsi, 0
jne finish
mov ax, 1
mov al, 1
finish:
pop rdi