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:
@@ -1,6 +1,8 @@
|
|||||||
.CODE
|
.CODE
|
||||||
|
|
||||||
VmdtRunCheck PROC
|
VmdtRunCheck PROC
|
||||||
|
xor rax, rax
|
||||||
|
|
||||||
push rsi
|
push rsi
|
||||||
push rdi
|
push rdi
|
||||||
|
|
||||||
@@ -14,7 +16,7 @@ VmdtRunCheck PROC
|
|||||||
and rsi, rdi
|
and rsi, rdi
|
||||||
cmp rsi, 0
|
cmp rsi, 0
|
||||||
jne finish
|
jne finish
|
||||||
mov ax, 1
|
mov al, 1
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
pop rdi
|
pop rdi
|
||||||
@@ -23,4 +25,4 @@ finish:
|
|||||||
ret
|
ret
|
||||||
VmdtRunCheck ENDP
|
VmdtRunCheck ENDP
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|||||||
Reference in New Issue
Block a user