Small improvement

git-svn-id: svn://svn.cc65.org/cc65/trunk@3323 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2004-12-02 22:26:17 +00:00
parent 4f66f980b2
commit 48a7d56619

View File

@@ -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>