Init
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -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
12
CommandDecoder.java
Normal 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
13
HelloWorld.java
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user