diff --git a/.gitignore b/.gitignore index a1c2a23..70c3d64 100644 --- a/.gitignore +++ b/.gitignore @@ -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 \ No newline at end of file diff --git a/CommandDecoder.java b/CommandDecoder.java new file mode 100644 index 0000000..abebfb6 --- /dev/null +++ b/CommandDecoder.java @@ -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(); + } + } +} diff --git a/HelloWorld.java b/HelloWorld.java new file mode 100644 index 0000000..6029834 --- /dev/null +++ b/HelloWorld.java @@ -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); + } +} \ No newline at end of file