add Jcc aliases

This commit is contained in:
Kevin Ramharak 2019-05-31 22:09:16 +02:00
parent d1112237cb
commit edb90ac412
12 changed files with 144 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if above or equal
*/
public class JaeInstruction extends JncInstruction {
public JaeInstruction(CPU cpu) {
super("jae", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if below
*/
public class JbInstruction extends JcInstruction {
public JbInstruction(CPU cpu) {
super("jb", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if below or equal
*/
public class JbeInstruction extends JnaInstruction {
public JbeInstruction(CPU cpu) {
super("jbe", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if equal
*/
public class JeInstruction extends JzInstruction {
public JeInstruction(CPU cpu) {
super("je", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if not above or equal
*/
public class JnaeInstruction extends JcInstruction {
public JnaeInstruction(CPU cpu) {
super("jnae", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if not below
*/
public class JnbInstruction extends JncInstruction {
public JnbInstruction(CPU cpu) {
super("jae", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if not below or equal
*/
public class JnbeInstruction extends JaInstruction {
public JnbeInstruction(CPU cpu) {
super("jnbe", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if not equal
*/
public class JneInstruction extends JnzInstruction {
public JneInstruction(CPU cpu) {
super("jne", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if not greater
*/
public class JngInstruction extends JleInstruction {
public JngInstruction(CPU cpu) {
super("jng", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if not greater or equal
*/
public class JngeInstruction extends JlInstruction {
public JngeInstruction(CPU cpu) {
super("jnge", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if not lower
*/
public class JnlInstruction extends JgeInstruction {
public JnlInstruction(CPU cpu) {
super("jnl", cpu);
}
}

View File

@ -0,0 +1,12 @@
package net.simon987.server.assembly.instruction;
import net.simon987.server.assembly.CPU;
/**
* Jump if not lower or equal
*/
public class JnleInstruction extends JgInstruction {
public JnleInstruction(CPU cpu) {
super("jnle", cpu);
}
}