Skip to content

Commit 6f37718

Browse files
authored
Update Instruction Details
1 parent 099f8a9 commit 6f37718

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

learn_evm/evm_opcodes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,3 +203,14 @@ Pops 2 elements from the stack and pushes the second element onto the stack shif
203203

204204
Saves a word to the EVM memory. Pops 2 elements from stack - the first element being the word memory address where the saved value (second element popped from stack) will be stored.
205205

206+
### EQ
207+
Pops 2 elements off the stack and pushes the value 1 to the stack in case they're equal, otherwise the value 0.
208+
209+
### JUMPI (Jump If)
210+
Conditional - Pops 2 elements from the stack, the first element being the jump location and the second being the value 0 (false) or 1 (true). If the value’s 1 the PC will be altered and the jump executed. Otherwise, the value will be 0 and the PC will remain the same and execution unaltered.
211+
212+
### SSTORE
213+
Pops 2 elements off the stack, the first element being the key and the second being the value which is then stored at the storage slot represented from the first element (key).
214+
215+
### SLOAD
216+
Pops 1 element off the stack, that being the key which is the storage slot and returns the read value stored there.

0 commit comments

Comments
 (0)