Shop OBEX P1 Docs P2 Docs Learn Events
Single instruction on multiple lines — Parallax Forums

Single instruction on multiple lines

Don BuczynskiDon Buczynski Posts: 31
edited 2006-12-22 05:58 in Propeller 1
Does the propeller tool have a line continuation character or other method for using multiple lines for a single·instruction? I'd like to keep the instruction from running off the right side of the screen/page but an error is reported when I try the following.

Index := lookdown (Keypad[noparse][[/noparse]0]: $02,$03,$04,$05,$06,$07,$08,$09,$0A,$12,$13,$14,$20,
························· $21,$22,$30,$31,$33,$34,$3E,$3F,$40,$41,$43,$44,$45,$46,$47,$48,
··························$49,$4A,$50,$54,$55,$5B,$5C,$5D,$60,$64,$66,$70,$74,$77,$80,$84,
························· $88,$90,$94,$99,$A0,$A4,$AA,$B5,$BB,$BE,$C5,$CC,$CE,$D5,$DD,$DE,
························· $EB,$EC,$ED,$EE,$FF)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don Buczynski

http://www.buczynski.com

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2006-12-22 05:58
    I don't believe there is any way to do what you want (to split something like a lookdown across several lines). I'm sure this wasn't thought of because it's inefficient to have really long lists for the lookdown or lookup statements. On the other hand, if its something you don't do often and isn't time critical, it can certainly be convenient. There are some very simple conventions for this, like using a reverse backslash ("\") as the last character on the line and the whole thing just looks like whitespace to the compiler/assembler.
Sign In or Register to comment.