mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-18 18:26:42 +00:00
allow operand validation methods to be overriden
This commit is contained in:
parent
4f4cecf60c
commit
d5ddb8e439
@ -102,7 +102,7 @@ public abstract class Instruction {
|
|||||||
* @param o2 Source operand
|
* @param o2 Source operand
|
||||||
* @return true if valid
|
* @return true if valid
|
||||||
*/
|
*/
|
||||||
public static boolean operandsValid(Operand o1, Operand o2) throws IllegalOperandException {
|
public boolean operandsValid(Operand o1, Operand o2) {
|
||||||
return o1.getType() != OperandType.IMMEDIATE16;
|
return o1.getType() != OperandType.IMMEDIATE16;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ public abstract class Instruction {
|
|||||||
* @param o1 source operand
|
* @param o1 source operand
|
||||||
* @return true if the specified operand can be used with this instruction
|
* @return true if the specified operand can be used with this instruction
|
||||||
*/
|
*/
|
||||||
public static boolean operandValid(Operand o1) {
|
public boolean operandValid(Operand o1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user