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