]> git.sur5r.net Git - cc65/commitdiff
Extend description of %v inline assembler format specifier
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 4 Nov 2002 13:57:27 +0000 (13:57 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 4 Nov 2002 13:57:27 +0000 (13:57 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1484 b7a2c559-68d2-44c3-8de9-860c34a00d81

doc/cc65.sgml

index 8ca819cff989a0a2b74d0ca724ac8a519f80b6f3..96d414486bc20dd25d32dc28081b9b5d0be0e3e4 100644 (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>