Run

%run utils.ipynb

notebooks = [
    "08_evm.ipynb",
    "09_bytecode.ipynb"
]

import_notebooks(notebooks)

Run#

GAS = 21_000

Set up the EVM

evm = EVM(SIMPLE_ADD, GAS, 0)

Run it!

evm.run()

Take a look at the result

print(evm.stack)
321 <first

Congratulations on making it this far! You’ve successfully built a working foundation and gained hands-on experience with the core concepts of EVM. From here, you might explore additional opcodes beyond what we’ve covered, dive deeper into the complete implementation code, or experiment with creative ideas of your own.