I came across a strange behaviour of the assembler for # char. See the sample code lines given below with behaviour comments.
Is the char '#' must for all left/right shift constants? Then why is it behaving different in those two cmp statements? if I miss out that '#', for other instractions, it still assembles. But are these instrctions different? Can somebody explain?
Regards,
Sayee
MOV ACC, #0x0C00 << #12 ; works
MOV ACC,@_loc16 << #10 ; works
ADD ACC,#23 << #6 ; works
CMP PH, #MY_32BIT_MASK >> 16 ; works
CMP PH, #MY_32BIT_MASK >> #16 ; does not work - assembler error