From 953135131389e86d48f83d0a24370a912458e17f Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 21 May 2019 01:19:46 +0100 Subject: [PATCH] Automatically merged updates to draft EIP(s) 663 (#2056) 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 --- EIPS/eip-663.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/EIPS/eip-663.md b/EIPS/eip-663.md index fe42c2b768ffac..feae741cab8b9e 100644 --- a/EIPS/eip-663.md +++ b/EIPS/eip-663.md @@ -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. @@ -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/).