Blame | Last modification | View Log | Download
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.asm1 0000 ORG $10002 10003 1000 RELOCATE_START4 10005 1000 C3 00 10 norel: jp norel ; "norel" as label itself (should relocate) +warning about keyword6 1003 C3 00 10 jp norel norel ; should not relocate7 10068 1006 label1:9 1006 CD 06 10 call label1 ; should relocate10 1009 D4 06 10 call nc,norel label1 ; should not relocate11 100C C4 06 10 call nz,norel(label1) ; should not relocate12 100F DC 0C 20 call c,norel label1 + label1 ; should relocate because only first "label1" is norel13 1012 CC 0C 20 call z,norel(label1 + label1) ; should not relocate14 101515 1015 3E 10 ld a,high norel label1 ; no warning about unstable expressionrelocation_norel_operator.asm(16): error: Label not found: highrelocation_norel_operator.asm(16): error: Unexpected: label116 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 101B19 101B C3 1B 10 jp $ ; should relocate20 101E C3 1E 10 jp norel $ ; should not relocate21 102122 1021 RELOCATE_END23 102124 1021 01 10 07 10 RELOCATE_TABLE24 1025 10 10 1C 1025 102926 1029 ASSERT 2*relocate_count == relocate_size27 1029 ASSERT 4 == relocate_count28 1029 ASSERT 2 == 229 1029 ASSERT 1 == 130 1029# file closed: relocation_norel_operator.asmValue Label------ - -----------------------------------------------------------0x1006 label10x1000 norel0x0004 relocate_count0x0008 relocate_size