From 04ca0ea965679a508595e1631bc3051b6335a346 Mon Sep 17 00:00:00 2001 From: Kevin Ramharak Date: Sat, 1 Jun 2019 14:38:48 +0200 Subject: [PATCH] add aliases to instruction set --- .../net/simon987/server/assembly/CPU.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Server/src/main/java/net/simon987/server/assembly/CPU.java b/Server/src/main/java/net/simon987/server/assembly/CPU.java index fe0c771..6e4f171 100755 --- a/Server/src/main/java/net/simon987/server/assembly/CPU.java +++ b/Server/src/main/java/net/simon987/server/assembly/CPU.java @@ -93,6 +93,20 @@ public class CPU implements MongoSerializable { instructionSet.add(new RetInstruction(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(); } @@ -131,6 +145,20 @@ public class CPU implements MongoSerializable { instructionSet.add(new RetInstruction(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(); memory = new Memory(config.getInt("memory_size"));