Cart New Account Login

HomeAbout usProductsSupportForumsBlogCustomer Service

search inside this forum
search inside all forums
Defining Strings
Aleksey P. migrated on Dec 31, 2013 at 11:00 AM
No staff assigned yet

  • Hi,

    I am trying to define a global string to be used in several places throughout the code. However, the CASMSFZ replaces the defined string with only its first character:

    ;***********************
    MySrt EQU "String"

    ORG CodeSector
    ALIGN.L
    StringStorage DB MyStr
    ExplicitStrStorage DB "ExplicitString"
    ;***********************

    For some reason, this code would place only the first character ("S") of the MyStr starting at address CodeSector followed by the complete string "ExplicitString". I expected that the two complete(!) strings "String" and "ExplicitString" would be one after another.

    Is there a way to declare a global string once and store it at various memory locations using 'DB' (or similar pseudo operation)?

    I am using CASMCFZ v3.12 for ColdFire (MCF5275) that came with the WinIDE Pro v2.34.

    thank you.




    Comments

Add comment


   Want to comment? Please login or create a new PEMicro account.







© 2018 P&E Microcomputer Systems Inc.
Website Terms of Use and Sales Agreement