Skip to content

Commit

Permalink
Add byte opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelBilbao committed Apr 10, 2024
1 parent d2a33c3 commit 0b86f67
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions system-contracts/contracts/EvmInterpreter.yul
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0b86f67

Please sign in to comment.