This commit is contained in:
darkress
2023-04-17 14:52:12 +02:00
parent 092d85a7b0
commit 5468cce530
3 changed files with 29 additions and 0 deletions

4
.gitignore vendored
View File

@@ -21,3 +21,7 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
#IntelliJ Files
.idea
out

12
CommandDecoder.java Normal file
View File

@@ -0,0 +1,12 @@
public class CommandDecoder
{
public void CommandDecoder(String input) {
int binaryInput = Integer.parseInt(input);
if ((binaryInput & 0x3F00) == 0x700) {
//ADDWF();
} else if ((binaryInput & 0x3F00) == 0x500) {
//ANDWF();
}
}
}

13
HelloWorld.java Normal file
View File

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