increment PC after every Instruction

This commit is contained in:
darkress
2023-06-12 13:24:11 +02:00
parent 184c49f3ae
commit 54381896c3
6 changed files with 10 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
package de.darkress.pic16f84sim.commands;
import de.darkress.pic16f84sim.microcontroller.Memory;
import de.darkress.pic16f84sim.microcontroller.ProgramCounter;
public class Andlw extends LiteralCommandUtils implements Command
{
@@ -18,5 +19,6 @@ public class Andlw extends LiteralCommandUtils implements Command
checkZeroBit(result);
Memory.workingRegister = result % 256;
ProgramCounter.incPC();
}
}