Changed the CPU and Device interface a bit.

This commit is contained in:
Seth Morabito committed 2008-12-11 17:22:39 -08:00
1 parent a54dbc323d
commit 8df561d292
8 files changed
+90 -97

No files matched your search

@@ -10,21 +10,21 @@ public class Simulator {
/**
* Command-line parser used by this simulator.
*/
CommandParser parser;
private CommandParser parser;
/**
* The CPU itself.
*/
Cpu cpu;
private Cpu cpu;
/**
* The Bus responsible for routing memory read/write requests to the
* correct IO devices.
*/
Bus bus;
private Bus bus;
public Simulator() {
cpu = new Cpu(this);
cpu = new Cpu();
parser = new CommandParser(System.in, System.out, this);
}