about summary refs log tree commit diff stats
path: root/mu_summary
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-02-17 23:35:44 -0800
committerKartik Agaram <vc@akkartik.com>2020-02-18 00:07:11 -0800
commit01a28c56c77a265fc6dd9c29ba1f9abc04fbab7e (patch)
tree1e2602e6be4b7c812188c42a0cdf3eb428bdc2fd /mu_summary
parent75b9ff501037c788f7ae62e355d75909e477a83b (diff)
downloadmu-01a28c56c77a265fc6dd9c29ba1f9abc04fbab7e.tar.gz
6019 - finish supporting all branch primitives
I'd been thinking I didn't need unconditional `break` instructions, but
I just realized that non-local unconditional breaks have a use. Stop over-thinking
this, just support everything.

The code is quite duplicated.
Diffstat (limited to 'mu_summary')
-rw-r--r--mu_summary5
1 files changed, 3 insertions, 2 deletions
diff --git a/mu_summary b/mu_summary
index 411656bb..2d48d2de 100644
--- a/mu_summary
+++ b/mu_summary
@@ -125,14 +125,15 @@ Jumps can take an optional label starting with '$':
   loop $foo
 
 This instruction jumps to the beginning of the block called $foo. It must lie
-somewhere inside such a box. Jumps are only legal to containing blocks. Use
+somewhere inside such a block. Jumps are only legal to containing blocks. Use
 named blocks with restraint; jumps to places far away can get confusing.
 
 There are two unconditional jumps:
 
   loop
   loop label
-  # unconditional break instructions don't seem useful
+  break
+  break label
 
 The remaining jump instructions are all conditional. Conditional jumps rely on
 the result of the most recently executed `compare` instruction. (To keep