@Test public void shouldPushTheContentOfThe16BitRegisterValueIntoTheAddressPointedByTheMemoryStack() { z80.set16BitRegisterValue(ANY_16BIT_SOURCE_REGISTER, ANY_16BIT_REGISTER_VALUE); Instruction instruction = new Push16BitRegister(z80, mmu, ANY_16BIT_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();  }