This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:multiasm:papc:chapter_6_12 [2026/02/27 02:02] – [Constants] jtokarz | en:multiasm:papc:chapter_6_12 [2026/02/27 02:10] (current) – [Statements] jtokarz | ||
|---|---|---|---|
| Line 243: | Line 243: | ||
| All fields in a statement are optional. A statement can be composed of a label only (ended with a colon), an operation only (if it doesn' | All fields in a statement are optional. A statement can be composed of a label only (ended with a colon), an operation only (if it doesn' | ||
| <code asm> | <code asm> | ||
| - | ; name ; operation ; operands ; comment | + | ; name ; operation ; operands ; comment |
| - | cns_y EQU | + | cns_y |
| + | ; value 134 | ||
| - | .DATA ; operation only - directive to start data section | + | |
| - | var_x DB 123 ; definition of a variable named var_x with init value 123 | + | var_x |
| + | ; value 123 | ||
| - | .CODE ; operation only - directive to start code section | + | |
| - | begin: | + | begin: |
| - | | + | mov rax, rbx ; operation and corresponding operands |
| - | | + | ; comment only statement |
| - | | + | END ; operation only - end of the source file |
| </ | </ | ||