1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-26 05:29:30 +00:00

Extend description of %v inline assembler format specifier

git-svn-id: svn://svn.cc65.org/cc65/trunk@1484 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-11-04 13:57:27 +00:00
parent e8afafce78
commit 4cc56dacbd

View File

@ -806,7 +806,7 @@ the format specifier before passing the assembly code line to the backend.
<item><tt/%b/ - Numerical 8 bit value
<item><tt/%w/ - Numerical 16 bit value
<item><tt/%l/ - Numerical 32 bit value
<item><tt/%v/ - Assembler name of a (global) variable
<item><tt/%v/ - Assembler name of a (global) variable or function
<item><tt/%o/ - Stack offset of a (local) variable
<item><tt/%%/ - The % sign itself
</itemize><p>
@ -835,16 +835,19 @@ Or, to access a struct member of a static variable:
<p>
Note: Do not embedd the assembler labels that are used as names of global
variables into your asm statements. Code like this
variables or functions into your asm statements. Code like this
<tscreen><verb>
int foo;
int bar () { return 1; }
__asm__ ("lda _foo"); /* DON'T DO THAT! */
...
__asm__ ("jsr _bar"); /* DON'T DO THAT EITHER! */
</verb></tscreen>
<p>
may stop working if the way, the compiler generates variable names is changed
in a future version.
may stop working if the way, the compiler generates these names is changed in
a future version.
<p>