Code has been added to clipboard!

Solidity Inline Assembly Example 3

Example
pragma solidity ^0.4.11;

contract Cont {
    uint c;
    function func(uint a) returns (uint b) {
        assembly {
            b := mul(a, sload(c_slot)) // the offset is ignored, it is zero
        }
    }
}