implemented Goto Instruction; Increment ProgramCounter; (#2)

Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com>
Reviewed-on: darkress/pic16f84-sim#2
This commit was merged in pull request #2.
This commit is contained in:
darkress
2023-05-29 18:07:48 +02:00
parent bfbec8d525
commit 1b3529c403
6 changed files with 78 additions and 10 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 Addlw extends CommandUtils implements Command
{
@@ -21,5 +22,6 @@ public class Addlw extends CommandUtils implements Command
checkDigitCarryBit(literal);
Memory.workingRegister = result % 256;
ProgramCounter.incPC();
}
}