Small improvement
git-svn-id: svn://svn.cc65.org/cc65/trunk@3323 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1037,14 +1037,20 @@ variables or functions into your asm statements. Code like this
|
|||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
int foo;
|
int foo;
|
||||||
int bar () { return 1; }
|
int bar () { return 1; }
|
||||||
__asm__ ("lda _foo"); /* DON'T DO THAT! */
|
__asm__ ("lda _foo"); /* DON'T DO THAT! */
|
||||||
...
|
...
|
||||||
__asm__ ("jsr _bar"); /* DON'T DO THAT EITHER! */
|
__asm__ ("jsr _bar"); /* DON'T DO THAT EITHER! */
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
may stop working if the way, the compiler generates these names is changed in
|
may stop working if the way, the compiler generates these names is changed in
|
||||||
a future version. Instead use the format specifiers from the table above.
|
a future version. Instead use the format specifiers from the table above:
|
||||||
|
|
||||||
|
<tscreen><verb>
|
||||||
|
__asm__ ("lda %v", foo); /* OK */
|
||||||
|
...
|
||||||
|
__asm__ ("jsr %v", bar); /* OK */
|
||||||
|
</verb></tscreen>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user