mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
add aliases to instruction set
This commit is contained in:
parent
4757db5623
commit
04ca0ea965
@ -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"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user