cancel
Showing results for 
Search instead for 
Did you mean: 

assembler st7

robacq
Associate II
Posted on December 17, 2007 at 10:19

assembler st7

3 REPLIES 3
robacq
Associate II
Posted on December 15, 2007 at 13:10

Hi.

I'm a new forum user and I would like to post this question:

I was writing the program below for st72334:

.

.

.

BYTES

segment 'ram0'

021 delay1 DS.B 1

022 delay2 DS.B 1

023 delay3 DS.B 1

024 punta DS.B 1

025 segmen DS.B 4

026 seg1 EQU (segmen+1)

027 seg2 EQU (segmen+2)

028 seg3 EQU (segmen+3)

029 seg4 EQU (segmen+4)

.

.

.

.

Program

end

but the compilator generates the following errors:

asm (026) error 67 IMPROPER CHARACTERS '+1)'

asm (027) error 67 IMPROPER CHARACTERS '+2)'

asm (028) error 67 IMPROPER CHARACTERS '+3)'

asm (029) error 67 IMPROPER CHARACTERS '+4)'

In the version of this program for st7lite, it works correctly. I think that something in syntax is changed from the two processors. Can you help me telling me where's the error?

fggnrc
Associate II
Posted on December 16, 2007 at 05:10

robacq,

the error is due to the round brackets.

The right sintax for your expressions is:

seg1 EQU {segmen+1}

seg2 EQU {segmen+2}

seg3 EQU {segmen+3}

seg4 EQU {segmen+4}

Regards,

EtaPhi

robacq
Associate II
Posted on December 17, 2007 at 10:19

Thank you very much! I've done the correction and now it works properly! Thank you again! Bye!