increase Cycles after every Instruction
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package de.darkress.pic16f84sim.commands;
|
||||
|
||||
import de.darkress.pic16f84sim.microcontroller.Cycles;
|
||||
import de.darkress.pic16f84sim.microcontroller.Memory;
|
||||
import de.darkress.pic16f84sim.microcontroller.ProgramCounter;
|
||||
|
||||
@@ -25,5 +26,6 @@ public class Addwf extends FileRegisterCommandUtils implements Command
|
||||
|
||||
writeToDestination(destinationBit, address, result);
|
||||
ProgramCounter.incPC();
|
||||
Cycles.addToCycles(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user