relocation_norel_operator.asm(5): warning[opkeyword]: Label collides with one of the operator keywords, try capitalizing it or other name: norel
# file opened: relocation_norel_operator.asm
 1    0000                  ORG $1000
 2    1000
 3    1000                  RELOCATE_START
 4    1000
 5    1000 C3 00 10     norel:  jp norel        ; "norel" as label itself (should relocate) +warning about keyword
 6    1003 C3 00 10         jp norel norel      ; should not relocate
 7    1006
 8    1006              label1:
 9    1006 CD 06 10         call    label1                      ; should relocate
10    1009 D4 06 10         call    nc,norel   label1           ; should not relocate
11    100C C4 06 10         call    nz,norel(label1)            ; should not relocate
12    100F DC 0C 20         call    c,norel label1 + label1     ; should relocate because only first "label1" is norel
13    1012 CC 0C 20         call    z,norel(label1 + label1)    ; should not relocate
14    1015
15    1015 3E 10            ld      a,high norel label1         ; no warning about unstable expression
relocation_norel_operator.asm(16): error: Label not found: high
relocation_norel_operator.asm(16): error: Unexpected: label1
16    1017 3E 00            ld      a,norel high label1         ; error about missing label "high" (norel must be followed by label expression)
17    1019 3E 10            ld      a,norel  (high label1)      ; (or parentheses will make high operator legal)
18    101B
19    101B C3 1B 10         jp      $                           ; should relocate
20    101E C3 1E 10         jp      norel $                     ; should not relocate
21    1021
22    1021                  RELOCATE_END
23    1021
24    1021 01 10 07 10      RELOCATE_TABLE
24    1025 10 10 1C 10
25    1029
26    1029                  ASSERT 2*relocate_count == relocate_size
27    1029                  ASSERT 4 == relocate_count
28    1029                  ASSERT 2 == 2
29    1029                  ASSERT 1 == 1
30    1029
# file closed: relocation_norel_operator.asm

Value    Label
------ - -----------------------------------------------------------
0x1006   label1
0x1000   norel
0x0004   relocate_count
0x0008   relocate_size
