From 576990113273caed9a045380f1457adc1df6a5ee Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 23 Mar 2015 23:59:59 -0700 Subject: 968 --- cpp/016jump | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/016jump') 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 -- cgit 1.4.1-2-gfad0