summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <cheapiephp@gmail.com>2026-05-29 22:10:10 -0500
committercheapie <cheapiephp@gmail.com>2026-05-29 22:10:10 -0500
commit28be6fac111899c930c8072cd42bcbd7be6f5d40 (patch)
tree71a95f41fd425d453bea31f3ca75a7a8409dd004
parentc83f8dcd23f42187bd72716c92e8c4ffdb752d5e (diff)
downloadrvcontroller-28be6fac111899c930c8072cd42bcbd7be6f5d40.tar
rvcontroller-28be6fac111899c930c8072cd42bcbd7be6f5d40.tar.gz
rvcontroller-28be6fac111899c930c8072cd42bcbd7be6f5d40.tar.bz2
rvcontroller-28be6fac111899c930c8072cd42bcbd7be6f5d40.tar.xz
rvcontroller-28be6fac111899c930c8072cd42bcbd7be6f5d40.zip
Refuse to step if already running
-rw-r--r--rvcontroller.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/rvcontroller.lua b/rvcontroller.lua
index 875c324..a9bcf3f 100644
--- a/rvcontroller.lua
+++ b/rvcontroller.lua
@@ -2575,6 +2575,9 @@ elseif event.channel == "monitorkb" then
elseif mem.rswaiting then
digiline_send("monitordisp","Unable to step,\nwaiting for\nreservation set")
return
+ elseif mem.running then
+ digiline_send("monitordisp","Already running")
+ return
end
run(1)
digiline_send("monitordisp",string.format("PC:%08X",mem.registers.pc))