fork | group |
---|---|
Frontier |
Push Operations |
Index 1 is top of the stack.
The new value is put on top of the stack, incrementing all the other value indices. The values for a specific opcode thus have to be pushed in reverse order of the stack. For example, with MSTORE, the first value pushed would have to be value
, and then offset
.
value
: pushed value, aligned to the right (put in the lowest significant bytes).
* | * |
---|---|
Code | 0x61FFFF610000 |
Text | PUSH2 FFFF PUSH2 0000 |
* | Input | Output |
---|---|---|
1 |
0x0000 |
|
2 |
0xFFFF |
The state changes done by the current context are reverted in those cases:
- Not enough gas.
- Stack overflow.