Hi all,
The following expression calculates a segment's address by shifting its start address 4 bits left:
code_entry dd (section.code_1.start)<<4
I think the 'section.code_1.start' is a constant address. So, it is valid to shift it. But, there is an error while compiling:
error: shift operator may only be applied to scalar values
The 'section.code_1.start' should be a 'scalar value'. Why the expression can not be calculated?
Thanks.