diff --git a/doc/ca65.sgml b/doc/ca65.sgml index 8d97bddfd..a80da5a4f 100644 --- a/doc/ca65.sgml +++ b/doc/ca65.sgml @@ -3977,6 +3977,28 @@ Here's a list of all control commands and a description, what they do: +.WEAK + + 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 + statement, this is implied by + .weak NumDisks + + NumDisks = 1 ; NumDisks has a default value of 1, but another source + ; file may override it. + + + See also: + + .WORD Define word sized data. Must be followed by a sequence of (word ranged,
+ + 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 + statement, this is implied by + .weak NumDisks + + NumDisks = 1 ; NumDisks has a default value of 1, but another source + ; file may override it. + + + See also: + + .WORD Define word sized data. Must be followed by a sequence of (word ranged,
Define word sized data. Must be followed by a sequence of (word ranged,