diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-10-04 23:12:35 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-04 23:31:28 +0800 |
commit | acabe04f87702fb2d7dabc6878457d0b485ce302 (patch) | |
tree | d5ab830cc391ba0e92ec7bc063efea3146de792d /docs | |
parent | 0b6c6141c4bca2679c1d4c91438d713889fbdab7 (diff) | |
download | dexon-solidity-acabe04f87702fb2d7dabc6878457d0b485ce302.tar.gz dexon-solidity-acabe04f87702fb2d7dabc6878457d0b485ce302.tar.zst dexon-solidity-acabe04f87702fb2d7dabc6878457d0b485ce302.zip |
Adds note about Standalone assembly.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/assembly.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/assembly.rst b/docs/assembly.rst index 484bed2e..20fb0cd5 100644 --- a/docs/assembly.rst +++ b/docs/assembly.rst @@ -52,15 +52,17 @@ these curly braces, you can use the following (see the later sections for more d - assignments, e.g. ``x := add(y, 3)`` - blocks where local variables are scoped inside, e.g. ``{ let x := 3 { let y := add(x, 1) } }`` -The following features are only available for standalone assembly. -Standalone assembly is supported for backwards compatibility but is not documented -here anymore. +The following features are only available for standalone assembly: - - direct stack contral via dup1, swap1, ... + - direct stack control via ``dup1``, ``swap1``, ... - direct stack assignments (in "instruction style"), e.g. ``3 =: x`` - labels, e.g. ``name:`` - jump opcodes +.. note:: + Standalone assembly is supported for backwards compatibility but is not documented + here anymore. + At the end of the ``assembly { ... }`` block, the stack must be balanced, unless you require it otherwise. If it is not balanced, the compiler generates a warning. |