diff options
Diffstat (limited to 'cpp/016jump')
-rw-r--r-- | cpp/016jump | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/016jump b/cpp/016jump index 9d192e96..80f7aa8d 100644 --- a/cpp/016jump +++ b/cpp/016jump @@ -21,7 +21,7 @@ recipe main [ +run: instruction main/0 +run: ingredient 0 is 1 -run: instruction main/1 --mem: storing in location 1 +-mem: storing 1 in location 1 :(scenario "jump_backward") recipe main [ @@ -64,7 +64,7 @@ recipe main [ +run: ingredient 1 is 1 +run: jumping to instruction 2 -run: instruction main/1 --mem: storing in location 1 +-mem: storing 1 in location 1 :(scenario "jump_if_fallthrough") recipe main [ @@ -74,7 +74,7 @@ recipe main [ +run: instruction main/0 +run: jump-if fell through +run: instruction main/1 -+mem: storing in location 123 ++mem: storing 1 in location 123 :(before "End Globals") const int JUMP_UNLESS = 12; @@ -106,7 +106,7 @@ recipe main [ +run: ingredient 1 is 1 +run: jumping to instruction 2 -run: instruction main/1 --mem: storing in location 1 +-mem: storing 1 in location 1 :(scenario "jump_unless_fallthrough") recipe main [ @@ -117,4 +117,4 @@ recipe main [ +run: ingredient 0 is 999 +run: jump-unless fell through +run: instruction main/1 -+mem: storing in location 123 ++mem: storing 1 in location 123 |