More cleanup of the monitor. Added binary file load command.

This commit is contained in:
Seth Morabito committed 2010-01-16 21:17:37 -08:00
1 parent a3e57274a2
commit e157f4a972
3 files changed
+133 -87

No files matched your search

+2 -4
View File
@@ -107,8 +107,7 @@ public class Bus {
return d.read(devAddr);
}
}
// TODO: Raise access error.
throw new RuntimeException("Read failed! Device not found.");
throw new MemoryAccessException("Read failed! No device at address.");
}
public void write(int address, int value) throws MemoryAccessException {
@@ -121,8 +120,7 @@ public class Bus {
return;
}
}
// TODO: Raise access error.
throw new RuntimeException("Write failed! Device not found.");
throw new MemoryAccessException("Write failed! No device at address.");
}
public SortedSet<Device> getDevices() {