mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
Clean formatting under TeX/FSF layout and TeX/Cygnus layout
This commit is contained in:
@ -377,11 +377,10 @@ Defining your own directives}.
|
|||||||
@node Variables
|
@node Variables
|
||||||
@section Preprocessor variables
|
@section Preprocessor variables
|
||||||
|
|
||||||
You can use variables in @sc{gasp} to represent the results of
|
You can use variables in @sc{gasp} to represent strings, registers, or
|
||||||
expressions, strings, or registers.
|
the results of expressions.
|
||||||
|
|
||||||
There are two kinds of preprocessor variable:
|
|
||||||
|
|
||||||
|
You must distinguish two kinds of variables:
|
||||||
@c FIXME! Is this crud true about conditional comparisons vs variables?
|
@c FIXME! Is this crud true about conditional comparisons vs variables?
|
||||||
@enumerate
|
@enumerate
|
||||||
@item
|
@item
|
||||||
@ -402,9 +401,9 @@ while loops; @sc{gasp} only evaluates these variables when writing
|
|||||||
assembly output.
|
assembly output.
|
||||||
|
|
||||||
@item
|
@item
|
||||||
Variables defined as macro arguments, or with @code{.ASSIGNC} or
|
Variables for use during preprocessing. These are defined as macro
|
||||||
@code{.ASSIGNA}. To evaluate this kind of variable, write @samp{\&} before
|
arguments, or with @code{.ASSIGNC} or @code{.ASSIGNA}. To evaluate this
|
||||||
the variable name; for example,
|
kind of variable, write @samp{\&} before the variable name; for example,
|
||||||
|
|
||||||
@cartouche
|
@cartouche
|
||||||
@example
|
@example
|
||||||
@ -944,8 +943,9 @@ field of @sc{gasp} statements):
|
|||||||
|
|
||||||
@ftable @code
|
@ftable @code
|
||||||
@item .LEN("@var{str}")
|
@item .LEN("@var{str}")
|
||||||
The length of string @code{"@var{str}"}, as an absolute expression. For
|
Calculate the length of string @code{"@var{str}"}, as an absolute
|
||||||
example, @samp{.RES.B .LEN("sample")} reserves six bytes of memory.
|
expression. For example, @samp{.RES.B .LEN("sample")} reserves six
|
||||||
|
bytes of memory.
|
||||||
|
|
||||||
@item .INSTR("@var{string}", "@var{seg}", @var{ix})
|
@item .INSTR("@var{string}", "@var{seg}", @var{ix})
|
||||||
Search for the first occurrence of @var{seg} after position @var{ix} of
|
Search for the first occurrence of @var{seg} after position @var{ix} of
|
||||||
|
Reference in New Issue
Block a user