Shop OBEX P1 Docs P2 Docs Learn Events
assembly variables with the same name — Parallax Forums

assembly variables with the same name

bozobozo Posts: 70
edited 2008-11-27 14:53 in Propeller 1
Suppose I want to have several cogs executing assembly ...·is there any way that I can declare the same variable name in the code for different cogs?

Or do I have to ensure that all variable names declared in DAT are unique, regardless of which cogs the code will end up in? (and would that be considered the best practice anyway?)

Cheers, Mark.

Comments

  • BradCBradC Posts: 2,601
    edited 2008-11-27 14:53
    DAT names must be unique. Nothing stopping you putting each bit of asm code in its own object with its own DAT section however.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
Sign In or Register to comment.