marekjm / viuavm

Parallel virtual machine designed to reliably run massively concurrent programs
https://viuavm.org/
GNU General Public License v3.0
71 stars 11 forks source link

Provide unified arithmetic instructions #168

Closed marekjm closed 7 years ago

marekjm commented 7 years ago

VM should provide unified arithmetic (calculations) and logic (comparison) instructions for numbers. Desired result type would be encoded as first operand, and the opcode would carry information about type:

[opcode][result-type][result-ri][lhs-ri][rhs-ri]