Skip to content

Commit

Permalink
Add not opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelBilbao committed Apr 9, 2024
1 parent 67d0357 commit d2a33c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions system-contracts/contracts/EvmInterpreter.yul
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,15 @@ object "EVMInterpreter" {

evmGasLeft := chargeGas(evmGasLeft, 3)
}
case 0x19 { // OP_NOT
let a

a, sp := popStackItem(sp)

sp := pushStackItem(sp, not(a))

evmGasLeft := chargeGas(evmGasLeft, 3)
}
case 0x55 { // OP_SSTORE
let key, value

Expand Down

0 comments on commit d2a33c3

Please sign in to comment.