I working on in-line assembly in the smart contract.
function rightShift(uint256 x) public pure returns (uint256 result) {
assembly {
result := shr(x,1)
}
}
Above function always return zero. Am I doing something wrong or it’s bug?