@Test public void shouldUseOneCycleAsLastInstructionExecutionTime() { Instruction instruction = new JumpToHLAddress(z80, mmu); instruction.execute(); assertEquals(1, z80.getLastInstructionExecutionTime()); }
@Override public void execute() { int value = z80.get16BitRegisterValue(Register.HL); z80.setProgramCounter(value); z80.setLastInstructionExecutionTime(1); }
JumpToHLAddress extends Instruction { @Override public void execute() { int value = z80.get16BitRegisterValue(Register.HL); z80.setProgramCounter(value); z80.setLastInstructionExecutionTime(1); } }
JumpToHLAddress extends Instruction { @Override public void execute() { int value = z80.get16BitRegisterValue(Register.HL); z80.setProgramCounter(value); z80.setLastInstructionExecutionTime(1); } JumpToHLAddress(GBZ80 z80, MMU mmu); }
JumpToHLAddress extends Instruction { @Override public void execute() { int value = z80.get16BitRegisterValue(Register.HL); z80.setProgramCounter(value); z80.setLastInstructionExecutionTime(1); } JumpToHLAddress(GBZ80 z80, MMU mmu); @Override void execute(); }
JumpToHLAddress extends Instruction { @Override public void execute() { int value = z80.get16BitRegisterValue(Register.HL); z80.setProgramCounter(value); z80.setLastInstructionExecutionTime(1); } JumpToHLAddress(GBZ80 z80, MMU mmu); @Override void execute();  }