From f14599843874ea70284c7602ffc37a3c4a4b8fa9 Mon Sep 17 00:00:00 2001 From: Chenxing Li Date: Mon, 24 Jul 2023 14:43:55 +0800 Subject: [PATCH] CIP119: PUSH0 instruction (#119) --- CIPs/cip-119.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 CIPs/cip-119.md diff --git a/CIPs/cip-119.md b/CIPs/cip-119.md new file mode 100644 index 0000000..a382a99 --- /dev/null +++ b/CIPs/cip-119.md @@ -0,0 +1,42 @@ +--- +CIP No.: 119 +Title: PUSH0 instruction +Author: Chenxing Li (@ChenxingLi) +Status: Draft +Type: Spec Breaking +Created: 2023-07-21 +--- + +## Simple Summary +Introduce the `PUSH0 (0x5f)` instruction, which pushes the constant value 0 onto the stack. + +## Abstract +Introduce the `PUSH0 (0x5f)` instruction as [EIP-3855](https://eips.ethereum.org/EIPS/eip-3855). + +## Motivation + +Currently, the Solidity compiler generates bytecode for EVM after EIP-3855. Supporting this opcode can achieve maximum compatibility with Ethereum. + +## Specification +Same as [EIP-3855](https://eips.ethereum.org/EIPS/eip-3855). + +## Rationale +N/A + +## Backwards Compatibility +This CIP is Spec Breaking. + +## Test Cases + +N/A + +## Implementation + +N/A + +## Security Considerations + +N/A + +## Copyright +Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).