🧮 Stack Machine (2D): How Smart Contracts Execute
2D bytecode-execution lab: watch a stack-based virtual machine PUSH, ADD, MUL, DUP, SWAP and SSTORE its way through a fixed program, with a live stack, storage grid and instruction tape drawn on a flat canvas.
This 2D companion runs the same stack-based virtual machine as the 3D version, redrawn as a flat instruction tape, stack column and storage grid so the opcode-by-opcode mechanics are easy to trace: pick one of three fixed bytecode programs, then play, step or rebuild while PUSH, ADD, MUL, DUP, SWAP and SSTORE push, pop and store values in view.
2D bytecode-execution lab with a live stack, storage grid and instruction tape; play/pause, single-step, speed control and three selectable programs.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install