Document bitwise shift operators in assembly

This commit is contained in:
Alex Beregszaszi 2017-02-06 22:42:27 +00:00
parent 59e6ea601b
commit 9e0446a22c

View File

@ -206,6 +206,16 @@ 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 |
+-------------------------+-----+---+-----------------------------------------------------------------+
| shr(x, y) | | C | logical shift right x by y bits |
+-------------------------+-----+---+-----------------------------------------------------------------+
| sar(x, y) | | C | arithmetic shift right x by y bits |
+-------------------------+-----+---+-----------------------------------------------------------------+
| ror(x, y) | | C | rotate right x by y bits |
+-------------------------+-----+---+-----------------------------------------------------------------+
| rol(x, y) | | C | rotate left x by y bits |
+-------------------------+-----+---+-----------------------------------------------------------------+
| addmod(x, y, m) | | F | (x + y) % m with arbitrary precision arithmetics |
+-------------------------+-----+---+-----------------------------------------------------------------+
| mulmod(x, y, m) | | F | (x * y) % m with arbitrary precision arithmetics |