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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user