Created
December 15, 2021 07:25
-
-
Save namazso/125534d4e0710fc69c91fd50f6b95fcd to your computer and use it in GitHub Desktop.
get/set RFLAGS with perfect unwinding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.code | |
getflags PROC FRAME | |
pushfq | |
.pushreg rax | |
.endprolog | |
.beginepilog | |
pop rax | |
ret | |
getflags ENDP | |
setflags PROC FRAME | |
push rcx | |
.pushreg rcx | |
.endprolog | |
.beginepilog | |
popfq | |
ret | |
setflags ENDP | |
END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment