Laufzeit und Watchdog und Timer
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user