| | RE: Long range IR mode. Ralph Hempel
|
| | <Range mode intro snipped> (...) I'd redefine it something like this....use upper case BASE @ HEX \ To keep from evaluating HEX every time... : RANGE_SET ( f -- ) \ non-zero is long, 0 is short >R FFB7 DUP C@ R> IF FFFE AND ELSE 0001 OR THEN SWAP C! (...) (25 years ago, 9-Nov-99, to lugnet.robotics.rcx.pbforth)
|
| | |
| | | | Re: Long range IR mode. David Chen
|
| | | | (...) Great, much more generalized code. What are the >R and R> words BTW? Did FFB7 C@ . and found the contents to already FE, as in, it appears that the default IR mode is indeed Long to start with. Seems like the effective range is much shorter (...) (25 years ago, 11-Nov-99, to lugnet.robotics.rcx.pbforth)
|
| | | | |
| | | | | | RE: Long range IR mode. Ralph Hempel
|
| | | | (...) The >R and R> words are used as little helpers. The put (or get) the top element of the data stack to the return stack. As long as you dont fiddle with the return stack between uses, they are a great way to do this. The alternative way to code (...) (25 years ago, 11-Nov-99, to lugnet.robotics.rcx.pbforth)
|
| | | | |