aboutsummaryrefslogtreecommitdiff
path: root/test/cases/bytecode.bqn
blob: beb426946c57c9f18ba0f4b47f28b84c98c9d31f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Tests of bytecode operations. Compile with cjs.bqn.

# Tests are meant to be run in order; comments indicate new instructions
# introduced by each.

5  % 5            #  0 PUSH, 25 RETN
3  % 43          # 14 POPS
5  % a5          # 22 LOCM, 11 SETN
2  % a2b3a    # 21 LOCO
1  % a1A 4      # 16 FN1O
2  % a23 A 4    # 17 FN2O
6  % {𝕩}6         # 15 DFND
3  % A{𝕨}3 A 4  
7  % ab72a    #  3 ARRO,  4 ARRM
4  % 4{𝔽}6        #  7 OP1D