summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <cheapiephp@gmail.com>2026-05-29 16:02:34 -0500
committercheapie <cheapiephp@gmail.com>2026-05-29 16:02:34 -0500
commit6fa24a0ca5271446f6e2be72f110bb8a64a3f035 (patch)
tree0f38cbf819f8aea32f9992a469a1711f4d72858e
parent6319f57bd1f622aa61e73e172dec25150203ac84 (diff)
downloadrvcontroller-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
-rw-r--r--rvcontroller.lua7
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