Skip to content

Commit

Permalink
Automatically merged updates to draft EIP(s) 663 (#2056)
Browse files Browse the repository at this point in the history
Hi, I'm a bot! This change was automatically merged because:

 - It only modifies existing Draft or Last Call EIP(s)
 - The PR was approved or written by at least one author of each modified EIP
 - The build is passing
  • Loading branch information
axic authored and eip-automerger committed May 21, 2019
1 parent fe44e99 commit 9531351
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion EIPS/eip-663.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ This results in wasting a byte in the cases of only referring to the top 255 sta

### Option C

This option extends Option A with two new instructions, `DUPSn` and `SWAPSn`, where the value of `n` is encoded as an 8-bit immediate value following the opcode.
This option extends Option B with two new instructions, `DUPSn` (`0xb2`) and `SWAPSn` (`0xb3`), where the value of `n` is encoded as an 8-bit immediate value following the opcode.

The value `n` has a range of 0 to 255, but otherwise the same rules apply as in Option A.

Expand All @@ -68,6 +68,12 @@ This has no effect on backwards compatibility.

TBA

## References

A similar proposal was made with [EIP-174](https://github.com/ethereum/EIPs/issues/174). Read the thread for some detailed discussion.

Rootstock [RSKIP26](https://github.com/rsksmart/RSKIPs/blob/master/IPs/RSKIP26.md) also introduced `SWAPN` and `DUPN` with Option A described above.

## Copyright

Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).

0 comments on commit 9531351

Please sign in to comment.