evm-assembly-lab
Hand-written EVM inline assembly and Yul from real work in 2023 and 2024. It starts with plain assembly, cuts gas version by version, then goes one step lower and rewrites it in pure Yul.
See the code on GitHub// read a word straight from calldata let amount := calldataload(0x04) if iszero(amount) { revert(0, 0) } mstore(0x00, amount) return(0x00, 0x20)