Skip to main content
Visitor II
March 10, 2004
Question

equate info

  • March 10, 2004
  • 4 replies
  • 970 views
Posted on March 10, 2004 at 10:39

equate info

    This topic has been closed for replies.

    4 replies

    Visitor II
    March 10, 2004
    Posted on March 10, 2004 at 08:17

    Hello

    I current use an ST72334 uC.

    I have a problem in my code as follow

    ...

    lab_A equ 3

    lab_B equ 2*lab_A+1

    .....

    during the compilation it stated out the following error message:

    Error 67: Improper Character(s) '+1'

    Can I use this expression for equate?

    I should like to update some parameters depending to another one.

    Bye
    Visitor II
    March 10, 2004
    Posted on March 10, 2004 at 09:43

    Try it using like:

    .lab_A equ 3

    .lab_B equ 2*lab_A

    .lab_C equ {lab_B+1}

    Visitor II
    March 10, 2004
    Posted on March 10, 2004 at 10:00

    thank you, now it run!

    Do you know a manual ( or an Application Note) where I can found some trick and/or use about this assembler directive?

    Bye
    Visitor II
    March 10, 2004
    Posted on March 10, 2004 at 10:39

    Yes, you can download ''ST7 Assembler-Linker User Manual'' .