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