Fleshing out some of the interface for the CPU, Simulator, and Devices.
This commit is contained in:
1 parent
0163ae47b4
commit
a6abc2cd23
8 files changed
+202
-25
No files matched your search
@@ -6,8 +6,9 @@ public class CommandParser {
|
||||
|
||||
private BufferedReader m_in;
|
||||
private BufferedWriter m_out;
|
||||
private Simulator m_simulator;
|
||||
|
||||
public CommandParser(InputStream in, OutputStream out) {
|
||||
public CommandParser(InputStream in, OutputStream out, Simulator s) {
|
||||
m_in = new BufferedReader(new InputStreamReader(in));
|
||||
m_out = new BufferedWriter(new OutputStreamWriter(out));
|
||||
}
|
||||
@@ -21,7 +22,7 @@ public class CommandParser {
|
||||
dispatch(command);
|
||||
prompt();
|
||||
}
|
||||
writeLine("Goodbye!");
|
||||
writeLine("\n\nGoodbye!");
|
||||
} catch (IOException ex) {
|
||||
System.err.println("Error: " + ex.toString());
|
||||
System.exit(1);
|
||||
|
||||
Reference in new issue
Block a user