diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-01-05 08:29:14 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-27 20:43:02 +0800 |
commit | 317e017849e3ada43842c1e0268338e54c0c4d8e (patch) | |
tree | 7aa08b1038979c118df109360043acecc30ab813 | |
parent | afa4a48e3770630a744ef98ccd518601e1f35c86 (diff) | |
download | dexon-solidity-317e017849e3ada43842c1e0268338e54c0c4d8e.tar dexon-solidity-317e017849e3ada43842c1e0268338e54c0c4d8e.tar.gz dexon-solidity-317e017849e3ada43842c1e0268338e54c0c4d8e.tar.bz2 dexon-solidity-317e017849e3ada43842c1e0268338e54c0c4d8e.tar.lz dexon-solidity-317e017849e3ada43842c1e0268338e54c0c4d8e.tar.xz dexon-solidity-317e017849e3ada43842c1e0268338e54c0c4d8e.tar.zst dexon-solidity-317e017849e3ada43842c1e0268338e54c0c4d8e.zip |
Shift operands were swapped in accepted EIP145
-rw-r--r-- | docs/assembly.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst index 9eabc99e..cf9bf840 100644 --- a/docs/assembly.rst +++ b/docs/assembly.rst @@ -206,11 +206,11 @@ In the grammar, opcodes are represented as pre-defined identifiers. +-------------------------+-----+---+-----------------------------------------------------------------+ | byte(n, x) | | F | nth byte of x, where the most significant byte is the 0th byte | +-------------------------+-----+---+-----------------------------------------------------------------+ -| shl(x, y) | | C | logical shift left x by y bits | +| shl(x, y) | | C | logical shift left y by x bits | +-------------------------+-----+---+-----------------------------------------------------------------+ -| shr(x, y) | | C | logical shift right x by y bits | +| shr(x, y) | | C | logical shift right y by x bits | +-------------------------+-----+---+-----------------------------------------------------------------+ -| sar(x, y) | | C | arithmetic shift right x by y bits | +| sar(x, y) | | C | arithmetic shift right y by x bits | +-------------------------+-----+---+-----------------------------------------------------------------+ | addmod(x, y, m) | | F | (x + y) % m with arbitrary precision arithmetics | +-------------------------+-----+---+-----------------------------------------------------------------+ |