Refactored incCycle command
This commit is contained in:
@@ -17,8 +17,9 @@ public class Retlw extends LiteralCommandUtils implements Command
|
||||
@Override
|
||||
public void execute()
|
||||
{
|
||||
Cycles.incCycles();
|
||||
Memory.workingRegister = literal;
|
||||
ProgramCounter.setPcFromStack(Stack.pop());
|
||||
Cycles.addToCycles(2);
|
||||
Cycles.incCycles(); // Simulate 2-Cycle Instruction
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user