Searching \ for '[SX] PUT command with a constat value' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: massmind.org/techref/ubicom/devices.htm?key=sx
Search entire site for: 'PUT command with a constat value'.

Exact match. Not showing close matches.
PICList Thread
'[SX] PUT command with a constat value'
2009\06\17@075741 by smhhadiman/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, smhhadima wrote:

Dear Bean,

I tried this code, but I had a problem with it.

the X array gets filled up with 5s instead of the first 5 locations only please note the compiler did not complain
Thank you for your great effort.


p>
x var byte(16)
y var byte(16)
a var byte (16)
i var byte


y(i)=5
next[/color>

put a,y(0) TO y(p)  'OK
put x,y(0) TO y(p-5)  ' DOES NOT work right and the compiler did not complain

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=360430
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

2009\06\17@081520 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Sam,
 You can only use math in an assignment command (even constant math).
 So the y(p-5) should have thrown an error.  I'll look into it.

Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=360430#m360435
Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com
The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)

More... (looser matching)
- Last day of these posts
- In 2009 , 2010 only
- Today
- New search...