Skip to content

Commit bc54555

Browse files
authored
Merge pull request #319 from ardislu/add-opcodes
Add `PUSH0` opcode
2 parents 37d63bb + 9e07e66 commit bc54555

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

learn_evm/evm_opcodes.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ The gas information is a work in progress. If an asterisk is in the Gas column,
7878
| [`0x59`](#msize) | MSIZE | Get the size of active memory in bytes | - | 2 |
7979
| [`0x5a`](#gas) | GAS | Get the amount of available gas, including the corresponding reduction for the cost of this instruction | - | 2 |
8080
| [`0x5b`](#jumpdest) | JUMPDEST | Mark a valid destination for jumps | - | 1 |
81-
| `0x5c` - `0x5f` | Unused | - |
81+
| `0x5c` - `0x5e` | Unused | - |
82+
| [`0x5f`](#push0) | PUSH0 | Place the constant value 0 on stack | [EIP-3855](https://eips.ethereum.org/EIPS/eip-3855) | 2 |
8283
| [`0x60`](#push1) | PUSH1 | Place 1 byte item on stack | - | 3 |
8384
| [`0x61`](#push2) | PUSH2 | Place 2-byte item on stack | - | 3 |
8485
| [`0x62`](#push3) | PUSH3 | Place 3-byte item on stack | - | 3 |
@@ -816,6 +817,16 @@ noop, marks a valid jump destination
816817

817818
---
818819

820+
### PUSH0
821+
822+
**0x5f**
823+
824+
The constant value 0 is pushed onto the stack.
825+
826+
() => (0)
827+
828+
---
829+
819830
### PUSH1
820831

821832
**0x60**

0 commit comments

Comments
 (0)