@Test(expected = IllegalArgumentException.class) public void shouldNotAccept8BitRegistersAsSourceRegister() { Instruction instruction = new Push16BitRegister(z80, mmu, ANY_8BIT_SOURCE_REGISTER); instruction.execute(); }
@Override public void execute() { int registerValue = z80.get16BitRegisterValue(sourceRegister); pushTwice(registerValue); z80.setLastInstructionExecutionTime(4); }
Push16BitRegister extends Instruction { @Override public void execute() { int registerValue = z80.get16BitRegisterValue(sourceRegister); pushTwice(registerValue); z80.setLastInstructionExecutionTime(4); } }
Push16BitRegister extends Instruction { @Override public void execute() { int registerValue = z80.get16BitRegisterValue(sourceRegister); pushTwice(registerValue); z80.setLastInstructionExecutionTime(4); } Push16BitRegister(GBZ80 z80, MMU mmu, Register sourceRegister); }
Push16BitRegister extends Instruction { @Override public void execute() { int registerValue = z80.get16BitRegisterValue(sourceRegister); pushTwice(registerValue); z80.setLastInstructionExecutionTime(4); } Push16BitRegister(GBZ80 z80, MMU mmu, Register sourceRegister); @Override void execute(); }
Push16BitRegister extends Instruction { @Override public void execute() { int registerValue = z80.get16BitRegisterValue(sourceRegister); pushTwice(registerValue); z80.setLastInstructionExecutionTime(4); } Push16BitRegister(GBZ80 z80, MMU mmu, Register sourceRegister); @Override void execute();  }