t-edson/P65Pas

Problem in evaluating the constants

Squall-FF8 opened this issue · 1 comments

const
  spr1_Address1 = 1 << 15;

This code generate error:
Dialog[25,5] Error: Numeric value exceeds a byte range.

"byte << byte" is expected to generate a byte in the compiler. so it generates a range error.
Use this:

const
  spr1_Address1 = word(1) << 15;