Pragmatic directives: Difference between revisions

m
Line 36:
* <code>.data</code>: Marks the beginning of the data segment. You can load this segment into a segment register with <code>@data</code> rather than <code>seg .data</code>.
* <code>.code</code>: Marks the beginning of the code segment. You can load this segment into a segment register with <code>@code</code> rather than <code>seg .code</code>.
* <code>equ</code>: Equates a label to a specific numeric value. Each instance of that label in your code becomes a constant if preceded by a # and a memory address otherwise.
 
* <code>include filename</code>: Adds an additional file to your source code. The assembler treats the contents as 6502 instructions when assembling. For most assemblers the location of the <code>include</code> statement matters, since it is treated as if the contents were copy-pasted inline. UASM doesn't require quotation marks around the filename.
1,489

edits