Skip to main content
robacq
Associate
Dec 17, 2007 9:19 AM UTC
Question

assembler st7

Posted on December 17, 2007 at 10:19

assembler st7

This topic has been closed for replies.

3 replies

robacq
robacqAuthor
Associate
Dec 15, 2007 12:10 PM UTC
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 III
Dec 16, 2007 4:10 AM UTC
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
robacqAuthor
Associate
Dec 17, 2007 9:19 AM UTC
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!