SV: [basicstamps] Problem with DATA command
Archiver
Posts: 46,084
Greetings!
Sorry, but the Editor doesn't know about constants defined in any other file
than the one you're working in.
I suggest that you add this in the beginning of the file:
tekst1 CON 0
tekst2 CON 40
tekst3 CON 80
and so on...
:-)
Trygve
http://home.c2i.net/trygveh/english/
Opprinnelig melding
Fra: De Meester, Michel [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=K7C16QnImGsvdwXFQtGO3ymynb1l2MxanG2H3JkSHAntM6JXrPhtVL_hATo9CENJZZi5amaNVC5M6rfavnviLjOmA38QIZSQPA]Michel.De.Meester@u...[/url
Sendt: 5. august 2002 11:29
Til: 'basicstamps@yahoogroups.com'
Emne: [noparse][[/noparse]basicstamps] Problem with DATA command
Hello stampers,
while using the DATA command I ran into next problem:
(I'm using a BS2P40)
I put a bunch of text data into slot 1 using (sorry the labels and remarques
are in Dutch)
*********************************************
tekst1 data " Tekstblok 1 "
data "01234567890123456789"
data "01234567890123456789"
data "01234567890123456789"
tekst2 data " Tekstblok 2 "
data "01234567890123456789"
data "01234567890123456789"
data "01234567890123456789"
8<
>8
tekst25 data " Tekstblok 25 "
data "01234567890123456789"
data "01234567890123456789"
data "01234567890123456789"
**********************************************
This makes 2000 bytes of data, I want to use 40 byte blocks as templates to
fill a 4*20 LCD, I know I waste a lot of space this way but I don't need it
for code so.....
In the main routine in slot 0 I put:
**********************************************
store 1
tekstplaats=tekst2 'get the data starting at "tekst2", here occures the
error
gosub tekstweergeven
pause 5000
stop
***********************************************
tekstweergeven:
for tekstteller=tekstplaats to tekstplaats+40 'read 40 bytes of
data
read tekstteller,tekst
debug tekst
next
return
***********************************************
I get an "undefined symbol" error during tokenizing at the
"tekstplaats=tekst2" line, it seems that the constant "tekst2" that is
assigned at the data line in slot1 isn't recognised as a constant in slot0
All the other variables are properly declared, I don't get any other errors
Anybody an idee????
Thanks,
Michel,
Met vriendelijke groetjes,
> ************************************************
> Michel De Meester
> Biotechnisch Onderhoud
> Universitair Ziekenhuis Antwerpen
> Wilrijkstraat 10
> 2650 Edegem - B
> tel: ++32 (0)3 821 36 47
> e-mail: michel.de.meester@u...
>
> *************************************************
>
>
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sorry, but the Editor doesn't know about constants defined in any other file
than the one you're working in.
I suggest that you add this in the beginning of the file:
tekst1 CON 0
tekst2 CON 40
tekst3 CON 80
and so on...
:-)
Trygve
http://home.c2i.net/trygveh/english/
Opprinnelig melding
Fra: De Meester, Michel [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=K7C16QnImGsvdwXFQtGO3ymynb1l2MxanG2H3JkSHAntM6JXrPhtVL_hATo9CENJZZi5amaNVC5M6rfavnviLjOmA38QIZSQPA]Michel.De.Meester@u...[/url
Sendt: 5. august 2002 11:29
Til: 'basicstamps@yahoogroups.com'
Emne: [noparse][[/noparse]basicstamps] Problem with DATA command
Hello stampers,
while using the DATA command I ran into next problem:
(I'm using a BS2P40)
I put a bunch of text data into slot 1 using (sorry the labels and remarques
are in Dutch)
*********************************************
tekst1 data " Tekstblok 1 "
data "01234567890123456789"
data "01234567890123456789"
data "01234567890123456789"
tekst2 data " Tekstblok 2 "
data "01234567890123456789"
data "01234567890123456789"
data "01234567890123456789"
8<
>8
tekst25 data " Tekstblok 25 "
data "01234567890123456789"
data "01234567890123456789"
data "01234567890123456789"
**********************************************
This makes 2000 bytes of data, I want to use 40 byte blocks as templates to
fill a 4*20 LCD, I know I waste a lot of space this way but I don't need it
for code so.....
In the main routine in slot 0 I put:
**********************************************
store 1
tekstplaats=tekst2 'get the data starting at "tekst2", here occures the
error
gosub tekstweergeven
pause 5000
stop
***********************************************
tekstweergeven:
for tekstteller=tekstplaats to tekstplaats+40 'read 40 bytes of
data
read tekstteller,tekst
debug tekst
next
return
***********************************************
I get an "undefined symbol" error during tokenizing at the
"tekstplaats=tekst2" line, it seems that the constant "tekst2" that is
assigned at the data line in slot1 isn't recognised as a constant in slot0
All the other variables are properly declared, I don't get any other errors
Anybody an idee????
Thanks,
Michel,
Met vriendelijke groetjes,
> ************************************************
> Michel De Meester
> Biotechnisch Onderhoud
> Universitair Ziekenhuis Antwerpen
> Wilrijkstraat 10
> 2650 Edegem - B
> tel: ++32 (0)3 821 36 47
> e-mail: michel.de.meester@u...
>
> *************************************************
>
>
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Comments
store 1
i=2 ' plaat #1->25
tekstplaats=(i-1)*40
gosub tekstweergeven
>Greetings!
>Sorry, but the Editor doesn't know about constants defined in any other file
>than the one you're working in.
>I suggest that you add this in the beginning of the file:
>tekst1 CON 0
>tekst2 CON 40
>tekst3 CON 80
>and so on...
>:-)
>Trygve
>http://home.c2i.net/trygveh/english/
>
>
>>
Opprinnelig melding
>>Fra: De Meester, Michel [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=auciohYxB9YzIG2qxdlZPiYd9l0fj4srN8CRDAk9Cyz0YL7gqoT9gvPtxwljSaghy-RUOuhKK94M-K2dRBDzjLJuHsvQClk]Michel.De.Meester@u...[/url
>>Sendt: 5. august 2002 11:29
>>Til: 'basicstamps@yahoogroups.com'
>>Emne: [noparse][[/noparse]basicstamps] Problem with DATA command
>>
>>Hello stampers,
>>while using the DATA command I ran into next problem:
>>(I'm using a BS2P40)
>>I put a bunch of text data into slot 1 using (sorry the labels and remarques
>>are in Dutch)
>>*********************************************
>>tekst1 data " Tekstblok 1 "
>> data "01234567890123456789"
>> data "01234567890123456789"
>> data "01234567890123456789"
>>
>>tekst2 data " Tekstblok 2 "
>> data "01234567890123456789"
>> data "01234567890123456789"
>> data "01234567890123456789"
>>8<
>8
>>tekst25 data " Tekstblok 25 "
>> data "01234567890123456789"
>> data "01234567890123456789"
>> data "01234567890123456789"
>>**********************************************
>>This makes 2000 bytes of data, I want to use 40 byte blocks as templates to
>>fill a 4*20 LCD, I know I waste a lot of space this way but I don't need it
>>for code so.....
>>In the main routine in slot 0 I put:
>>**********************************************
>>store 1
>>tekstplaats=tekst2 'get the data starting at "tekst2", here occures the
>>error
>>gosub tekstweergeven
>>pause 5000
>>stop
>>***********************************************
>>tekstweergeven:
>> for tekstteller=tekstplaats to tekstplaats+40 'read 40 bytes of
>>data
>> read tekstteller,tekst
>> debug tekst
>> next
>>return
>>***********************************************
>>
>>I get an "undefined symbol" error during tokenizing at the
>>"tekstplaats=tekst2" line, it seems that the constant "tekst2" that is
>>assigned at the data line in slot1 isn't recognised as a constant in slot0