increment PC after every Instruction (#29)
Co-authored-by: darkress <30271678+DarkressX@users.noreply.github.com> Reviewed-on: darkress/pic16f84-sim#29
This commit was merged in pull request #29.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user