Code has been added to clipboard!

Solidity Inline Assembly Example 7

Example
{
    let x := 0 // a part of variable declaration in the form of functional-style assignment
    let y := add(x, 2)
    sload(10)
    =: x // assignment in instruction style, will put the outcome of sload(10) into x
}