implemented PC (#11)

This commit is contained in:
DarkressX
2023-05-29 00:25:37 +02:00
committed by GitHub
parent 29ec2afe04
commit 769c37e5f3
10 changed files with 29 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
package de.darkress.pic16f84sim.microcontroller;
public class ProgramCounter
//This class is not actual part of the µC. It is a storage for the current value of the PC
{
private static int PC = 0;
public static int getPC()
{
return PC;
}
public static void setPC(int PC)
{
ProgramCounter.PC = PC;
}
}