Added DYNAMIC flag to toString for OperandType

This commit is contained in:
alex-bellon 2022-06-17 17:11:39 -07:00
parent 00dbd26511
commit 7cc70cd5e8

View File

@ -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();
}