implemented Nop Instruction

This commit is contained in:
Darkress committed 2023-05-31 20:24:32 +02:00
1 parent 49ab5876b8
commit 6cbd17cf52
2 files changed
+15 -1

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
package de.darkress.pic16f84sim.commands;
import de.darkress.pic16f84sim.microcontroller.ProgramCounter;
public class Nop extends LiteralCommandUtils implements Command
{
@Override
public void execute()
{
// Do nothing, just increment the PC
ProgramCounter.incPC();
}
}
@@ -111,7 +111,7 @@ public class CommandDecoder
if ((input | 0x0060) == 0x0060)
{
//nop();
return new Nop();
}
if (input == 0x0064)