add aliases to instruction set

This commit is contained in:
Kevin Ramharak 2019-06-01 14:38:48 +02:00
parent 4757db5623
commit 04ca0ea965

View File

@ -93,6 +93,20 @@ public class CPU implements MongoSerializable {
instructionSet.add(new RetInstruction(this)); instructionSet.add(new RetInstruction(this));
instructionSet.add(new XchgInstruction(this)); instructionSet.add(new XchgInstruction(this));
// add Jcc Aliases
instructionSet.add(new JaeInstruction(this));
instructionSet.add(new JbeInstruction(this));
instructionSet.add(new JbInstruction(this));
instructionSet.add(new JeInstruction(this));
instructionSet.add(new JnaeInstruction(this));
instructionSet.add(new JnaeInstruction(this));
instructionSet.add(new JnbInstruction(this));
instructionSet.add(new JneInstruction(this));
instructionSet.add(new JngeInstruction(this));
instructionSet.add(new JngInstruction(this));
instructionSet.add(new JnleInstruction(this));
instructionSet.add(new JnlInstruction(this));
status = new Status(); status = new Status();
} }
@ -131,6 +145,20 @@ public class CPU implements MongoSerializable {
instructionSet.add(new RetInstruction(this)); instructionSet.add(new RetInstruction(this));
instructionSet.add(new XchgInstruction(this)); instructionSet.add(new XchgInstruction(this));
// add Jcc Aliases
instructionSet.add(new JaeInstruction(this));
instructionSet.add(new JbeInstruction(this));
instructionSet.add(new JbInstruction(this));
instructionSet.add(new JeInstruction(this));
instructionSet.add(new JnaeInstruction(this));
instructionSet.add(new JnaeInstruction(this));
instructionSet.add(new JnbInstruction(this));
instructionSet.add(new JneInstruction(this));
instructionSet.add(new JngeInstruction(this));
instructionSet.add(new JngInstruction(this));
instructionSet.add(new JnleInstruction(this));
instructionSet.add(new JnlInstruction(this));
status = new Status(); status = new Status();
memory = new Memory(config.getInt("memory_size")); memory = new Memory(config.getInt("memory_size"));