Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 754 Bytes

Exchange Operations.md

File metadata and controls

18 lines (14 loc) · 754 Bytes
OP Code (Hexidecimal) Operation1 Description Gas
0x90 SWAP1 2 2 Exchange 1st and 2nd stack items 3
0x91 SWAP2 3 3 Exchange 1st and 3rd stack items2 3
0x9f SWAP16 17 17 Exchange 1st and 17th stack items 3

References


Tags

Instruction Set

Footnotes

  1. (Mnemonic, Stack items placed, Stack items removed)

  2. SWAP2, SWAP3..SWAP15 swap 3rd, 4th..16th stack item respectively*