1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-17 16:29:32 +00:00

Documentation for .WEAK in ca65.

This commit is contained in:
James-Adam Renquinha Henri 2019-05-04 10:43:30 -04:00
parent 850922ae3b
commit 1c73128222

View File

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