Skip to content

Commit 6cb6bc8

Browse files
committed
rows corrections
1 parent a30aad3 commit 6cb6bc8

File tree

1 file changed

+32
-71
lines changed

1 file changed

+32
-71
lines changed

appdx-evm-opcodes-gas.asciidoc

+32-71
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ This appendix is based on the consolidation work done by the people of https://g
88
Table
99
~~~~~
1010

11-
[width="27%",cols="20%,20%,20%,20%,20%",options="header",]
12-
|=======================================================================
11+
[cols=",,,,",options="header",]
12+
|=======================================================================================================================================================================================================
1313
|Opcode |Name |Description |Extra Info |Gas
1414
|`0x00` |STOP |Halts execution |- |0
1515

@@ -33,8 +33,7 @@ Table
3333

3434
|`0x0a` |EXP |Exponential operation |- |10***
3535

36-
|`0x0b` |SIGNEXTEND |Extend length of two's complement signed integer |-
37-
|5
36+
|`0x0b` |SIGNEXTEND |Extend length of two's complement signed integer |- |5
3837

3938
|`0x0c` - `0x0f` |Unused |Unused |- |
4039

@@ -72,41 +71,31 @@ Table
7271

7372
|`0x33` |CALLER |Get caller address |- |2
7473

75-
|`0x34` |CALLVALUE |Get deposited value by the instruction/transaction
76-
responsible for this execution |- |2
74+
|`0x34` |CALLVALUE |Get deposited value by the instruction/transaction responsible for this execution |- |2
7775

7876
|`0x35` |CALLDATALOAD |Get input data of current environment |- |3
7977

80-
|`0x36` |CALLDATASIZE |Get size of input data in current environment |-
81-
|2
78+
|`0x36` |CALLDATASIZE |Get size of input data in current environment |- |2
8279

83-
|`0x37` |CALLDATACOPY |Copy input data in current environment to memory
84-
|- |3
80+
|`0x37` |CALLDATACOPY |Copy input data in current environment to memory |- |3
8581

8682
|`0x38` |CODESIZE |Get size of code running in current environment |- |2
8783

88-
|`0x39` |CODECOPY |Copy code running in current environment to memory |-
89-
|3
84+
|`0x39` |CODECOPY |Copy code running in current environment to memory |- |3
9085

9186
|`0x3a` |GASPRICE |Get price of gas in current environment |- |2
9287

9388
|`0x3b` |EXTCODESIZE |Get size of an account's code |- |700
9489

9590
|`0x3c` |EXTCODECOPY |Copy an account's code to memory |- |700
9691

97-
|`0x3d` |RETURNDATASIZE |Pushes the size of the return data buffer onto
98-
the stack
99-
|https://github.com/ethereum/EIPs/blob/master/EIPS/eip-211.md[EIP 211]
100-
|2
92+
|`0x3d` |RETURNDATASIZE |Pushes the size of the return data buffer onto the stack |https://github.com/ethereum/EIPs/blob/master/EIPS/eip-211.md[EIP 211] |2
10193

102-
|`0x3e` |RETURNDATACOPY |Copies data from the return data buffer to
103-
memory |https://github.com/ethereum/EIPs/blob/master/EIPS/eip-211.md[EIP
104-
211] |3
94+
|`0x3e` |RETURNDATACOPY |Copies data from the return data buffer to memory |https://github.com/ethereum/EIPs/blob/master/EIPS/eip-211.md[EIP 211] |3
10595

10696
|`0x3f` |Unused |- |- |
10797

108-
|`0x40` |BLOCKHASH |Get the hash of one of the 256 most recent complete
109-
blocks |- |20
98+
|`0x40` |BLOCKHASH |Get the hash of one of the 256 most recent complete blocks |- |20
11099

111100
|`0x41` |COINBASE |Get the block's beneficiary address |- |2
112101

@@ -136,13 +125,11 @@ blocks |- |20
136125

137126
|`0x57` |JUMPI |Conditionally alter the program counter |- |10
138127

139-
|`0x58` |GETPC |Get the value of the program counter prior to the
140-
increment |- |2
128+
|`0x58` |GETPC |Get the value of the program counter prior to the increment |- |2
141129

142130
|`0x59` |MSIZE |Get the size of active memory in bytes |- |2
143131

144-
|`0x5a` |GAS |Get the amount of available gas, including the
145-
corresponding reduction the amount of available gas |- |2
132+
|`0x5a` |GAS |Get the amount of available gas, including the corresponding reduction the amount of available gas |- |2
146133

147134
|`0x5b` |JUMPDEST |Mark a valid destination for jumps |- |1
148135

@@ -286,88 +273,62 @@ corresponding reduction the amount of available gas |- |2
286273

287274
|`0xa4` |LOG4 |Append log record with four topics |- |1875
288275

289-
|`0xa5` - `0xaf` |Unused |-
276+
|`0xa5` - `0xaf` |Unused |- |- |
290277

291-
|`0xb0` |JUMPTO |Tentitive
292-
https://github.com/ethereum/solidity/blob/c61610302aa2bfa029715b534719d25fe3949059/libevmasm/Instruction.h#L176[libevmasm
293-
has different numbers]
294-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
295-
615]
278+
|`0xb0` |JUMPTO |Tentitive https://github.com/ethereum/solidity/blob/c61610302aa2bfa029715b534719d25fe3949059/libevmasm/Instruction.h#L176[libevmasm has different numbers] | https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
296279

297-
|`0xb1` |JUMPIF |Tentitive
298-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
299-
615]
280+
|`0xb1` |JUMPIF |Tentitive |https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
300281

301-
|`0xb2` |JUMPSUB |Tentitive
302-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
303-
615]
282+
|`0xb2` |JUMPSUB |Tentitive |https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
304283

305-
|`0xb4` |JUMPSUBV |Tentitive
306-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
307-
615]
284+
|`0xb4` |JUMPSUBV |Tentitive |https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
308285

309-
|`0xb5` |BEGINSUB |Tentitive
310-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
311-
615]
286+
|`0xb5` |BEGINSUB |Tentitive |https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
312287

313-
|`0xb6` |BEGINDATA |Tentitive
314-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
315-
615]
288+
|`0xb6` |BEGINDATA |Tentitive |https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
316289

317-
|`0xb8` |RETURNSUB |Tentitive
318-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
319-
615]
290+
|`0xb8` |RETURNSUB |Tentitive |https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
320291

321-
|`0xb9` |PUTLOCAL |Tentitive
322-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
323-
615]
292+
|`0xb9` |PUTLOCAL |Tentitive |https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
324293

325-
|`0xba` |GETLOCAL |Tentitive
326-
|https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP
327-
615]
294+
|`0xba` |GETLOCAL |Tentitive |https://github.com/ethereum/EIPs/blob/606405b5ab7aa28d8191958504e8aad4649666c9/EIPS/eip-615.md[EIP 615] |
328295

329-
|`0xbb` - `0xe0` |Unused |-
296+
|`0xbb` - `0xe0` |Unused |- |- |
330297

331298
|`0xe1` |SLOADBYTES |Only referenced in pyethereum |- |-
332299

333300
|`0xe2` |SSTOREBYTES |Only referenced in pyethereum |- |-
334301

335302
|`0xe3` |SSIZE |Only referenced in pyethereum |- |-
336303

337-
|`0xe4` - `0xef` |Unused |-
304+
|`0xe4` - `0xef` |Unused |- |- |
338305

339306
|`0xf0` |CREATE |Create a new account with associated code |- |32000
340307

341308
|`0xf1` |CALL |Message-call into an account |- |Complicated
342309

343-
|`0xf2` |CALLCODE |Message-call into this account with alternative
344-
account's code |- |Complicated
310+
|`0xf2` |CALLCODE |Message-call into this account with alternative account's code |- |Complicated
345311

346312
|`0xf3` |RETURN |Halt execution returning output data |- |0
347313

348-
|`0xf4` |DELEGATECALL |Message-call into this account with an
349-
alternative account's code, but persisting into this account with an
350-
alternative account's code |- |Complicated
314+
|`0xf4` |DELEGATECALL |Message-call into this account with an alternative account's code, but persisting into this account with an alternative account's code |- |Complicated
351315

352-
|`0xf5` |CALLBLACKBOX |- |- | |40
316+
|`0xf5` |CALLBLACKBOX |- |- |40
353317

354-
|`0xf6` - `0xf9` |Unused |- |-
318+
|`0xf6` - `0xf9` |Unused |- |- |
355319

356320
|`0xfa` |STATICCALL |Similar to CALL, but does not modify state |- |40
357321

358-
|`0xfb` |CREATE2 |Create a new account and set creation address to
359-
`sha3(sender + sha3(init code)) % 2**160` |-
322+
|`0xfb` |CREATE2 |Create a new account and set creation address to `sha3(sender + sha3(init code)) % 2**160` |- |
360323

361324
|`0xfc` |TXEXECGAS |Not in yellow paper FIXME |- |-
362325

363-
|`0xfd` |REVERT |Stop execution and revert state changes, without
364-
consuming all provided gas and providing a reason |- |0
326+
|`0xfd` |REVERT |Stop execution and revert state changes, without consuming all provided gas and providing a reason |- |0
365327

366328
|`0xfe` |INVALID |Designated invalid instruction |- |0
367329

368-
|`0xff` |SELFDESTRUCT |Halt execution and register account for later
369-
deletion |- |5000*
370-
|=======================================================================
330+
|`0xff` |SELFDESTRUCT |Halt execution and register account for later deletion |- |5000*
331+
|=======================================================================================================================================================================================================
371332

372333

373334

0 commit comments

Comments
 (0)