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
|
||||
|
||||
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
|
||||
@@ -23,4 +25,4 @@ finish:
|
||||
ret
|
||||
VmdtRunCheck ENDP
|
||||
|
||||
END
|
||||
END
|
||||
|
||||
Reference in New Issue
Block a user