aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-30 17:15:44 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-30 19:33:04 +0800
commit524a52660d01025954374e7902ab6df68e466c26 (patch)
treee1e1c48da8b70e0f6df24b6ba63260bf8ed58b67
parent59d3a9d169a55dc6fd3348e2fa581840bea7145b (diff)
downloaddexon-solidity-524a52660d01025954374e7902ab6df68e466c26.tar.gz
dexon-solidity-524a52660d01025954374e7902ab6df68e466c26.tar.zst
dexon-solidity-524a52660d01025954374e7902ab6df68e466c26.zip
Document keccak256 in assembly
-rw-r--r--docs/assembly.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst
index 07583a24..90e70031 100644
--- a/docs/assembly.rst
+++ b/docs/assembly.rst
@@ -182,6 +182,8 @@ In the grammar, opcodes are represented as pre-defined identifiers.
+-------------------------+------+-----------------------------------------------------------------+
| signextend(i, x) | | sign extend from (i*8+7)th bit counting from least significant |
+-------------------------+------+-----------------------------------------------------------------+
+| keccak256(p, n) | | keccak(mem[p...(p+n))) |
++-------------------------+------+-----------------------------------------------------------------+
| sha3(p, n) | | keccak(mem[p...(p+n))) |
+-------------------------+------+-----------------------------------------------------------------+
| jump(label) | `-` | jump to label / code position |