Skip to content

Commit

Permalink
suite: update x86odd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Apr 24, 2014
1 parent 0902bf2 commit 191c070
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions suite/x86odd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,25 @@
CODE32 += b"\xf7\x88\x00\x00\x00\x00\x00\x00\x00\x00" # test dword ptr [eax], 0
CODE32 += b"\xf6\x88\x00\x00\x00\x00\x00" # test byte ptr [eax], 0

CODE32 += b"\xd9\xd8"
CODE32 += b"\xdf\xdf"
CODE32 += b"\xd9\xd8" # fstpnce st(0), st(0)
CODE32 += b"\xdf\xdf" # fstp st(7), st(0)

CODE32 += b"\x0f\x20\x00" # mov eax, cr0
CODE32 += b"\x0f\x20\x40" # mov eax, cr0
CODE32 += b"\x0f\x20\x80" # mov eax, cr0

CODE32 += b"\x0f\x22\x00" # mov cr0, eax
CODE32 += b"\x0f\x22\x40" # mov cr0, eax
CODE32 += b"\x0f\x22\x80" # mov cr0, eax

CODE32 += b"\x0f\x21\x00" # mov eax, dr0
CODE32 += b"\x0f\x21\x40" # mov eax, dr0
CODE32 += b"\x0f\x21\x80" # mov eax, dr0

CODE32 += b"\x0f\x23\x00" # mov dr0, eax
CODE32 += b"\x0f\x23\x40" # mov dr0, eax
CODE32 += b"\x0f\x23\x80" # mov dr0, eax


_python3 = sys.version_info.major == 3

Expand Down

0 comments on commit 191c070

Please sign in to comment.