Shop OBEX P1 Docs P2 Docs Learn Events
Data array too big for 1 line — Parallax Forums

Data array too big for 1 line

Capn_DaveCapn_Dave Posts: 20
edited 2006-08-03 22:31 in Propeller 1
I am creating a SPIN data array of 128 words. The data wont fit on one line, how do I continue the data on the next line?· freaked.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-08-03 17:17
    In a DAT section, constants are allocated in sequential order. If you change alignment on successive lines (byte to word or word to long), there may be unused space to do the boundary alignment, but, otherwise, it's strictly as you write it. For example:
    myData   word     1, 2, 3, 4, 5, 6, 7, 8
                   word     9, 10, 11, 12, 13, 14, 15, 16
    
    


    This will create a word array with 16 elements that you can access with "myData[noparse][[/noparse]index]" or "word[noparse][[/noparse]@myData][noparse][[/noparse]index]".
  • Capn_DaveCapn_Dave Posts: 20
    edited 2006-08-03 22:31
    Thanks, Im so new I just couldn't see it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Caught in the PropWash
Sign In or Register to comment.