-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
✨ enhancementImprovement or new featureImprovement or new feature💫 good first issueGood for newcomersGood for newcomers🤔 questionMore information is neededMore information is needed
Description
I saw that the addi
instruction was added in a recent commit. Is there any interest in adding read_memi
and write_memi
instructions? My rationale is, I pretty frequently need to read/write single values to non-sequential, constant, memory indices.
read_memi + n
: push value at memory index n
onto the stack
write_memi + n
: pop the top value of the stack and store it at memory index n
n
is the memory index. The value being read/written is on the stack. This is beneficial in cases of static memory layouts.
Have you considered such an opcode when writing tasm-lib
? Would adding such an instruction add significant overhead to the proving complexity?
Thanks
Sword-Smith
Metadata
Metadata
Assignees
Labels
✨ enhancementImprovement or new featureImprovement or new feature💫 good first issueGood for newcomersGood for newcomers🤔 questionMore information is neededMore information is needed