Skip to content

Commit

Permalink
Shift operands were swapped in accepted EIP145
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Feb 23, 2018
1 parent b11b709 commit 6d21714
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/assembly.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ In the grammar, opcodes are represented as pre-defined identifiers.
+-------------------------+------+-----------------------------------------------------------------+
| byte(n, x) | | nth byte of x, where the most significant byte is the 0th byte |
+-------------------------+------+-----------------------------------------------------------------+
| shl(x, y) | | logical shift left x by y |
| shl(x, y) | | logical shift left y by x |
+-------------------------+------+-----------------------------------------------------------------+
| shr(x, y) | | logical shift right x by y |
| shr(x, y) | | logical shift right y by x |
+-------------------------+------+-----------------------------------------------------------------+
| sar(x, y) | | arithmetic shift right x by y |
| sar(x, y) | | arithmetic shift right y by x |
+-------------------------+------+-----------------------------------------------------------------+
| addmod(x, y, m) | | (x + y) % m with arbitrary precision arithmetics |
+-------------------------+------+-----------------------------------------------------------------+
Expand Down

0 comments on commit 6d21714

Please sign in to comment.