diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-09-25 15:35:07 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-09-25 15:35:07 -0400 |
| commit | 2400bf62173417e438b106b34272b462e4611cdd (patch) | |
| tree | a87d697670b2cce0ccdfc255a89fdd4dc08f09c9 /test/cases/bytecode.bqn | |
| parent | a03104fb04a79964855ba838776ecf3d28ba1757 (diff) | |
Update opcode numbers in bytecode test comments
Diffstat (limited to 'test/cases/bytecode.bqn')
| -rw-r--r-- | test/cases/bytecode.bqn | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/cases/bytecode.bqn b/test/cases/bytecode.bqn index 7d8a40b8..d51f2dd2 100644 --- a/test/cases/bytecode.bqn +++ b/test/cases/bytecode.bqn @@ -6,25 +6,25 @@ # Tests are meant to be run in order; comments indicate new instructions # introduced by each. -5 % 5 # 0 PUSH, 25 RETN -3 % 4⋄3 # 14 POPS -5 % a←5 # 22 LOCM, 11 SETN -4 % a←5⋄a↩4 # 12 SETU -2 % a←2⋄b←3⋄a # 21 LOCO -1 % a←1⋄A 4 # 16 FN1O -2 % a←2⋄3 A 4 # 17 FN2O -6 % {𝕩}6 # 15 DFND +5 % 5 # 0 PUSH, 7 RETN +3 % 4⋄3 # 6 POPS +5 % a←5 # 33 LOCM, 48 SETN +4 % a←5⋄a↩4 # 49 SETU +2 % a←2⋄b←3⋄a # 32 LOCO +1 % a←1⋄A 4 # 18 FN1O +2 % a←2⋄3 A 4 # 19 FN2O +6 % {𝕩}6 # 1 DFND 3 % A←{𝕨}⋄3 A 4 # dyadic block function -7 % a‿b←7‿2⋄a # 3 ARRO, 4 ARRM -4 % 4{𝔽} # 7 OP1D +7 % a‿b←7‿2⋄a # 11 ARRO, 12 ARRM +4 % 4{𝔽} # 26 OP1D 6 % 4{𝔽⋄𝕩}6 # deferred modifier -1 % 3{𝔾}{𝕩} 1 # 8 OP2D -2 % (2{𝔽}{𝕩})3 # 9 TR2D +1 % 3{𝔾}{𝕩} 1 # 27 OP2D +2 % (2{𝔽}{𝕩})3 # 20 TR2D 3 % 3({a‿b←𝕩⋄a}{𝕨‿𝕩})4 # dyadic 2-train -4 % 4({𝕨‿𝕩}{𝕩}{𝕨})5 # 19 TR3O +4 % 4({𝕨‿𝕩}{𝕩}{𝕨})5 # 23 TR3O 2 % a‿b←(2{𝕨‿𝕩}{𝕩})5⋄a # monadic, data in left branch 2 % ({a↩2⋄𝕩}{𝕩⋄a}{a↩3⋄𝕩})a←4 # ordering -8 % a←3⋄a{𝕩}↩8⋄a # 13 SETM +8 % a←3⋄a{𝕩}↩8⋄a # 50 SETM 5 % a←4⋄a{𝕨⋄5}↩6 # returns new value 4 % a‿b←2‿1⋄a‿b{𝕩‿𝕨}↩4⋄a # lists |
