Inline Assembly and Index Calculation

Cosmic uses the + operator to calculate offsets into arrays. For the CodeWarrior IDE, you have to use a colon (:) instead:

Listing: Using a colon for offset


ldx array:7

#else

  ldx array+7

#endif