Xor8BitRegisterToAIntoA extends Xor8Bit { @Override protected int getLastInstructionExecutionTime() { return 1; } Xor8BitRegisterToAIntoA(GBZ80 z80, Register sourceRegister);   }
@Test public void shouldUseOneCycleAsLastInstructionExecutionTime() { Instruction instruction = new Xor8BitRegisterToAIntoA(z80, ANY_8BIT_SOURCE_REGISTER); instruction.execute(); assertEquals(1, z80.getLastInstructionExecutionTime()); }