mirror of
https://github.com/cc65/cc65.git
synced 2025-01-29 21:31:53 +00:00
Add .REFTO as an alias to .REFERTO. Update the docs related to it.
This commit is contained in:
parent
50a58e7706
commit
8e02f8f5ec
@ -3765,7 +3765,7 @@ See: <tt><ref id=".ASCIIZ" name=".ASCIIZ"></tt>,<tt><ref id=".BYTE" name=".BYTE"
|
||||
See: <tt><ref id=".POPSEG" name=".POPSEG"></tt>
|
||||
|
||||
|
||||
<sect1><tt>.REFERTO</tt><label id=".REFERTO"><p>
|
||||
<sect1><tt>.REFERTO, .REFTO</tt><label id=".REFERTO"><p>
|
||||
|
||||
Mark a symbol as referenced.
|
||||
|
||||
@ -3779,11 +3779,24 @@ See: <tt><ref id=".ASCIIZ" name=".ASCIIZ"></tt>,<tt><ref id=".BYTE" name=".BYTE"
|
||||
Example:
|
||||
|
||||
<tscreen><verb>
|
||||
.ifref NegateValue ; If this subroutine is used
|
||||
NegateValue: ; Define it
|
||||
lda #0
|
||||
sec
|
||||
sbc Value
|
||||
.ifref ResetValue ; If the ResetValue is also used
|
||||
jmp SetValue ; Jump over it
|
||||
.else
|
||||
.refto SetValue ; Ensure that SetValue will be included
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.ifref ResetValue ; If this subroutine is used
|
||||
ResetValue: ; Define it
|
||||
lda #0 ; Set a default value
|
||||
.referto SetValue ; Ensure that SetValue will be included
|
||||
.refto SetValue ; Ensure that SetValue will be included
|
||||
.endif
|
||||
|
||||
.ifref SetValue ; If this or previous subroutine is used
|
||||
SetValue:
|
||||
sta Value
|
||||
|
@ -272,6 +272,7 @@ struct DotKeyword {
|
||||
{ ".REF", TOK_REFERENCED },
|
||||
{ ".REFERENCED", TOK_REFERENCED },
|
||||
{ ".REFERTO", TOK_REFERTO },
|
||||
{ ".REFTO", TOK_REFERTO },
|
||||
{ ".RELOC", TOK_RELOC },
|
||||
{ ".REPEAT", TOK_REPEAT },
|
||||
{ ".RES", TOK_RES },
|
||||
|
Loading…
x
Reference in New Issue
Block a user