From 0b86f675b0b194fd3e4df3f91219908e8a56f3cb Mon Sep 17 00:00:00 2001 From: Manuel Bilbao Date: Wed, 10 Apr 2024 10:34:39 -0300 Subject: [PATCH] Add byte opcode --- system-contracts/contracts/EvmInterpreter.yul | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system-contracts/contracts/EvmInterpreter.yul b/system-contracts/contracts/EvmInterpreter.yul index 231954ba9..69f6b8a96 100644 --- a/system-contracts/contracts/EvmInterpreter.yul +++ b/system-contracts/contracts/EvmInterpreter.yul @@ -404,6 +404,16 @@ object "EVMInterpreter" { evmGasLeft := chargeGas(evmGasLeft, 3) } + case 0x1A { // OP_BYTE + let i, x + + i, sp := popStackItem(sp) + x, sp := popStackItem(sp) + + sp := pushStackItem(sp, byte(i, x)) + + evmGasLeft := chargeGas(evmGasLeft, 3) + } case 0x55 { // OP_SSTORE let key, value