mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-25 05:32:14 +00:00
Added DYNAMIC flag to toString for OperandType
This commit is contained in:
parent
00dbd26511
commit
7cc70cd5e8
@ -341,6 +341,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
|
||||
@ -458,6 +468,10 @@ public final class OperandType {
|
||||
append(buf, "COP ");
|
||||
}
|
||||
|
||||
if (isDynamic(operandType)) {
|
||||
append(buf, "DYN ");
|
||||
}
|
||||
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user