timer0Interrupt (#37)

Co-authored-by: Darkress <30271678+DarkressX@users.noreply.github.com>
Reviewed-on: darkress/pic16f84-sim#37
This commit was merged in pull request #37.
This commit is contained in:
darkress
2023-06-18 19:25:53 +02:00
parent 101c6ec464
commit 9cab40db2f
8 changed files with 48 additions and 6 deletions

View File

@@ -37,8 +37,11 @@ public class ProgramCounter
Memory.setPCL(pc & 0x00FF);
}
public static void resetProgramCounter() {
pc = 0;
Memory.setPCL(0x0);
public static void setProgramCounter(int value) {
if(value <= 0xFF && value >= 0)
{
pc = value;
Memory.setPCL(pc);
}
}
}