 |
|
 |
MESC TOOL NEWS:
MESCT-NC308WA_2-010216D
NC308WA and NC30WA Precautions
|
Please take note of the problem described below in using C compilers with an assembler and integrated development environment NC308WA and NC30WA.
- On using immediate values
- Products and Versions Concerned
- Compiler and assembler for the M16C/80 series MCUs:
| NC308WA | V.1.00 Release 1 -- V.3.10 Release 1 |
| AS308 | V.1.00 Release 1 -- V.2.00 Release 1 |
- Compiler and assembler for the M16C/60 and M16C/20 series MCUs:
| NC30WA | V.1.00 Release 1 -- V.4.00 Release 1 |
| AS30 | V.1.00 Release 1 -- V.3.20 Release 1 |
- Description
Using an immediate value as the operand of an assembler directive or assembly instruction may cause an error saying "Value is out of range"
to appear.
- Conditions
- This problem occurs if the following two conditions are satisfied:
- (1) An immediate value is the maximum of 32-bit unsigned numbers described in decimal notation, 4294967295.
- (2) Any of the characters including a space exists right after the immediate value in (1).
- Example
-----------------------------------------------------------------
sym1 .EQU 4294967295 -> No error arises.
sym2 .EQU 4294967295;comment -> The above error arises.
MOV.L #4294967295,R2R0 -> The above error arises.
-----------------------------------------------------------------
- Workaround
Describe the maximum of 32-bit unsigned numbers in hexadecimal notation.
- Schedule of Fixing Problem
We plan to fix this problem in our next release.
|
 |