diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-03-23 23:59:59 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-03-24 20:59:00 -0700 |
commit | 576990113273caed9a045380f1457adc1df6a5ee (patch) | |
tree | 0add69eef41b3eca78191c59b7bfbfaaedd980d8 /cpp/016jump | |
parent | 7fb56277f54b9e2625357a433b18f60e4493f34a (diff) | |
download | mu-576990113273caed9a045380f1457adc1df6a5ee.tar.gz |
968
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 |