diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-12-07 19:18:04 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-12-07 19:51:41 -0600 |
| commit | c39552375661e495b344e8386649ade92a4d45b2 (patch) | |
| tree | 45623ce35964e43ae7d8804c1ef1c6dedb3ba7a1 /sim/sim.py | |
| parent | b1761b8eac5777c09723bbc8cd31cc05d8ec35ae (diff) | |
Implement single-stepping
Diffstat (limited to '')
| -rwxr-xr-x | sim/sim.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -343,11 +343,12 @@ while True: else: break + mode = None halted = True if halt: - halt() + mode = halt() - print('continue', file=sim_end, flush=True) + print('step' if mode == 'step' else 'continue', file=sim_end, flush=True) if not halt: break |
