Refactored incCycle command

This commit is contained in:
Darkress
2023-06-16 20:04:50 +02:00
parent bf182815d2
commit 324912080d
32 changed files with 71 additions and 70 deletions

View File

@@ -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
}
}