about summary refs log tree commit diff stats
path: root/023jump.cc
diff options
context:
space:
mode:
Diffstat (limited to '023jump.cc')
-rw-r--r--023jump.cc22
1 files changed, 13 insertions, 9 deletions
diff --git a/023jump.cc b/023jump.cc
index acf2f95d..b847a66c 100644
--- a/023jump.cc
+++ b/023jump.cc
@@ -1,5 +1,15 @@
 //: Jump primitives
 
+:(scenario jump_can_skip_instructions)
+recipe main [
+  jump 1:offset
+  1:number <- copy 1:literal
+]
++run: instruction main/0
++run: ingredient 0 is 1
+-run: instruction main/1
+-mem: storing 1 in location 1
+
 :(before "End Primitive Recipe Declarations")
 JUMP,
 :(before "End Primitive Recipe Numbers")
@@ -14,15 +24,9 @@ case JUMP: {
   break;
 }
 
-:(scenario jump_can_skip_instructions)
-recipe main [
-  jump 1:offset
-  1:number <- copy 1:literal
-]
-+run: instruction main/0
-+run: ingredient 0 is 1
--run: instruction main/1
--mem: storing 1 in location 1
+//: special type to designate jump targets
+:(before "End Mu Types Initialization")
+Type_number["offset"] = 0;
 
 :(scenario jump_backward)
 recipe main [