implemented Addwf Instruction

This commit is contained in:
Darkress
2023-05-31 15:07:30 +02:00
parent 0b5d0c172a
commit b9a74c108e
15 changed files with 98 additions and 18 deletions

View File

@@ -1,8 +1,9 @@
package de.darkress.pic16f84sim.commands;
import de.darkress.pic16f84sim.microcontroller.Memory;
import de.darkress.pic16f84sim.microcontroller.ProgramCounter;
public class Movlw extends CommandUtils implements Command
public class Movlw extends LiteralCommandUtils implements Command
{
private final int literal;
@@ -15,5 +16,6 @@ public class Movlw extends CommandUtils implements Command
public void execute()
{
Memory.workingRegister = literal;
ProgramCounter.incPC();
}
}