cancel
Showing results for 
Search instead for 
Did you mean: 

equate info

gsilvestri
Associate II
Posted on March 10, 2004 at 10:39

equate info

4 REPLIES 4
gsilvestri
Associate II
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
jatin
Associate II
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}

gsilvestri
Associate II
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
jatin
Associate II
Posted on March 10, 2004 at 10:39

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