Somewhat working Timer0Interrupt

This commit is contained in:
Darkress
2023-06-18 19:13:37 +02:00
parent 101c6ec464
commit 60b288a762
7 changed files with 48 additions and 7 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);
}
}
}