mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
allow inherited classes to get its own opcode and mnemonic
This commit is contained in:
parent
2590e8ec64
commit
0ff671713c
@ -124,7 +124,7 @@ public abstract class Instruction {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
String getMnemonic() {
|
public String getMnemonic() {
|
||||||
return mnemonic;
|
return mnemonic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ public abstract class Instruction {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int getOpCode() {
|
public int getOpCode() {
|
||||||
return opCode;
|
return opCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user