The vec instruction currently creates a vector inside a register.
This issue proposes to extend vec instruction's functionality to include packing, i.e. wrapping objects in vectors.
Example:
strstore 1 "answer to life"
istore 2 42
; pack two objects starting from register 1
vec 3 1 2
The new syntax would be vec <register-index> <start-pack-register-index> <pack-length>.
The
vec
instruction currently creates a vector inside a register. This issue proposes to extendvec
instruction's functionality to include packing, i.e. wrapping objects in vectors.Example:
The new syntax would be
vec <register-index> <start-pack-register-index> <pack-length>
.