You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We recommend to use [Verilog-style](https://github.com/Minres/CoreDSL/wiki/Literals#verilog-style-literals) integer literals in the encoding, as a C-style bit-literals will not capture leading zeros (e.g., `0b010` == `2'b10`, not `3'b010` as one might expect).
### Assembly format
The `assembly` directive defines the *textual* format of the instruction for use in assembler and disassembler tools.
```
AssemblySpec ::= '{' STRING, STRING '}' | STRING
```
The two strings in the curly-braces-enclosed form are interpreted as the mnemonic and a format string for the argument list.
If only one string is given, it specifies the argument list format, and the instruction's name is used as the mnemonic.
NB: The longer form is useful when the desired mnemonic is not a valid identifier, e.g. because it contains a dot.
The purpose if this statement is to define the *textual* format of the instruction's argument list, for use in assembler and disassembler tools. It follows the format string syntax of the [fmt library](https://fmt.dev/latest/syntax.html#syntax) with some minor extensions. A similar format specification is used by the Python string format() function. The [arg_id identifiers](https://fmt.dev/latest/syntax.html#grammar-token-arg_id) are automatically derived from the named encoding fields (see above), e.g. in
The argument list format follows the format string syntax of the [fmt library](https://fmt.dev/latest/syntax.html#syntax) with some minor extensions. A similar format specification is used by the Python string format() function. The [arg_id identifiers](https://fmt.dev/latest/syntax.html#grammar-token-arg_id) are automatically derived from the named encoding fields (see above), e.g. in