issues
search
GuildOfWeavers
/
distaff
Zero-knowledge virtual machine written in Rust
MIT License
244
stars
44
forks
source link
Implement EQ operation
#6
Closed
bobbinth
closed
4 years ago
bobbinth
commented
4 years ago
EQ instruction should be added to the instruction set.
Opcode: 00011100
Description: Pops two items from the top of the stack, compares them, and pushes
0
to the stack if the values are equal, or
1
otherwise.
Effect on stack: top of the stack is replaced with the result of the comparison. The rest of the stack is shifted up by one position.
EQ instruction should be added to the instruction set.
0
to the stack if the values are equal, or1
otherwise.