Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
553c1e74
Commit
553c1e74
authored
7 years ago
by
jdh8d
Browse files
Options
Downloads
Patches
Plain Diff
extensions for xor globals, and moving xorg to libIRDB-decoded.
Former-commit-id: 803078e95f5a28ee831858404869326dcb89fd2e
parent
51c5c2a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libIRDB/include/decode/operand.hpp
+2
-0
2 additions, 0 deletions
libIRDB/include/decode/operand.hpp
libIRDB/src/decode/operand.cpp
+14
-0
14 additions, 0 deletions
libIRDB/src/decode/operand.cpp
with
16 additions
and
0 deletions
libIRDB/include/decode/operand.hpp
+
2
−
0
View file @
553c1e74
...
...
@@ -35,11 +35,13 @@ class DecodedOperand_t
bool
hasIndexRegister
()
const
;
uint32_t
getBaseRegister
()
const
;
uint32_t
getIndexRegister
()
const
;
bool
hasMemoryDisplacement
()
const
;
virtual_offset_t
getMemoryDisplacement
()
const
;
bool
isPcrel
()
const
;
uint32_t
getScaleValue
()
const
;
uint32_t
getMemoryDisplacementEncodingSize
()
const
;
uint32_t
getArgumentSizeInBytes
()
const
;
uint32_t
getArgumentSizeInBits
()
const
;
bool
isRead
()
const
;
bool
isWritten
()
const
;
...
...
This diff is collapsed.
Click to expand it.
libIRDB/src/decode/operand.cpp
+
14
−
0
View file @
553c1e74
...
...
@@ -194,6 +194,14 @@ uint32_t DecodedOperand_t::getScaleValue() const
return
t
->
Memory
.
Scale
;
/* 0 indicates no scale */
}
bool
DecodedOperand_t
::
hasMemoryDisplacement
()
const
{
if
(
!
isMemory
())
throw
std
::
logic_error
(
"GetBaseRegister called on not memory operand"
);
ARGTYPE
*
t
=
static_cast
<
ARGTYPE
*>
(
arg_data
);
return
t
->
Memory
.
DisplacementAddr
!=
0
;
}
virtual_offset_t
DecodedOperand_t
::
getMemoryDisplacement
()
const
{
if
(
!
isMemory
())
...
...
@@ -220,6 +228,12 @@ uint32_t DecodedOperand_t::getArgumentSizeInBytes() const
return
t
->
ArgSize
/
8
;
}
uint32_t
DecodedOperand_t
::
getArgumentSizeInBits
()
const
{
ARGTYPE
*
t
=
static_cast
<
ARGTYPE
*>
(
arg_data
);
return
t
->
ArgSize
;
}
bool
DecodedOperand_t
::
hasSegmentRegister
()
const
{
ARGTYPE
*
t
=
static_cast
<
ARGTYPE
*>
(
arg_data
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment