Skip to content

Commit

Permalink
Implement parity condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed May 25, 2018
1 parent feeb59f commit d1a0ebb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion emu/gadgets-x86/control.S
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
jmp jit_ret

#define COND_LIST o,c,z,cz,s,p,sxo,sxoz
#define IMPLEMENTED_CONDS c,z,cz,s,sxo,sxoz
#define IMPLEMENTED_CONDS c,z,cz,s,p,sxo,sxoz

.macro do_jump cond, target
# please tell me if you know a better way
Expand All @@ -53,6 +53,8 @@
cmpl $0, CPU_res(%_cpu)
js \target
.else; .ifc \cond,p
cmpl $0, CPU_res(%_cpu)
jp \target
.else; .ifc \cond,sxo
cmpl $0, CPU_res(%_cpu)
sets %r14b
Expand Down

0 comments on commit d1a0ebb

Please sign in to comment.