timer0 (#32)
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:
@@ -18,6 +18,8 @@ public class Addwf extends FileRegisterCommandUtils implements Command
|
||||
@Override
|
||||
public void execute()
|
||||
{
|
||||
ProgramCounter.incPC();
|
||||
Cycles.incCycles();
|
||||
int result = Memory.getRegister(address) + Memory.workingRegister;
|
||||
|
||||
checkZeroBit(result);
|
||||
@@ -25,7 +27,5 @@ public class Addwf extends FileRegisterCommandUtils implements Command
|
||||
checkDigitCarryBit(address);
|
||||
|
||||
writeToDestination(destinationBit, address, result);
|
||||
ProgramCounter.incPC();
|
||||
Cycles.addToCycles(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user