Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download
forward_reference_errors.asm(6): error: Duplicate label: equ_lab2forward_reference_errors.asm(14): error: Forward referenceforward_reference_errors.asm(17): warning[fwdref]: forward reference of symbol: IF 0 < normal_label2_fwdforward_reference_errors.asm(21): error: [STRUCT] Forward referenceforward_reference_errors.asm(25): error: [DUP/REPT] Forward reference# file opened: forward_reference_errors.asm1 0000 ;; DEFL vs EQU difference2 0000 defl_lab2 DEFL 0x1234 ;; DEFL (and alias "=") are like "variables"3 0000 defl_lab2 = 0x5678 ;; so modifying them is OK4 0000forward_reference_errors.asm(5): warning: Label has different value in pass 3: previous value 22136 not equal 46605 0000 equ_lab2 EQU 0x1234 ;; EQU is like "const", should be defined only onceforward_reference_errors.asm(6): warning: Label has different value in pass 3: previous value 4660 not equal 221366 0000 equ_lab2 EQU 0x5678 ;; error, different value7 00008 0000 ;; valid forward reference9 0000 CD 03 00 call normal_label10 0003 normal_label:11 0003 C9 ret12 000413 0004 ;; invalid forward references14 0004 defl_lab DEFL defl_lab_fwd15 0004 equ_lab EQU equ_lab_fwd ;; !! VALID since v1.13.3 !!16 000417 0004 IF 0 < normal_label2_fwd18 0004 ; <some instruction> - would modify results of pass2 vs pass319 0004 ENDIF20 000421 0004 STRUCT test_struct, struct_lab_fwd22 0004 ~ xyz BYTE23 0004 ENDS24 000425 0004 DUP dup_label_fwd26 0004 EDUP27 000428 0004 defl_lab_fwd:29 0004 equ_lab_fwd:30 0004 struct_lab_fwd:31 0004 normal_label2_fwd:32 0004 dup_label_fwd:33 000434 0004 IF 0 < normal_label3_fwd ; fwdref-ok - since v1.15.0 it's possible to suppress the warning35 0004 ASSERT 0 < $36 0004 ENDIF37 000438 0004 IF 4 = normal_label3_fwd ; fwdref-ok - but label reports warning even when IF warning is suppressed39 0004 ~ nop40 0004 ENDIF41 0004forward_reference_errors.asm(42): warning: Label has different value in pass 3: previous value 5 not equal 442 0004 normal_label3_fwd:43 0004# file closed: forward_reference_errors.asmValue Label------ - -----------------------------------------------------------0x0004 X defl_lab0x5678 X defl_lab20x0004 defl_lab_fwd0x0004 dup_label_fwd0x0004 X equ_lab0x5678 X equ_lab20x0004 equ_lab_fwd0x0003 normal_label0x0004 normal_label2_fwd0x0004 normal_label3_fwd0x0004 struct_lab_fwd0x0005 X test_struct0x0004 X test_struct.xyz