SLEEP
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user