Exact match. Not showing close matches.
PICList
Thread
'[SX] transferring stamp sx basic to compile sx/b'
2006\11\14@205851
by
vfidelesn/a
|
|
I been transferring some program from parallax stamp basic to sx/b compile basic,
and the following basic statement below cannot be be compile but works in stamp basic;
i var byte
addr var byte
chr var byte
start:
addr = msg1
gosub display_line
addr = msg2
gosub display_line
end display_line:
i = 0
do
read addr + i,chr
if chr = 0 then exit
serout rb.1,T9600,chr
inc i
loop
return msg1:
data "sample line 1",0
msg2:
data "sample line 2",0 what I get when compiling this program an "error 8, invalid parameter" for line 5
what is the equivalent command for assignning a pointer to a variable in sx/b??
thank you
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=155267
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\11\14@225755 by Sparks-R-Funn/a
|
|
vic f,
Try using addr = @msg1 and addr = @msg2.
The @ prefix indicates that the memory address rather than the memory contents should be used.
- Sparks
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=155267#m155275
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
|
|
vic f,
Addr needs to be a WORD variable.
Bean.
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=155267#m155290
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
2006\11\15@223524 by vfidelesn/a
|
|
thanks ben I will try it out when I get back home
and will inform you when I'm back in the office
Vic f
---------- End of Message ----------
You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=155267#m155471
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)
More... (looser matching)
- Last day of these posts
- In 2006
, 2007 only
- Today
- New search...