For next
Archiver
Posts: 46,084
Just being anal here.......
In the editor for the BS2 there are code examples.
In the example for the FOR NEXT instruction the comments section of the
program explains how "StepValue" is incremented within the loop.
In the loop the variable name is "StepSize" and not StepValue.
In this example, are StepValue in the comments and StepSize in the code meant
to be the same thing?
Comments on this would be appreciated.
Ken
p.s. I just learned you can get the upper 16 bits of a 32 bit multiplication
result!!! Wow....Just might have to put the Ubicom SX down for a while.
[noparse][[/noparse]Non-text portions of this message have been removed]
In the editor for the BS2 there are code examples.
In the example for the FOR NEXT instruction the comments section of the
program explains how "StepValue" is incremented within the loop.
In the loop the variable name is "StepSize" and not StepValue.
In this example, are StepValue in the comments and StepSize in the code meant
to be the same thing?
Comments on this would be appreciated.
Ken
p.s. I just learned you can get the upper 16 bits of a 32 bit multiplication
result!!! Wow....Just might have to put the Ubicom SX down for a while.
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
In the demo program there is a variable called stepSize that is the
StepValue parameter for the FOR-NEXT loop.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
[noparse][[/noparse]Non-text portions of this message have been removed]
StepValue parameter for the FOR-NEXT loop.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: smartdim@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=2jV4VzwVqaMazcbEE0Q5IPM4b5p5mAz9EFuNaYAT4oPADftJ_ModjJRsMgaNGnA6EdDZNmydJA]smartdim@a...[/url
Sent: Monday, May 31, 2004 3:09 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] FOR NEXT
Just being anal here.......
In the editor for the BS2 there are code examples.
In the example for the FOR NEXT instruction the comments section of the
program explains how "StepValue" is incremented within the loop.
In the loop the variable name is "StepSize" and not StepValue.
In this example, are StepValue in the comments and StepSize in the code
meant
to be the same thing?
Comments on this would be appreciated.
Ken
p.s. I just learned you can get the upper 16 bits of a 32 bit
multiplication
result!!! Wow....Just might have to put the Ubicom SX down for a while.