diff options
| author | Julian Blake Kongslie | 2022-10-29 18:18:26 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-10-29 18:18:26 -0700 |
| commit | 9f4aa97822adc791f700670ef0fc7636849563b7 (patch) | |
| tree | 0b9d6c1bb1d7d596501df3b77ab3d7b9f191aa4f /io/model.h | |
| parent | Control register values should not be "unsigned int" (diff) | |
| download | biggolf-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -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 | }; |
