Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gdsl-toolkit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tanzeem Haque
gdsl-toolkit
Commits
24f372f9
Commit
24f372f9
authored
Sep 17, 2012
by
Julian Kranz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X86 Pretty Printer
X86 RREIL Translator
parent
90acd5e9
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1066 additions
and
145 deletions
+1066
-145
specifications/x86/x86-pretty.ml
specifications/x86/x86-pretty.ml
+17
-17
specifications/x86/x86-rreil-translator.ml
specifications/x86/x86-rreil-translator.ml
+1047
-126
specifications/x86/x86.ml
specifications/x86/x86.ml
+2
-2
No files found.
specifications/x86/x86-pretty.ml
View file @
24f372f9
...
...
@@ -238,7 +238,7 @@ val show/instruction insn =
|
BTS
x
:
"BTS"
-++
show
/
arity2
x
|
CALL
x
:
"CALL"
-++
show
/
flow1
x
|
CBW
:
"CBW"
|
CDQ
|
CDQ
:
"CDQ"
|
CDQE
:
"CDQE"
|
CLC
:
"CLC"
|
CLD
:
"CLD"
...
...
@@ -329,7 +329,7 @@ val show/instruction insn =
|
EMMS
:
"EMMS"
|
ENTER
x
:
"ENTER"
-++
show
/
arity2
x
|
EXTRACTPS
x
:
"EXTRACTPS"
-++
show
/
arity3
x
|
F2XM1
|
F2XM1
:
"F2XM1"
|
FABS
:
"FABS"
|
FADD
x
:
"FADD"
-++
show
/
arity2
x
|
FADDP
x
:
"FADDP"
-++
show
/
arity2
x
...
...
@@ -372,13 +372,13 @@ val show/instruction insn =
|
FISUB
x
:
"FISUB"
-++
show
/
arity1
x
|
FISUBR
x
:
"FISUBR"
-++
show
/
arity1
x
|
FLD
x
:
"FLD"
-++
show
/
arity1
x
|
FLD1
|
FLD1
:
"FLD1"
|
FLDCW
x
:
"FLDCW"
-++
show
/
arity1
x
|
FLDENV
x
:
"FLDENV"
-++
show
/
arity1
x
|
FLDL2E
|
FLDL2T
|
FLDLG2
|
FLDLN2
|
FLDL2E
:
"FLDL2E"
|
FLDL2T
:
"FLDL2T"
|
FLDLG2
:
"FLDLG2"
|
FLDLN2
:
"FLDLN2"
|
FLDPI
:
"FLDPI"
|
FLDZ
:
"FLDZ"
|
FMUL
x
:
"FMUL"
-++
show
/
arity2
x
...
...
@@ -392,7 +392,7 @@ val show/instruction insn =
|
FNSTSW
x
:
"FNSTSW"
-++
show
/
arity1
x
|
FPATAN
:
"FPATAN"
|
FPREM
:
"FPREM"
|
FPREM1
|
FPREM1
:
"FPREM1"
|
FPTAN
:
"FPTAN"
|
FRNDINT
:
"FRNDINT"
|
FRSTOR
x
:
"FRSTOR"
-++
show
/
arity1
x
...
...
@@ -423,8 +423,8 @@ val show/instruction insn =
|
FXSAVE64
x
:
"FXSAVE64"
-++
show
/
arity1
x
|
FXSAVE
x
:
"FXSAVE"
-++
show
/
arity1
x
|
FXTRACT
:
"FXTRACT"
|
FYL2X
|
FYL2XP1
|
FYL2X
:
"FYL2X"
|
FYL2XP1
:
"FYL2XP1"
|
HADDPD
x
:
"HADDPD"
-++
show
/
arity2
x
|
HADDPS
x
:
"HADDPS"
-++
show
/
arity2
x
|
HLT
:
"HLT"
...
...
@@ -436,8 +436,8 @@ val show/instruction insn =
|
INC
x
:
"INC"
-++
show
/
arity1
x
|
INSERTPS
x
:
"INSERTPS"
-++
show
/
arity3
x
|
INT
x
:
"INT"
-++
show
/
arity1
x
|
INT0
|
INT3
|
INT0
:
"INT0"
|
INT3
:
"INT3"
|
INVD
:
"INVD"
|
INVLPG
x
:
"INVLPG"
-++
show
/
arity1
x
|
INVPCID
x
:
"INVPCID"
-++
show
/
arity2
x
...
...
@@ -699,7 +699,7 @@ val show/instruction insn =
|
PSUBW
x
:
"PSUBW"
-++
show
/
arity2
x
|
PTEST
x
:
"PTEST"
-++
show
/
arity2
x
|
PUNPCKHBW
x
:
"PUNPCKHBW"
-++
show
/
arity2
x
|
PUNPCKHDQ
x
:
"PUNPCKHDQ"
-++
show
/
arity
3
x
|
PUNPCKHDQ
x
:
"PUNPCKHDQ"
-++
show
/
arity
2
x
|
PUNPCKHQDQ
x
:
"PUNPCKHQDQ"
-++
show
/
arity2
x
|
PUNPCKHWD
x
:
"PUNPCKHWD"
-++
show
/
arity2
x
|
PUNPCKLBW
x
:
"PUNPCKLBW"
-++
show
/
arity2
x
...
...
@@ -810,7 +810,7 @@ val show/instruction insn =
|
TEST
x
:
"TEST"
-++
show
/
arity2
x
|
UCOMISD
x
:
"UCOMISD"
-++
show
/
arity2
x
|
UCOMISS
x
:
"UCOMISS"
-++
show
/
arity2
x
|
UD2
|
UD2
:
"UD2"
|
UNPCKHPD
x
:
"UNPCKHPD"
-++
show
/
arity2
x
|
UNPCKHPS
x
:
"UNPCKHPS"
-++
show
/
arity2
x
|
UNPCKLPD
x
:
"UNPCKLPD"
-++
show
/
arity2
x
...
...
@@ -1103,5 +1103,5 @@ val show/instruction insn =
#|
PSLRDQ
x
:
"PSLRDQ"
-++
show
/
arity2
x
#|
VPSLRDQ
x
:
"VPSLRDQ"
-++
show
/
varity
x
end
#
%
s
/^
\
(
...
\
)
\
([
^
\
s
]
*
\
)
$/
\
1
\
2
:
"
\
2"
/
#
%
s
/^
\
(
...
\
)
\
([
^
\
s
]
*
\
)
of
\
(
.*
\
)
/
\
1
\
2
x
:
"
\
2"
-++
show
\
/
\
3
x
/
#
s
/^
\
(
...
\
)
\
(
\
S
*
\
)
\
s
*
$/
\
1
\
2
:
"
\
2"
/
#
s
/^
\
(
...
\
)
\
(
\
S
*
\
)
of
\
(
\
S
*
\
)
\
s
*$
/
\
1
\
2
x
:
"
\
2"
-++
show
\
/
\
3
x
/
specifications/x86/x86-rreil-translator.ml
View file @
24f372f9
This diff is collapsed.
Click to expand it.
specifications/x86/x86.ml
View file @
24f372f9
...
...
@@ -2954,8 +2954,6 @@ val / [0xdb /1-reg] = binop FCMOVNE st0 st/reg
val
/
[
0xdb
/
2
-
reg
]
=
binop
FCMOVNBE
st0
st
/
reg
val
/
[
0xdb
/
3
-
reg
]
=
binop
FCMOVNU
st0
st
/
reg
###
=><=
###
FCOM
/
FCOMP
/
FCOMPP
###
-
Compare
Floating
Point
Values
val
/
[
0xd8
/
2
]
=
unop
FCOM
st
/
m32
...
...
@@ -3224,6 +3222,8 @@ val / [0xd9 0xf1] = arity0 FYL2X
###
-
Compute
y
*
log_2
(
x
+
1
)
val
/
[
0xd9
0xf9
]
=
arity0
FYL2XP1
###
=><=
###
HADDPD
###
-
Packed
Double
-
FP
Horizontal
Add
val
/
66
[
0x0f
0x7c
/
r
]
=
binop
HADDPD
xmm128
xmm
/
m128
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment