This commit is contained in:
2024-05-14 17:17:27 +02:00
parent 8f35f4f914
commit 2258c5a8be
3 changed files with 34 additions and 12 deletions

View File

@ -214,7 +214,7 @@ public class Commands {
return;
case 0b01100011:
System.out.println("SLEEP");
//TODO
SLEEP();
addExecutionTime(1);
return;
default:
@ -222,8 +222,7 @@ public class Commands {
}
if (instruction == 0 || instruction == 0b0110000 || instruction == 0b01000000 || instruction == 0b00100000){
System.out.println("NOP");
addExecutionTime(1);
NOP ();
}
else{
System.out.println("Nicht gefunden!");
@ -232,10 +231,19 @@ public class Commands {
}
public static void SLEEP() {
Controller_Frontend.sleep ();
}
public static void RETFIE() {
DataRegister.setPC(ProgramStack.pop());
}
public static void NOP () {
System.out.println("NOP");
addExecutionTime(1);
}
public static void GOTO(int jump) {
DataRegister.setPC(jump-1);
}