mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adds note about Standalone assembly.
This commit is contained in:
parent
0b6c6141c4
commit
acabe04f87
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user