"Expression too complex"
Jasper_M
Posts: 222
Propeller IDE 1.05.2:
movd :modcall_write_lp, #modcall_area_begin
Results in an error "Expression is too complex", and it's complaining about ":modcall_write_lp". The error seems to appear only if the label following the : is exactly 16 charactes long.
movd :modcall_write_lp, #modcall_area_begin
Results in an error "Expression is too complex", and it's complaining about ":modcall_write_lp". The error seems to appear only if the label following the : is exactly 16 charactes long.
Comments
Indeed, the compiler thinks there's an error when a local label is exactly 16 characters long after the colon. I will look into this and find out why, then fix it.
Thanks for pointing this out.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
As long as your assembler expressions don't have any math before·a :label reference, and your :label is less than 16 characters, you should experience no trouble in the interim. What will cause a problem is something like 1+:label, whereas :label+1 is okay.
Sorry about this. We'll get this repaired ASAP.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
Tomorrow he will post a new version of the Propeller tool that will have some minor enhancements:
1) This·16-character·local label bug is fixed.
2) The recognition of USB serial ports is improved (Silicon Labs devices)
3) Propeller reset signal can·be changed from·'DTR' to 'RTS', or both, for virtual com ports that may not have 'DTR'.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.