Subject:
|
Scout SDK: chk, chkl, only accept forward offsets
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Fri, 19 Nov 1999 19:01:16 GMT
|
Viewed:
|
537 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
It seems consistent with the intention that chk and chkl provide an
'if..endif' structure, and provides more range in the vast majority of cases
where a forward jump would be used.
I don't know if this limit is in the compiler or in the actual byte code,
but I'm sure we'll find out when the byte code encoding is released (hint,
hint, give AFOL an inch, etc.)
And isn't the "branch if false" behavior of chk an interesting choice?
Having a long history of working with other assemblers, I like it.
example snippet:
#include "ScoutDef.h"
task 0
a:
b: chk SRC_CON, TVAL_PRESSED, EQ, SRC_SENVAL, SEN_TOUCH2, a // compile error
c: chk SRC_CON, TVAL_PRESSED, EQ, SRC_SENVAL, SEN_TOUCH2, c // compile error
d: chk SRC_CON, TVAL_PRESSED, EQ, SRC_SENVAL, SEN_TOUCH2, e // ok
e:
endt
|
|
Message is in Reply To:
![](/news/x.gif) | | Scout SDK
|
| Just picked up the Scout Development set at (URL) . Great stuff! You can program the Scout in Lego assembler and something that's similar to spirit.ocx. There's a DOS driver too! This'll keep me quite busy for a while. Lot's of documentation and (...) (25 years ago, 19-Nov-99, to lugnet.robotics)
|
4 Messages in This Thread: ![Scout SDK -Bert van Dam (19-Nov-99 to lugnet.robotics)](/news/x.gif) ![](/news/246.gif) ![You are here](/news/here.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: Scout SDK -Luis Villa (19-Nov-99 to lugnet.robotics, lugnet.robotics.scout)](/news/x.gif) ![](/news/46.gif) ![Re: Scout SDK -Robert Eddings (21-Nov-99 to lugnet.robotics.scout)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|