XA(1)
OMG bestie, welcome to the xa manual page, section 1 (General Commands Manual) β the one and only cross-assembler for 6502/R65C02/65816 that's literally iconic. π
β¨ NAME β¨
xa β 6502/R65C02/65816 cross-assembler. That's it, that's the name. π
πΈ SYNOPSIS πΈ
xa [OPTION]... FILE
π¦ DESCRIPTION π¦
okay so xa is a multi-pass cross-assembler for the 8-bit processors in the 6502 series (such as the 6502, 65C02, 6504, 6507, 6510, 7501, 8500, 8501 and 8502), the Rockwell R65C02, and the 16-bit 65816 processor. For a description of syntax, see ASSEMBLER SYNTAX further in this manual page. No cap, it's giving main character energy. β¨
π OPTIONS π
-Eβ Do not stop after 20 errors, but show all errors. So if your code is a mess, you get the whole tea. π«-vβ Verbose output. It's giving extra, but in a useful way. πββοΈ-Cβ No CMOS opcodes (default is to allow R65C02 opcodes). So if you want to turn off the CMOS vibes, this is your girl. π«-Wβ No 65816 opcodes (default). That's the default, so if you don't say anything, you get no 65816. π-wβ Allow 65816 opcodes. Yes queen, turn it on. π₯-Bβ Show lines with block open/close (see PSEUDO-OPS). Block open/close, so you can see the structure. π§±-cβ Produce o65 object files instead of executable files (no linking performed); files may contain undefined references. It's giving object file energy. π-ofilename β Set output filename. The default isa.o65; use the special filename-to output to standard output. So if you want stdout, just say-o -. π-Pfilename β Set listing filename. The default is none; use the special filename-to print the listing to standard output. Listing but make it stdout. β¨-Fformat β Set listing format; default isplain. The only other currently supported format ishtml. So you can have your listing in HTML, fancy. π-efilename β Set errorlog filename; default is none. Keep track of your oopsie daisies. π-lfilename β Set labellist filename; default is none. This is the symbol table and can be used by disassemblers such asdxa(1)to reconstruct source. So useful, fr fr. π-rβ Add cross-reference list to labellist (requires-l). Don't forget-lbestie, it's required. π-Xcompatsetβ Enables compatibility settings to become more (not fully!) compatible with other 6502 assemblers and codebases. Currently supported are compatibility setsMASM,CA65andC, withXA23available as a deprecated option for codebases relying on compatibility with the previous version ofxa. Multiple compatibility sets may be specified and combined, e.g.,-XMASM -XXA23.-XMASMβ allows colons to appear in comments for MASM compatibility. This does not affect colon interpretation elsewhere and may become the default in a future version. Colon in comments, no big deal. π¦-XCA65β adds syntactic features more compatible withca65(1). It permits:=for defining labels (instead of plain=), and adds support for unnamed labels and "cheap" local labels using the@character, but disables its other meaning for 24-bit mode (see ASSEMBLER SYNTAX). So@gets a new job, slay. π-XCβ enables the usage of0xHEXand0OCTALC-style number encodings. C-style numbers, we love to see it. π’-XXA23β restores partial compatibility withxa2.3.x. In particular, it uses^for generating control characters, disables escaped characters with\, allows nested multi-line comments, and disables all predefinedxapreprocessor macros. Although some portions of this option remain supported syntax, the option itself is inherently deprecated and may be removed in the next 2.x or 3.x release. So it's deprecated, be careful bestie. π
-aβ Supportca65(1)-style unnamed labels using colons, but not the remainder of the other supportedca65(1)features. This allows their use with 65816 mode, for example. Implies-XMASM. So it's like a little taste of ca65, but not the whole meal. π½οΈ-Mβ This option is deprecated and will be removed in a future version; use-XMASMinstead. Allows colons to appear in comments for MASM compatibility. This does not affect colon interpretation elsewhere, and may become the default in a future version. So maybe don't use it, bestie. π-kβ Allow the carat (^) to mask a character with$1f/31. This can be used as a shorthand for control characters, such as^m^jbecoming a carriage return followed by a linefeed. Control characters, cute. π-Rβ Start assembler in relocating mode, i.e. use segments. Segments, periodt. π§©-Uβ Do not allow undefined labels in relocating mode. No undefined labels allowed, strict queen. π-Llabelβ Defines label as an absolute (but undefined) label even when linking. So even when linking, this label is absolute. π-b? addrβ Set segment base for segment ? to address addr. ? should bet,d,borzfor text, data, bss or zero segments, respectively. So you can set the base for text, data, bss, or zero. ποΈ-A addrβ Make text segment start at an address such that when the file starts at address addr, relocation is not necessary. Overrides-bt; other segments still have to be taken care of with-b. So it's a shortcut for the text segment, but the others need-b. β¨-Gβ Suppress list of exported globals. No list of exported globals, okay. π€«-DDEF=TEXTβ Define a preprocessor macro on the command line (see PREPROCESSOR). Macros on the command line, we love a shortcut. π-I dirβ Add directory dir to the include path (beforeXAINPUT; see ENVIRONMENT). Include path, so your includes are found. π-O charsetβ Define the output charset for character strings. Currently supported areASCII(default),PETSCII(Commodore ASCII),PETSCREEN(Commodore screen codes) andHIGH(set high bit on all characters). Charset choices, so many vibes. π-p?β Set the alternative preprocessor character to ?. This is useful when you wish to usecpp(1)and the built-in preprocessor at the same time (see PREPROCESSOR). Characters may need to be quoted for your shell (example:-p'~'). So you can have both preprocessors, iconic. π§--helpβ Show summary of options (-?is a synonym). Help, we all need it sometimes. π«Ά--versionβ Show version of program. Version check, always good. β
β¨ ASSEMBLER SYNTAX β¨
okay bestie, real talk: a full intro to 6502 assembly language programming and mnemonics is beyond the scope of this manual page. π We invite you to investigate any number of the excellent books on the subject; one useful title is "Machine Language For Beginners" by Richard Mansfield (COMPUTE!), covering the Atari, Commodore and Apple 8-bit systems, and is widely available on the used market. πβ¨
xa supports both the standard NMOS 6502 opcodes as well as the Rockwell CMOS opcodes used in the 65C02 (R65C02). With the -w option, xa will also accept opcodes for the 65816. NMOS 6502 undocumented opcodes are intentionally not supported, and should be entered manually using the .byte pseudo-op (see PSEUDO-OPS). Due to conflicts between the R65C02 and 65816 instruction sets and undocumented instructions on the NMOS 6502, their use is discouraged. π«
In general, xa accepts the more-or-less standard 6502 assembler format as popularised by MASM and TurboAssembler. Values and addresses can be expressed either as literals, or as expressions; to wit, π
123β decimal value$234β hexadecimal value (0x234accepted with-XC)&123β octal (0123accepted with-XC)%010110β binary*β current value of the program counter
The ASCII value of any quoted character is inserted directly into the program text (example: "A" inserts the byte "A" into the output stream); see also the PSEUDO-OPS section. This is affected by the currently selected character set, if any. πΈ
Labels define locations within the program text, just as in other multi-pass assemblers. A label is defined by anything that is not an opcode; for example, a line such as
label1 lda #0
defines label1 to be the current location of the program counter (thus the address of the LDA opcode). A label can be explicitly defined by assigning it the value of an expression, such as
label2 = $d000
which defines label2 to be the address $d000, namely, the start of the VIC-II register block on Commodore 64 computers. The program counter * is considered to be a special kind of label, and can be assigned to with statements such as
* = $c000
which sets the program counter to decimal location 49152. If -XCA65 is specified, you can also use := as well as =. π
With the exception of the program counter, labels cannot be assigned multiple times. To explicitly declare redefinition of a label, place a - (dash) before it, e.g.,
-label2 = $d020
which sets label2 to the Commodore 64 border colour register. The scope of a label is affected by the block it resides within (see PSEUDO-OPS for block instructions). A label may also be hard-specified with the -L command line option. π
Redefining a label does not change previously assembled code that used the earlier value. Therefore, because the program counter is a special type of label, changing the program counter to a lower value does not reorder code assembled previously and changing it to a higher value does not issue padding to put subsequent code at the new location. This is intentional behaviour to facilitate generating relocatable and position-independent code, but can differ from other assemblers which use this behaviour for linking. However, it is possible to use pseudo-ops to simulate other assemblers' behaviour and use xa as a linker; see PSEUDO-OPS and LINKING. π
If -XCA65 or -a is specified, "unnamed" labels may be specified with : (i.e., no label, just a colon); branches may then reference these unnamed labels with a colon and plus signs for forward branching or minus signs for backward branching. For example (from the ca65(1) documentation),
: lda (ptr1),y ; #1
cmp (ptr2),y
bne :+ ; -> #2
tax
beq :+++ ; -> #4
iny
bne :- ; -> #1
inc ptr1+1
inc ptr2+1
bne :- ; -> #1
: bcs :+ ; #2 -> #3
ldx #$FF
rts
: ldx #$01 ; #3
: rts ; #4
Additionally, in -XCA65 mode, "cheap" local labels may be used, marked by the @ prefix. These temporary labels exist only between two regular labels and automatically go out of scope with the next regular label. This allows, with reasonable care, reuse of common label names like "loop." π
For those instructions where the accumulator is the implied argument (such as asl and lsr; inc and dec on R65C02; etc.), the idiom of explicitly specifying the accumulator with a is unnecessary as the proper form will be selected if there is no explicit argument. In fact, for consistency with label handling, if there is a label named a, this will actually generate code referencing that label as a memory location and not the accumulator. Otherwise, the assembler will complain. π
Labels and opcodes may take expressions as their arguments to allow computed values, and may themselves reference other labels and/or the program counter. An expression such as lab1+1 (which operates on the current value of label lab1 and increments it by one) may use the following operands, given from highest to lowest priority: π
*β multiplication (priority10)/β integer division (priority10)+β addition (priority9)-β subtraction (9)<<β shift left (8)>>β shift right (8)>=,=>β greater than or equal to (7)>β greater than (7)<=,=<β less than or equal to (7)<β less than (7)=β equal to (6);==also accepted<>,><β does not equal (6);!=also accepted&β bitwise AND (5)^β bitwise XOR (4)|β bitwise OR (3)&&β logical AND (2)||β logical OR (1)
Parentheses are valid. When redefining a label, combining arithmetic or bitwise operators with the = (equals) operator such as += and so on are valid, e.g.,
-redeflabel += (label12/4)
β
Normally, xa attempts to ascertain the value of the operand and (when referring to a memory location) use zero page, 16-bit or (for 65816) 24-bit addressing where appropriate and where supported by the particular opcode. This generates smaller and faster code, and is almost always preferable. π
Nevertheless, you can use these prefix operators to force a particular rendering of the operand. Those that generate an eight bit result can also be used in 8-bit addressing modes, such as immediate and zero page. π
<β low byte of expression, e.g.,lda #<vector>β high byte of expression!β in situations where the expression could be understood as either an absolute or zero page value, do not attempt to optimize to a zero page argument for those opcodes that support it (i.e., keep as 16 bit word)@β render as 24-bit quantity for 65816, even if smaller than 24 bits (must specify-wcommand-line option, must not specify-XCA65)`β force further optimization, even if the length of the instruction cannot be reliably determined (seeNOTES'N'BUGS)
Expressions can occur as arguments to opcodes or within the preprocessor (see PREPROCESSOR for syntax). For example,
lda label2+1
takes the value at label2+1 (using our previous label's value, this would be $d021), and will be assembled as $ad $21 $d0 to disk. Similarly,
lda #<label2
will take the lowest 8 bits of label2 (i.e., $20), and assign them to the accumulator (assembling the instruction as $a9 $20 to disk). πΎ
Comments are specified with a semicolon (;), such as
;this is a comment
They can also be specified in the C language style, using /* */ and // which are understood at the PREPROCESSOR level (q.v.). π
Normally, the colon (:) separates statements, such as
label4 lda #0:sta $d020
or
label2: lda #2
(note the use of a colon for specifying a label, similar to some other assemblers, which xa also understands with or without the colon). This also applies to semicolon comments, such that
; a comment:lda #0
is understood as a comment followed by an opcode. To defeat this, use the -XMASM compatibility mode to allow colons within comments; this may become the default in a future version. Colon statement separation does not apply to /* */ and // comments, which are dealt with at the preprocessor level (q.v.). π
β¨ PSEUDO-OPS β¨
okay so pseudo-ops?? they're like, fake opcodes β not real instructions, just little notes the assembler reads to do meta stuff or inline stuff for you π«Ά. And bestie, like most assemblers out there, xa came with a whole rich lil set of them. let's go π
.byt value1,value2,value3,...β drops a whole string of bytes straight into the assembled object, no questions asked. the args can be expressions, and you can put as many bytes as your heart desires π.asc "text1" ,"text2",...β inserts a character string into the assembled object. the strings get read according to whatever character set you've currently got going on; like, if ASCII is the vibe, they render as ASCII, and if PETSCII is the vibe, they get translated into the equivalent Commodore ASCII. for other non-standard ASCIIs β think ATASCII on Atari computers β you should use the ASCII equivalent characters, and for graphic and control characters you should specify them explicitly with.bytso you get the exact character you want. also!! when you're specifying the argument of an opcode,.ascis not necessary β you can just drop the quoted character in directly (likelda #"A"), and it's affected by the current character set too. any number of character strings can be specified β¨.bytand.ascare literally synonymous, so you can mix stuff like.byt $43, 22, "a character string"and get exactly the expected result. the string is subject to the current character set, but the remaining bytes get inserted with no modification at all π.aasc "text1" ,"text2",...β specifies a character string that is always rendered in true ASCII, no matter what the current character set is. and like.asc, it's synonymous with.bytπ.word value1,value2,value3...β drops a string of 16-bit words into the assembled object in 6502 little-endian format (that's low-byte/high-byte, iykyk). the args can be expressions, and any number of words can be specified πΈ.dsb length,fillbyteβ specifies a data block; a total oflengthrepetitions offillbyteget inserted into the assembled object. for example,.dsb 5,$10inserts five bytes, each being 16 decimal, into the object. the args can be expressions. and if you only hand it a single argument, then that argument is treated as a number of null bytes to insert. peep LINKING for how to use this pseudo-op to link multiple objects π₯.bin offset,length,"filename"β inlines a binary file with zero further interpretation, specified byfilename, starting from offsetoffset(relative to the beginning of the file) forlengthbytes. this is your moment to insert data like a previously assembled object file, or an image, or some other binary data structure, inlined directly into this file's object. iflengthis zero, then the length offilename, minus theoffset, is used instead. args can be expressions. see LINKING for how to use this pseudo-op to link multiple objects π¦.()β opens a new block for scoping. inside a block, every label you define is local to that block and any sub-blocks, and it goes out of scope the second the enclosing block is closed (so, lexically scoped, bestie). all labels defined outside the block are still visible inside it. if you wanna explicitly declare a global label inside a block, put a+before the label, or put a&before it to declare it within the previous level only (or globally, if you're only one level deep). sixteen levels of scoping are permitted π
.block is accepted as a synonym for . (, and so is .proc β but heads up, you can't specify an explicit scope name like you can in ca65; only anonymous blocks are supported π
.)β closes a block..bendor.endprocare accepted as synonyms π.as.al.xs.xlβ only relevant in 65816 mode (so, with the-woption specified). these pseudo-ops set what size the accumulator and X/Y-register should be for future instructions;.asand.xsset 8-bit operands for the accumulator and index registers respectively, and.aland.xlset 16-bit operands. these pseudo-ops on purpose do not automatically issuesepandrepinstructions to set the specified width in the CPU β so set the processor bits however you need them, or lowkey consider constructing a macro..aland.xlgenerate errors if-wis not specified β οΈ.assert expression,"message"β evaluatesexpression, and if it's false (i.e. it evaluates to zero), it printsmessageas a fatal error, terminating assembly immediately. for example, a block of assembly code that creates high ROM might have
.assert *<$fffa, "hit vectors"
to make sure the assembled code doesn't leak into the 6502 high vectors. if the preceding code is too long, the assertion will be false, and the condition gets detected in a controlled fashion. any operation can be used as part of the expression, including logical comparisons such as =, ==, <, <=, >, >=, != and <> π
.include filenameβ includes another file in place of the pseudo-op, exactly as if the preprocessor had done it with an#includedirective (see PREPROCESSOR), except it happens at the assembler phase, after preprocessing has already occurred π§
the following pseudo-op applies to listing mode π
.listbytes numberβ in the listing output, sets the maximum number of hex bytes to be printed in the listing for pseudo-ops like.byt, by default8. the special argumentunlimitedsets no upper limit. if listing mode is disabled, this pseudo-op has no observable effect π
the following pseudo-ops apply primarily to relocatable .o65 objects. a full discussion of the relocatable format is beyond the scope of this manpage; see http://www.6502.org/users/andre/o65/ for the most current specification π
.text.data.bss.zeroβ these pseudo-ops switch between the different segments:.textis the actual code section,.datais the data segment,.bssis uninitialized label space for allocation, and.zerois uninitialized zero page space for allocation. in.bssand.zero, only labels are evaluated. these pseudo-ops are valid in relocating and absolute modes β¨.codeβ for ca65 compatibility, this is currently mapped to.textπ.zeropageβ for ca65 compatibility, this is currently mapped to.zeroπ.align valueβ aligns the current segment to a byte boundary (2,4or256) as specified byvalue(and places it in the header when relocating mode is enabled). any other values generate an error π¨.fopt type, value1, value2, value3, ...β acts like.byt/.ascexcept the values get embedded into the object file as file options. the argumenttypeis what specifies the file option being referenced β there's a table of these options in the relocatableo65file format description. the rest of the options are interpreted as values to insert. any number of values can be specified, and they can be strings too π.import label1, label2, label3, ...β defines the given labels as global labels which are imported and resolved during the link stage, like the-Lcommand line parameter π.importzp label1, label2, label3, ...β analogous to.import, except it only imports zeropage labels (i.e., byte values) π
β¨ PREPROCESSOR β¨
okay bestie, so xa has a preprocessor that's basically the C-language preprocessor cpp(1)'s cousin β they share a lot of quirky DNA, and many oddiments apply to both. Like in C, you can use /* */ for comment delimiters, and double slash // comments are supported too. The preprocessor also handles continuation lines: if a line ends with a backslash (\), the next line gets appended to it as if there were no dividing newline. This is all handled at the preprocessor level. π
But because memory and complexity are real, the full breadth of cpp(1) syntax is not fully supported. Specifically: macro definitions may not be forward-defined β meaning a macro definition can only reference a macro definition that was previously defined. The exception is macro functions, where recursive evaluation is supported; for example, to #define WW AA, AA must have already been defined. Certain other directives are not supported, nor are most standard pre-defined macros, and there are other limits on evaluation and line length. Because the maintainers of xa recognize that some files will require more complicated preparsing than the built-in preprocessor can supply, the preprocessor will accept cpp(1)-style line/filename/flags output. When these lines are seen in the input file, xa will treat them as cc would, except that flags are ignored. xa does not accept files on standard input for parsing reasons, so you should dump your cpp(1) output to an intermediate temporary file, such as:
cc -E test.s > test.xa
xa test.xa
No special arguments need to be passed to xa; the presence of cpp(1) output is detected automatically. β¨
heads up: passing your file throughcpp(1)may interfere withxa's own preprocessor directives. To mask directives fromcpp(1), use the-poption to specify an alternative character instead of#, such as the tilde (e.g.,-p'~'). With this option and argument specified, then instead of#include, for example, you can also use~include, in addition to#include(which will also still be accepted by thexapreprocessor, assuming any survivecpp(1)). Any character can be used, although frankly pathologic choices may lead to amusing and frustrating glitches during parsing. You can also use this option to defer preprocessor directives thatcpp(1)may interpret too early until the file actually gets toxaitself for processing.
The following predefined macros are supported, except if -XXA23 is specified:
XA_MAJORβ the current major version ofxa.XA_MINORβ the current minor version ofxa.
The following preprocessor directives are supported:
#include "filename"β inserts the contents of file filename at this position. If the file is not found, it is searched using paths specified by the-Icommand line option or the environment variableXAINPUT(q.v.). When inserted, the file will also be parsed for preprocessor directives.#echo commentβ inserts comment comment into the errorlog file, specified with the-ecommand line option.#print expressionβ computes the value of expression expression and prints it into the errorlog file.#error messageβ displays the message as an error and terminates assembly.#define DEFINE textβ equates macro DEFINE with text text such that wherever DEFINE appears in the assembly source, text is substituted in its place (just likecpp(1)would do). In addition,#definecan specify macro functions likecpp(1)such that a directive like#define mult(a,b) ((a)*(b))would generate the expected result wherever an expression of the formmult(a,b)appears in the source. This can also be specified on the command line with the-Doption. The arguments of a macro function may be recursively evaluated, unlike other#defines; the preprocessor will attempt to re-evaluate any argument refencing another preprocessor definition up to ten times before complaining.
The following directives are conditionals. If the conditional is not satisfied, then the source code between the directive and its terminating #endif are expunged and not assembled. Up to fifteen levels of nesting are supported.
#ifdef DEFINEβ true only if macro DEFINE is defined.#ifndef DEFINEβ the opposite; true only if macro DEFINE has not been previously defined.#if expressionβ true if expression expression evaluates to non-zero. expression may reference other macros.#iflused labelβ true if label label has been used (but not necessarily instantiated with a value). This works on labels, not macros!#ifldef labelβ true if label label is defined and assigned with a value. This works on labels, not macros!#elseβ implements alternate path for a conditional block.#endifβ closes a conditional block.
Unclosed conditional blocks at the end of included files generate warnings; unclosed conditional blocks at the end of assembly generate an error.
#iflused and #ifldef are useful for building up a library based on labels. For example, you might use something like this in your library's code:
#iflused label
#ifldef label
#echo label already defined, library function label cannot be
inserted
#else
label /* your code */
#endif
#endif
π¦ LINKING π¦
xa is oriented towards generating sequential binaries. Code is strictly emitted in order even if the program counter is set to a lower location than previously assembled code, and padding is not automatically emitted if the program counter is set to a higher location. Changing the program location only changes new labels for code that is subsequently emitted; previous emitted code remains unchanged. Fortunately, for many object files these conventions have no effect on their generation.
However, some applications may require generating an object file built from several previously generated components, and/or submodules which may need to be present at specific memory locations. With a minor amount of additional specification, it is possible to use xa for this purpose as well.
The first means of doing so uses the o65 format to make relocatable objects that in turn can be linked by ldo65(1) (q.v.).
The second means involves either assembled code, or insertion of previously built object or data files with .bin, using .dsb pseudo-ops with computed expression arguments to insert any necessary padding between them, in the sequential order they are to reside in memory. Consider this example:
.word $1000
* = $1000
; this is your code at $1000
part1 rts
; this label marks the end of code
endofpart1
; DON'T PUT A NEW .word HERE!
* = $2000
.dsb (*-endofpart1), 0
; yes, set it again
* = $2000
; this is your code at $2000
part2 rts
This example, written for Commodore microcomputers using a 16-bit starting address, has two "modules" in it: one block of code at $1000 (4096), indicated by the code between labels part1 and endofpart1, and a second block at $2000 (8192) starting at label part2.
The padding is computed by the .dsb pseudo-op between the two modules. Note that the program counter is set to the new address and then a computed expression inserts the proper number of fill bytes from the end of the assembled code in part 1 up to the new program counter address. Since this itself advances the program counter, the program counter is reset again, and assembly continues.
When the object this source file generates is loaded, there will be an rts instruction at address 4096 and another at address 8192, with null bytes between them.
Should one of these areas need to contain a pre-built file, instead of assembly code, simply use a .bin pseudo-op to load whatever portions of the file are required into the output. The computation of addresses and number of necessary fill bytes is done in the same fashion.
Although this example used the program counter itself to compute the difference between addresses, you can use any label for this purpose, keeping in mind that only the program counter determines where relative addresses within assembled code are resolved.
πΈ ENVIRONMENT πΈ
xa utilises the following environment variables, if they exist:
XAINPUTβ include file path; components should be separated by,.XAOUTPUTβ output file path.
π NOTES'N'BUGS π
The R65C02 instructions ina (often rendered inc a) and dea (dec a) must be rendered as bare inc and dec instructions respectively.
The 65816 instructions mvn and mvp use two eight bit parameters, the only instructions in the entire instruction set to do so. Older versions of xa took a single 16-bit absolute value. As of 2.4.0, this old syntax is no longer accepted.
Forward-defined labels β that is, labels that are defined after the current instruction is processed β cannot be optimized into zero page instructions even if the label does end up being defined as a zero page location, because the assembler does not know the value of the label in advance during the first pass when the length of an instruction is computed. On the second pass, a warning will be issued when an instruction that could have been optimized can't be because of this limitation. (Obviously, this does not apply to branching or jumping instructions because they're not optimizable anyhow, and those instructions that can only take an 8-bit parameter will always be casted to an 8-bit quantity.) If the label cannot otherwise be defined ahead of the instruction, the backtick prefix ` may be used to force further optimization no matter where the label is defined as long as the instruction supports it. Indiscriminately forcing the issue can be fraught with peril, however, and is not recommended; to discourage this, the assembler will complain about its use in addressing mode situations where no ambiguity exists, such as indirect indexed, branching and so on.
π SEE ALSO π
file65(1), ldo65(1), reloc65(1), uncpk(1), dxa(1)
π«Ά AUTHOR π«Ά
This manual page was written by David Weinehall <tao@acc.umu.se>, Andre Fachat <fachat@web.de> and Cameron Kaiser <ckaiser@floodgap.com>. Original xa package (C)1989-1997 Andre Fachat. Additional changes (C)1989-2024 Andre Fachat, Jolse Maginnis, David Weinehall, Cameron Kaiser. The official maintainer is Cameron Kaiser.
π OVER 30 YEARS OF XA π
Yay us?
π WEBSITE π
http://www.floodgap.com/retrotech/xa/
kisses, bestie β this was the XA(1) page, dated 5 March 2024. stay iconic π
π¦ where this page comes from
- arch rolling: xa 2.4.1-2 Β· GPL-2.0-only
- debian trixie: xa65 2.4.1-0.1 Β· GPL-2.0-or-later
- fedora 43: xa 2.4.1-4.fc43 Β· GPL-2.0-or-later
- fedora 44: xa 2.4.1-5.fc44 Β· GPL-2.0-or-later
- nixos 26.05: xa 2.4.1
- nixpkgs unstable: xa 2.4.1
- opensuse-leap 16.0: xa 2.4.1-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xa 2.4.1-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xa 2.4.1-bp160.1.13 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xa 2.4.1-bp160.1.13 Β· GPL-2.0-or-later
- ubuntu questing: xa65 2.4.1-0.1
- ubuntu resolute: xa65 2.4.1-0.1build1 Β· GPL-2.0-or-later
- ubuntu stonking: xa65 2.4.1-0.2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms