mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
Merge branch 'GP-0_ryanmkurtz_PR-4356_alex-bellon_add-dynamic-flag-check'
This commit is contained in:
commit
da8c3643e2
1 changed files with 14 additions and 0 deletions
|
@ -340,6 +340,16 @@ public final class OperandType {
|
|||
public static boolean isCoProcessor(int operandType) {
|
||||
return (operandType & COP) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* check the DYNAMIC flag.
|
||||
* @param operandType the bit field to examine.
|
||||
*
|
||||
* @return true if the DYNAMIC flag is set.
|
||||
*/
|
||||
public static boolean isDynamic(int operandType) {
|
||||
return (operandType & DYNAMIC) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* check if both a scalar and an address
|
||||
|
@ -457,6 +467,10 @@ public final class OperandType {
|
|||
append(buf, "COP ");
|
||||
}
|
||||
|
||||
if (isDynamic(operandType)) {
|
||||
append(buf, "DYN ");
|
||||
}
|
||||
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue