some complement
This commit is contained in:
31
5.md
Normal file
31
5.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# ARM ISA
|
||||
|
||||
## Syntax of Assembly
|
||||
|
||||
* Label: Define a symbol
|
||||
```
|
||||
label:
|
||||
```
|
||||
|
||||
* Instruction
|
||||
* Directive
|
||||
```
|
||||
.directive[;]
|
||||
```
|
||||
* macro_invocation
|
||||
|
||||
## Assembly Expression
|
||||
|
||||
Expressions consist of one or more integer literals or symbol references, combined using operators. Expression can be used as instruction operands or directive argument.
|
||||
|
||||
Assembler evaluates all expression, which means **no rum-time evaluation**.
|
||||
|
||||
Assembly Expressions are
|
||||
* Constnats
|
||||
* Symbol References
|
||||
* Operators
|
||||
* Unary Operators: `+`, `-`, `~`
|
||||
* Binary Operators: `+`, `-`, `*`, `/`, `%`
|
||||
* Binary Logical Operators: `&&`, `||`
|
||||
* Binary Bitwise Operators: `&`, `|`, `^`, `>>`, `<<`
|
||||
* Binary Comparison Operators: `<`, `<=`, `>`, `>=`, `==`, `!=`
|
||||
Reference in New Issue
Block a user