Addlw instruction (#4)
* Added addlw command * Write to program list * Included CommandUtils as helpter class. Sorted classes into packages * Revert changes on HelloWorld * Revert "Revert changes on HelloWorld" This reverts commit a08a336864fb2aa2bbc5a4e37ca360765774965e. * Added example execution of Addlw command
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
import commands.Command;
|
||||
import decoder.CommandDecoder;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(Parser.parser("TPicSim2.LST"));
|
||||
//System.out.println(Parser.Parser.parser("TPicSim2.LST"));
|
||||
ArrayList<Command> program = new ArrayList<>();
|
||||
int input1 = 0x3EFF;
|
||||
program.add(CommandDecoder.decode(input1));
|
||||
program.get(0).execute();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user