How to set SF with pushfq and popfq

248 views Asked by At

As the title suggests I want to set SF=1 (if it was 1 before then I should keep it that way) with the commands pushfq and popfq.

To begin with, I don't understand how would pushing and popping rflags to and from the stack could change flags values.

architecture is Intel x86-64

0

There are 0 answers