Corrected mistake in CLRF, CLRW
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
public class CommandDecoder
|
||||
{
|
||||
public void CommandDecoder(String input) {
|
||||
public void CommandDecoder(String input)
|
||||
{
|
||||
int binaryInput = Integer.parseInt(input);
|
||||
|
||||
if ((binaryInput & 0x3F00) == 0x700) {
|
||||
if ((binaryInput & 0x3F00) == 0x700)
|
||||
{
|
||||
//ADDWF();
|
||||
} else if ((binaryInput & 0x3F00) == 0x500) {
|
||||
} else if ((binaryInput & 0x3F00) == 0x500)
|
||||
{
|
||||
//ANDWF();
|
||||
} else if ((binaryInput & 0x7F00) == 0x3)
|
||||
} else if ((binaryInput & 0x3F80) == 0x180)
|
||||
{
|
||||
//CLRF();
|
||||
} else if ((binaryInput & 0x7F00) == 0x2)
|
||||
} else if ((binaryInput & 0x3F80) == 0x100)
|
||||
{
|
||||
//CLRW();
|
||||
} else if ((binaryInput & 0x3F00) == 0x900)
|
||||
@@ -19,6 +22,9 @@ public class CommandDecoder
|
||||
} else if ((binaryInput & 0x3F00) == 0x300)
|
||||
{
|
||||
//DECF();
|
||||
} else if ((binaryInput & 0x3F00) == 0xB00)
|
||||
{
|
||||
//DECFSZ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user