BackupGGCode / open-source-spin-compiler

A C/C++-based port of the Parallax Propeller Spin/PASM Compiler
0 stars 0 forks source link

constant evaluation(?) in DAT section doesn't quite work as expected #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following program contains a DAT section which validates pin definitions 
are within 0..31. Anything bigger is flagged. Even with valid definitions I get 
a compilation error (PropTool works as expected).

CON
  XO_0 = 0
  XO_1 = 1

  XI_0 = 2
  XI_1 = 3

PUB null
DAT             org     0                       ' pin validation

                res     (XO_0|XO_1|XI_0|XI_1) >> 5 <# 1

                fit     0

Original issue reported on code.google.com by marko.lu...@kyi.biglobe.ne.jp on 27 Jan 2012 at 9:31

GoogleCodeExporter commented 9 years ago
Error is: Origin exceeds FIT limit

Original comment by marko.lu...@kyi.biglobe.ne.jp on 27 Jan 2012 at 9:32

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r29.

Original comment by reltham on 27 Jan 2012 at 10:29