diff options
| author | cheapie <cheapiephp@gmail.com> | 2026-05-29 16:02:34 -0500 |
|---|---|---|
| committer | cheapie <cheapiephp@gmail.com> | 2026-05-29 16:02:34 -0500 |
| commit | 6fa24a0ca5271446f6e2be72f110bb8a64a3f035 (patch) | |
| tree | 0f38cbf819f8aea32f9992a469a1711f4d72858e /rvcontroller.lua | |
| parent | 6319f57bd1f622aa61e73e172dec25150203ac84 (diff) | |
| download | rvcontroller-6fa24a0ca5271446f6e2be72f110bb8a64a3f035.tar rvcontroller-6fa24a0ca5271446f6e2be72f110bb8a64a3f035.tar.gz rvcontroller-6fa24a0ca5271446f6e2be72f110bb8a64a3f035.tar.bz2 rvcontroller-6fa24a0ca5271446f6e2be72f110bb8a64a3f035.tar.xz rvcontroller-6fa24a0ca5271446f6e2be72f110bb8a64a3f035.zip | |
Refuse to step manually if waiting on something
Diffstat (limited to 'rvcontroller.lua')
| -rw-r--r-- | rvcontroller.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/rvcontroller.lua b/rvcontroller.lua index 81d2f68..ca1d2da 100644 --- a/rvcontroller.lua +++ b/rvcontroller.lua @@ -2528,6 +2528,13 @@ elseif event.channel == "monitorkb" then digiline_send("stdout","\n\n\n\n\n\n\n") interrupt(0.5,"reset") elseif argv[1] == "step" then + if mem.inputwaiting then + digiline_send("monitordisp","Unable to step,\nwaiting for input") + return + elseif mem.rswaiting then + digiline_send("monitordisp","Unable to step,\nwaiting for\nreservation set") + return + end run(1) digiline_send("monitordisp",string.format("PC:%08X",mem.registers.pc)) elseif argv[1] == "run" then |
