implemented Goto Instruction; Increment ProgramCounter;

This commit is contained in:
Darkress
2023-05-29 18:05:26 +02:00
parent bfbec8d525
commit e58624dacd
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();
}
}