array/dup

a


Summary

Duplicate Array A

Bytecode

Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.

(    0 ($get/val 'array/allocate))
(    2 ($get/val 'array/length))
(    4 ($get/val 'a))
(    6 ($apply 1))
(    8 ($apply 1))
(   10 ($det/val 'ret))
(   12 ($drop))
(   13 ($let))
(   14 ($push/int/byte 0))
(   16 ($det/val 'i))
(   18 ($drop))
(   19 ($push/nil))
(   20 ($jmp* 26))
(   23 ($drop))
(   24 ($get/val 'array/set!))
(   26 ($get/val 'ret))
(   28 ($get/val 'i))
(   30 ($get/val 'array/ref))
(   32 ($get/val 'a))
(   34 ($get/val 'i))
(   36 ($apply 2))
(   38 ($apply 3))
(   40 ($drop))
(   41 ($get/val 'i))
(   43 ($inc/int))
(   44 ($set/val 'i))
(   46 ($get/val 'i))
(   48 ($get/val 'array/length))
(   50 ($get/val 'a))
(   52 ($apply 1))
(   54 ($<))
(   55 ($jt* -32))
(   58 ($drop))
(   59 ($get/val 'ret))
(   61 ($closure/pop))
(   62 ($ret))