mirror of
https://codeberg.org/sethm/symon.git
synced 2026-11-07 19:12:23 +00:00
More cleanup of the monitor. Added binary file load command.
This commit is contained in:
1 parent
a3e57274a2
commit
e157f4a972
3 files changed
+133
-87
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user