c-tic54x.texi
来自「基于4个mips核的noc设计」· TEXI 代码 · 共 767 行 · 第 1/2 页
TEXI
767 行
@itemx .include "@var{filename}" | @var{filename}Read source statements from @var{filename}. The normal include searchpath is used. Normally .copy will cause statements from the includedfile to be printed in the assembly listing and .include will not, butthis distinction is not currently implemented.@cindex @code{data} directive, C54X@item .dataBegin assembling code into the .data section.@cindex @code{double} directive, C54X@cindex @code{ldouble} directive, C54X@cindex @code{float} directive, C54X@cindex @code{xfloat} directive, C54X@item .double @var{value} [,...,@var{value_n}]@itemx .ldouble @var{value} [,...,@var{value_n}]@itemx .float @var{value} [,...,@var{value_n}]@itemx .xfloat @var{value} [,...,@var{value_n}]Place an IEEE single-precision floating-point representation of one ormore floating-point values into the current section. All but@code{.xfloat} align the result on a longword boundary. Values arestored most-significant word first. @cindex @code{drlist} directive, C54X@cindex @code{drnolist} directive, C54X@item .drlist@itemx .drnolistControl printing of directives to the listing file. Ignored.@cindex @code{emsg} directive, C54X@cindex @code{mmsg} directive, C54X@cindex @code{wmsg} directive, C54X@item .emsg @var{string}@itemx .mmsg @var{string}@itemx .wmsg @var{string}Emit a user-defined error, message, or warning, respectively.@cindex @code{far_mode} directive, C54X@item .far_modeUse extended addressing when assembling statements. This should appearonly once per file, and is equivalent to the -mfar-mode option @pxref{C54X-Opts,,@code{-mfar-mode}}.@cindex @code{fclist} directive, C54X@cindex @code{fcnolist} directive, C54X@item .fclist@itemx .fcnolistControl printing of false conditional blocks to the listing file.@cindex @code{field} directive, C54X@item .field @var{value} [,@var{size}]Initialize a bitfield of @var{size} bits in the current section. If@var{value} is relocatable, then @var{size} must be 16. @var{size}defaults to 16 bits. If @var{value} does not fit into @var{size} bits,the value will be truncated. Successive @code{.field} directives willpack starting at the current word, filling the most significant bitsfirst, and aligning to the start of the next word if the field size doesnot fit into the space remaining in the current word. A @code{.align}directive with an operand of 1 will force the next @code{.field}directive to begin packing into a new word. If a label is used, itpoints to the word that contains the specified field.@cindex @code{global} directive, C54X@cindex @code{def} directive, C54X@cindex @code{ref} directive, C54X@item .global @var{symbol} [,...,@var{symbol_n}]@itemx .def @var{symbol} [,...,@var{symbol_n}]@itemx .ref @var{symbol} [,...,@var{symbol_n}]@code{.def} nominally identifies a symbol defined in the current fileand availalbe to other files. @code{.ref} identifies a symbol used inthe current file but defined elsewhere. Both map to the standard@code{.global} directive.@cindex @code{half} directive, C54X@cindex @code{uhalf} directive, C54X@cindex @code{short} directive, C54X@cindex @code{ushort} directive, C54X@cindex @code{int} directive, C54X@cindex @code{uint} directive, C54X@cindex @code{word} directive, C54X@cindex @code{uword} directive, C54X@item .half @var{value} [,...,@var{value_n}]@itemx .uhalf @var{value} [,...,@var{value_n}]@itemx .short @var{value} [,...,@var{value_n}]@itemx .ushort @var{value} [,...,@var{value_n}]@itemx .int @var{value} [,...,@var{value_n}]@itemx .uint @var{value} [,...,@var{value_n}]@itemx .word @var{value} [,...,@var{value_n}]@itemx .uword @var{value} [,...,@var{value_n}]Place one or more values into consecutive words of the current section.If a label is used, it points to the word allocated for the first valueencountered. @cindex @code{label} directive, C54X@item .label @var{symbol}Define a special @var{symbol} to refer to the load time address of thecurrent section program counter.@cindex @code{length} directive, C54X@cindex @code{width} directive, C54X@item .length@itemx .widthSet the page length and width of the output listing file. Ignored.@cindex @code{list} directive, C54X@cindex @code{nolist} directive, C54X@item .list@itemx .nolistControl whether the source listing is printed. Ignored.@cindex @code{long} directive, C54X@cindex @code{ulong} directive, C54X@cindex @code{xlong} directive, C54X@item .long @var{value} [,...,@var{value_n}]@itemx .ulong @var{value} [,...,@var{value_n}]@itemx .xlong @var{value} [,...,@var{value_n}]Place one or more 32-bit values into consecutive words in the currentsection. The most significant word is stored first. @code{.long} and@code{.ulong} align the result on a longword boundary; @code{xlong} doesnot. @cindex @code{loop} directive, C54X@cindex @code{break} directive, C54X@cindex @code{endloop} directive, C54X@item .loop [@var{count}]@itemx .break [@var{condition}]@itemx .endloopRepeatedly assemble a block of code. @code{.loop} begins the block, and@code{.endloop} marks its termination. @var{count} defaults to 1024,and indicates the number of times the block should be repeated.@code{.break} terminates the loop so that assembly begins after the@code{.endloop} directive. The optional @var{condition} will cause theloop to terminate only if it evaluates to zero.@cindex @code{macro} directive, C54X@cindex @code{endm} directive, C54X@item @var{macro_name} .macro [@var{param1}][,...@var{param_n}]@itemx [.mexit]@itemx .endmSee the section on macros for more explanation (@xref{C54X-Macros}.@cindex @code{mlib} directive, C54X@item .mlib "@var{filename}" | @var{filename}Load the macro library @var{filename}. @var{filename} must be anarchived library (BFD ar-compatible) of text files, expected to containonly macro definitions. The standard include search path is used.@cindex @code{mlist} directive, C54X@cindex @code{mnolist} directive, C54X@item .mlist@item .mnolistControl whether to include macro and loop block expansions in thelisting output. Ignored.@cindex @code{mmregs} directive, C54X@item .mmregsDefine global symbolic names for the 'c54x registers. Supposedlyequivalent to executing @code{.set} directives for each register withits memory-mapped value, but in reality is provided only forcompatibility and does nothing.@cindex @code{newblock} directive, C54X@item .newblockThis directive resets any C54X local labels currently defined. Normal@code{@value{AS}} local labels are unaffected.@cindex @code{option} directive, C54X@item .option @var{option_list}Set listing options. Ignored.@cindex @code{sblock} directive, C54X@item .sblock "@var{section_name}" | @var{section_name} [,"@var{name_n}" | @var{name_n}]Designate @var{section_name} for blocking. Blocking guarantees that asection will start on a page boundary (128 words) if it would otherwisecross a page boundary. Only initialized sections may be designated withthis directive. See also @xref{C54X-Block}.@cindex @code{sect} directive, C54X@item .sect "@var{section_name}"Define a named initialized section and make it the current section.@cindex @code{set} directive, C54X@cindex @code{equ} directive, C54X@item @var{symbol} .set "@var{value}"@itemx @var{symbol} .equ "@var{value}"Equate a constant @var{value} to a @var{symbol}, which is placed in thesymbol table. @var{symbol} may not be previously defined. @cindex @code{space} directive, C54X@cindex @code{bes} directive, C54X@item .space @var{size_in_bits}@itemx .bes @var{size_in_bits}Reserve the given number of bits in the current section and zero-fillthem. If a label is used with @code{.space}, it points to the@strong{first} word reserved. With @code{.bes}, the label points to the@strong{last} word reserved.@cindex @code{sslist} directive, C54X@cindex @code{ssnolist} directive, C54X@item .sslist@itemx .ssnolistControls the inclusion of subsym replacement in the listing output. Ignored.@cindex @code{string} directive, C54X@cindex @code{pstring} directive, C54X@item .string "@var{string}" [,...,"@var{string_n}"]@itemx .pstring "@var{string}" [,...,"@var{string_n}"]Place 8-bit characters from @var{string} into the current section.@code{.string} zero-fills the upper 8 bits of each word, while@code{.pstring} puts two characters into each word, filling themost-significant bits first. Unused space is zero-filled. If a labelis used, it points to the first word initialized.@cindex @code{struct} directive, C54X@cindex @code{tag} directive, C54X@cindex @code{endstruct} directive, C54X@item [@var{stag}] .struct [@var{offset}]@itemx [@var{name_1}] element [@var{count_1}]@itemx [@var{name_2}] element [@var{count_2}]@itemx [@var{tname}] .tag @var{stagx} [@var{tcount}]@itemx ...@itemx [@var{name_n}] element [@var{count_n}]@itemx [@var{ssize}] .endstruct@itemx @var{label} .tag [@var{stag}]Assign symbolic offsets to the elements of a structure. @var{stag}defines a symbol to use to reference the structure. @var{offset}indicates a starting value to use for the first element encountered;otherwise it defaults to zero. Each element can have a named offset,@var{name}, which is a symbol assigned the value of the element's offsetinto the structure. If @var{stag} is missing, these become globalsymbols. @var{count} adjusts the offset that many times, as if@code{element} were an array. @code{element} may be one of@code{.byte}, @code{.word}, @code{.long}, @code{.float}, or anyequivalent of those, and the structure offset is adjusted accordingly.@code{.field} and @code{.string} are also allowed; the size of@code{.field} is one bit, and @code{.string} is considered to be oneword in size. Only element descriptors, structure/union tags,@code{.align} and conditioanl assembly directies are allowed within@code{.struct}/@code{.endstruct}. @code{.align} aligns member offsetsto word boundaries only. @var{ssize}, if provided, will always beassigned the size of the structure.The @code{.tag} directive, in addition to being used to define astructure/union element within a structure, may be used to apply astructure to a symbol. Once applied to @var{label}, the individualstructure elements may be applied to @var{label} to produce the desiredoffsets using @var{label} as the structure base. @cindex @code{tab} directive, C54X@item .tabSet the tab size in the output listing. Ignored.@cindex @code{union} directive, C54X@cindex @code{tag} directive, C54X@cindex @code{endunion} directive, C54X@item [@var{utag}] .union @itemx [@var{name_1}] element [@var{count_1}]@itemx [@var{name_2}] element [@var{count_2}]@itemx [@var{tname}] .tag @var{utagx}[,@var{tcount}]@itemx ...@itemx [@var{name_n}] element [@var{count_n}]@itemx [@var{usize}] .endstruct@itemx @var{label} .tag [@var{utag}]Similar to @code{.struct}, but the offset after each element is reset tozero, and the @var{usize} is set to the maximum of all defined elements.Starting offset for the union is always zero.@cindex @code{usect} directive, C54X@item [@var{symbol}] .usect "@var{section_name}", @var{size}, [,[@var{blocking_flag}] [,@var{alignment_flag}]]Reserve space for variables in a named, uninitialzed section (similar to.bss). @code{.usect} allows definitions sections independent of .bss.@var{symbol} points to the first location reserved by this allocation.The symbol may be used as a variable name. @var{size} is the allocatedsize in words. @var{blocking_flag} indicates whether to block thissection on a page boundary (128 words) (@pxref{C54X-Block}).@var{alignment flag} indicates whether the section should belongword-aligned. @cindex @code{var} directive, C54X@item .var @var{sym}[,..., @var{sym_n}]Define a subsym to be a local variable within a macro. See@xref{C54X-Macros}. @cindex @code{version} directive, C54X@item .version @var{version}Set which processor to build instructions for. Though the followingvalues are accepted, the op is ignored.@table @code@item 541@itemx 542@itemx 543@itemx 545@itemx 545LP@itemx 546LP@itemx 548@itemx 549@end table@end table@node C54X-Macros@section Macros@cindex C54X-specific macros@cindex macros, C54XMacros do not require explicit dereferencing of arguments (i.e. \ARG). During macro expansion, the macro parameters are converted to subsyms.If the number of arguments passed the macro invocation exceeds thenumber of parameters defined, the last parameter is assigned the stringequivalent of all remaining arguments. If fewer arguments are giventhan parameters, the missing parameters are assigned empty strings. Toinclude a comma in an argument, you must enclose the agument in quotes.@cindex subsym builtins, C54X@cindex C54X subsym builtins@cindex builtin subsym functions, C54XThe following built-in subsym functions allow examination of the stringvalue of subsyms (or ordinary strings). The arguments are stringsunless otherwise indicated (subsyms passed as args will be replaced bythe strings they represent).@table @code@cindex @code{$symlen} subsym builtin, C54X@item @code{$symlen(@var{str})}Returns the length of @var{str}.@cindex @code{$symcmp} subsym builtin, C54X@item @code{$symcmp(@var{str1},@var{str2})}Returns 0 if @var{str1} == @var{str2}, non-zero otherwise. @cindex @code{$firstch} subsym builtin, C54X@item @code{$firstch(@var{str},@var{ch})}Returns index of the first occurrence of character constant @var{ch} in@var{str}. @cindex @code{$lastch} subsym builtin, C54X@item @code{$lastch(@var{str},@var{ch})}Returns index of the last occurrence of character constant @var{ch} in@var{str}. @cindex @code{$isdefed} subsym builtin, C54X@item @code{$isdefed(@var{symbol})}Returns zero if the symbol @var{symbol} is not in the symbol table,non-zero otherwise.@cindex @code{$ismember} subsym builtin, C54X@item @code{$ismember(@var{symbol},@var{list})}Assign the first member of comma-separated string @var{list} to@var{symbol}; @var{list} is reassigned the remainder of the list. Returnszero if @var{list} is a null string. Both arguments must be subsyms.@cindex @code{$iscons} subsym builtin, C54X@item @code{$iscons(@var{expr})}Returns 1 if string @var{expr} is binary, 2 if octal, 3 if hexadecimal,4 if a character, 5 if decimal, and zero if not an integer.@cindex @code{$isname} subsym builtin, C54X@item @code{$isname(@var{name})}Returns 1 if @var{name} is a valid symbol name, zero otherwise.@cindex @code{$isreg} subsym builtin, C54X@item @code{$isreg(@var{reg})}Returns 1 if @var{reg} is a valid predefined register name (AR0-AR7 only).@cindex @code{$structsz} subsym builtin, C54X@item @code{$structsz(@var{stag})}Returns the size of the structure or union represented by @var{stag}.@cindex @code{$structacc} subsym builtin, C54X@item @code{$structacc(@var{stag})}Returns the reference point of the structure or union represented by@var{stag}. Always returns zero.@end table@node C54X-MMRegs@section Memory-mapped Registers@cindex C54X memory-mapped registers@cindex registers, C54X memory-mapped@cindex memory-mapped registers, C54XThe following symbols are recognized as memory-mapped registers:@table @code@end table
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?