mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-10 14:26:45 +00:00
adjust source code so all instructions use the same patterns
This commit is contained in:
parent
1d3d441996
commit
c5a34c7a3f
@ -9,8 +9,10 @@ import net.simon987.server.assembly.Status;
|
||||
*/
|
||||
public class BrkInstruction extends Instruction {
|
||||
|
||||
public static final int OPCODE = 0;
|
||||
|
||||
public BrkInstruction() {
|
||||
super("brk", 0);
|
||||
super("brk", OPCODE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -7,7 +7,7 @@ import net.simon987.server.assembly.Util;
|
||||
|
||||
public class DecInstruction extends Instruction {
|
||||
|
||||
public static final int OPCODE = 0x2B;
|
||||
public static final int OPCODE = 43;
|
||||
|
||||
public DecInstruction() {
|
||||
super("dec", OPCODE);
|
||||
|
@ -7,7 +7,7 @@ import net.simon987.server.assembly.Util;
|
||||
|
||||
public class IncInstruction extends Instruction {
|
||||
|
||||
public static final int OPCODE = 0x2A;
|
||||
public static final int OPCODE = 43;
|
||||
|
||||
public IncInstruction() {
|
||||
super("inc", OPCODE);
|
||||
|
@ -8,7 +8,9 @@ import net.simon987.server.assembly.Instruction;
|
||||
*/
|
||||
public class NopInstruction extends Instruction {
|
||||
|
||||
public static final int OPCODE = 63;
|
||||
|
||||
public NopInstruction() {
|
||||
super("nop", 63);
|
||||
super("nop", OPCODE);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user