Shop OBEX P1 Docs P2 Docs Learn Events
Data blocks — Parallax Forums

Data blocks

MacGeek117MacGeek117 Posts: 747
edited 2008-01-15 18:48 in Propeller 1
If I need to declare a large data block, but want it all to fit on the screen, will this work? (it compiles fine!)
MyData byte 0, 0, 0, 0, 0
       byte 0, 0, 0, etc.

RoboGeek

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"I reject your reality and subsitute my own!"

Adam Savage, Mythbusters
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.jameco.com
·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-01-14 16:50
    That's exactly the way to do it.
  • Nick MuellerNick Mueller Posts: 815
    edited 2008-01-14 17:01
    > MyData byte 0, 0, 0, 0, 0
    > byte 0, 0, 0, etc.

    I would sort that into the drawer "bad style".
    Use a trailing "{" and a leading "}" on the next line.
    I found this in the drawer "bad looking". wink.gif


    Nick

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Never use force, just go for a bigger hammer!

    The DIY Digital-Readout for mills, lathes etc.:
    YADRO
  • MacGeek117MacGeek117 Posts: 747
    edited 2008-01-14 17:19
    Thanks, Mike!
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.jameco.com
    ·
  • deSilvadeSilva Posts: 2,967
    edited 2008-01-14 18:04
    The standard way to do it is:
    Mydata  BYTE  0[noparse][[/noparse]999]
    
  • MacGeek117MacGeek117 Posts: 747
    edited 2008-01-15 18:48
    deSilva, I have 48 different values that need to be stored in a data block, so your idea won't work for this project, but I will keep this in mind for another.
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.jameco.com
    ·
Sign In or Register to comment.