相关疑难解决方法(0)

2454
推荐指数
25
解决办法
111万
查看次数

How to read and write x86 flags registers directly?

From what I've read, seems like there are 9 different flags. Is it possible to read/change them directly? I know I can know for example if the zero flag is set after doing a cmp/jmp instruction, but I'm asking if it's possible to do something like

mov eax, flags
Run Code Online (Sandbox Code Playgroud)

or something.

Also, for writing, is it possible to set them by hand?

x86 assembly eflags

19
推荐指数
3
解决办法
3万
查看次数

标签 统计

assembly ×1

bit-manipulation ×1

bitwise-operators ×1

c ×1

c++ ×1

eflags ×1

x86 ×1