1FOO_F EQU 5 2BAR_F EQU 7 3 4 5SECTION "RAM", WRAMX[$d500] 6 7wLabel:: 8 9 10SECTION "ROM", ROM0 11 12MACRO try 13 OPT \1 14 ; no warning 15 db 1 << FOO_F 16 db $ff ^ (1 << FOO_F) 17 db ~(1 << FOO_F) 18 db 1 << BAR_F 19 db $ff ^ (1 << BAR_F) 20 dw wLabel 21 dw $10000 - wLabel 22 ; warn at level 1 23 db 1 << 8 24 db ~(1 << 8) 25 dw $1d200 26 dw -$1d200 27 ; warn at level 2 28 db ~(1 << BAR_F) 29 dw -wLabel 30ENDM 31 32 try Wno-truncation 33 try Wtruncation 34 try Wtruncation=0 35 try Wtruncation=1 36 try Wtruncation=2 37 try Werror=truncation=1 38 try Werror=truncation=2 39