Laufzeit und Watchdog und Timer

This commit is contained in:
2024-06-02 15:16:01 +02:00
parent 45f9878047
commit c49a073cfd
7 changed files with 209 additions and 15 deletions

View File

@ -5,6 +5,8 @@ public class Commands {
static long totalExecutionTime = 0;
public static int get_wRegister() {
return wRegister;
}
@ -23,6 +25,12 @@ public class Commands {
totalExecutionTime = 0;
}
public static void decode(int instruction){
final int jumpaddr = 0x7FF;
final int fileregaddr = 0x7F;
@ -265,8 +273,9 @@ public class Commands {
public static void CALL(int jump) {
ProgramStack.push(DataRegister.getPC()+1);
DataRegister.setPC(jump-1);
addExecutionTime(1);
}
public static void MOVWF(int file) {