Pragmatic directives: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 36: | 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>.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>.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 |
* <code>equ</code>: Equates a label to a specific numeric value. |
||
* <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. |
* <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. |