mirror of
https://github.com/cc65/cc65.git
synced 2024-09-29 17:56:21 +00:00
Documentation for .WEAK in ca65.
This commit is contained in:
parent
850922ae3b
commit
1c73128222
@ -3977,6 +3977,28 @@ Here's a list of all control commands and a description, what they do:
|
||||
<tt><ref id=".OUT" name=".OUT"></tt>
|
||||
|
||||
|
||||
<sect1><tt>.WEAK</tt><label id=".WEAK"><p>
|
||||
|
||||
Declare or make an existing symbol weak. Weak symbols can be overriden by a
|
||||
"strong" (regular) symbol or other weak symbols at the link stage. Note that
|
||||
redefinition of a symbol is still not allowed within the same source file,
|
||||
even for weak ones.
|
||||
|
||||
You don't need to use an additional <tt><ref id=".GLOBAL" name=".GLOBAL"></tt>
|
||||
statement, this is implied by <tt/.WEAK/.
|
||||
|
||||
Example:
|
||||
|
||||
<tscreen><verb>
|
||||
.weak NumDisks
|
||||
|
||||
NumDisks = 1 ; NumDisks has a default value of 1, but another source
|
||||
; file may override it.
|
||||
</verb></tscreen>
|
||||
|
||||
See also: <tt><ref id=".GLOBAL" name=".GLOBAL"></tt>
|
||||
|
||||
|
||||
<sect1><tt>.WORD</tt><label id=".WORD"><p>
|
||||
|
||||
Define word sized data. Must be followed by a sequence of (word ranged,
|
||||
|
Loading…
Reference in New Issue
Block a user