Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com>
Reviewed-on: darkress/pic16f84-sim#32
This commit was merged in pull request #32.
This commit is contained in:
darkress
2023-06-17 18:45:24 +02:00
parent 049a16f8a6
commit f2423d0d71
36 changed files with 184 additions and 84 deletions

View File

@@ -18,6 +18,8 @@ public class Incfsz extends FileRegisterCommandUtils implements Command
@Override
public void execute()
{
ProgramCounter.incPC();
Cycles.incCycles();
int result = Memory.getRegister(address) + 1;
checkZeroBit(result);
@@ -26,10 +28,8 @@ public class Incfsz extends FileRegisterCommandUtils implements Command
if((result % 256) == 0)
{
ProgramCounter.incPC();
Cycles.addToCycles(1);
Nop nop = new Nop();
nop.execute();
}
ProgramCounter.incPC();
Cycles.addToCycles(1);
}
}