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

Implement default keyword #164

Closed marekjm closed 8 years ago

marekjm commented 8 years ago

Assembler should provide default values (implemented using default keyword) for some instruction operands. For example:

istore 1 default

will store a default integer in register 1. They keyword would act as a documentation (saying "initialise this with a default value for given type"), and a message to maintainer (no more debating whether the 0 in istore 1 0 must stay zero, or is it just a default value if the instruction can be written as istore 1 default).

marekjm commented 8 years ago

Closed by edf952e0374d41c51c295dfce4f4c65b205917e3.