summaryrefslogtreecommitdiff
path: root/io/model.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-10-29 18:18:26 -0700
committerJulian Blake Kongslie2022-10-29 18:18:26 -0700
commit9f4aa97822adc791f700670ef0fc7636849563b7 (patch)
tree0b9d6c1bb1d7d596501df3b77ab3d7b9f191aa4f /io/model.h
parentControl register values should not be "unsigned int" (diff)
downloadbiggolf-9f4aa97822adc791f700670ef0fc7636849563b7.tar.xz
Understanding interrupt handling within SIMH (see echo_int.pal)
Add list of Bugs Add event log file parser More changes associated with widening the ctlregs (FIXME add a typedef) Add some keyboard instructions
Diffstat (limited to 'io/model.h')
-rw-r--r--io/model.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/io/model.h b/io/model.h
index 8758a43..2826170 100644
--- a/io/model.h
+++ b/io/model.h
@@ -13,6 +13,10 @@ struct iomodel {
13 event_log log; 13 event_log log;
14 std::uint64_t time = 0; 14 std::uint64_t time = 0;
15 bool interact(std::array<std::uint_fast32_t, NUM_CTLREGS> &ctlregs); 15 bool interact(std::array<std::uint_fast32_t, NUM_CTLREGS> &ctlregs);
16 bool done() {
17 return log.lower_bound(time) == log.end();
18 }
16 19
20 std::uint64_t load_time = 0;
17 void load_evt(std::istream &fh); 21 void load_evt(std::istream &fh);
18}; 22};