1 2 3 4 5 6 7 8 9
contract C { function f(uint x) public payable { assembly { x := callvalue() } } } // ----