about summary refs log tree commit diff stats
path: root/mu_instructions
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_instructions
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_instructions')
-rw-r--r--mu_instructions4
1 files changed, 2 insertions, 2 deletions
diff --git a/mu_instructions b/mu_instructions
index 398a21e6..4d3c554b 100644
--- a/mu_instructions
+++ b/mu_instructions
@@ -184,7 +184,7 @@ Finally, unconditional jumps:
 
 loop                        {.name="loop",                                              .subx-name="e9/jump loop/disp32"}
 loop label                  {.name="loop",            .inouts=[label],                  .subx-name="e9/jump",                             .disp32=inouts[0] ":loop"}
-
-(So far it doesn't seem like unconditional breaks have much use.)
+break                       {.name="break",                                             .subx-name="e9/jump break/disp32"}
+break label                 {.name="break",           .inouts=[label],                  .subx-name="e9/jump",                             .disp32=inouts[0] ":break"}
 
 vim:ft=c:nowrap