Implemented basic command detector

This commit is contained in:
darkress
2023-05-08 15:18:21 +02:00
committed by DarkressX
parent 5acbf36c9b
commit aea57b5eec
2 changed files with 54 additions and 4 deletions

View File

@@ -3,11 +3,10 @@
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
String input = "1962";
//String input = "12032";
String input = "9";
CommandDecoder commandDecoder = new CommandDecoder();
commandDecoder.CommandDecoder(input);
int binaryInput = Integer.parseInt(input);
System.out.println(binaryInput);
Boolean test = (binaryInput & 0x3F00) == 0x700;
System.out.println(test);
}
}