summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2023-01-05 11:34:02 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2023-01-05 11:34:02 -0500
commitcff4a32cd5c08b3624b9848b91493860cd36b07f (patch)
treec4cefd26981da98802ce2dc19e2abc307613c4d0
parentff8867fea6a91b864d0c6459b9c1054cb4d65a81 (diff)
* lmc.el: Remove redundant declarationsexternals/lmc
(lmc--pc): Remove, unused. (lmc-acc): Remove redundant declaration.
-rw-r--r--lmc.el14
1 files changed, 4 insertions, 10 deletions
diff --git a/lmc.el b/lmc.el
index f6b2962..67deba8 100644
--- a/lmc.el
+++ b/lmc.el
@@ -76,16 +76,10 @@
;;; The LMC-Simulator
-(defvar lmc--pc 0 "Program counter for LMC.")
-(make-variable-buffer-local 'lmc--pc)
-
-(defvar lmc-acc 0 "Accumulator for LMC.")
-(make-variable-buffer-local 'lmc--acc)
-
(defvar lmc-turbo nil
"When non-nil, evaluate the code without extra delays.
-When nil, evaluation flashes the cursor at to help you see what's going on,
-which slows it down significantly.
+When nil, evaluation flashes the cursor at every instruction executed
+to help you see what's going on, which slows it down significantly.
Also, when nil, evaluation is interrupted when the user hits a key.")
;; (defun lmc-check (cmds)
@@ -494,13 +488,13 @@ Also, when nil, evaluation is interrupted when the user hits a key.")
)
(defun lmc-set-pc (pc)
- "Set the Program Counter."
+ "Set the Program Counter to PC."
(interactive (list (read-number "New PC: " lmc-pc)))
(setq lmc-pc pc)
(lmc-update-pc))
(defun lmc-set-acc (acc)
- "Set the Accumulator."
+ "Set the Accumulator to ACC."
(interactive (list (read-number "New Accumulator: " lmc-acc)))
(setq lmc-acc (mod acc 1000)))