Subject:
|
Re: Long range IR mode.
|
Newsgroups:
|
lugnet.robotics.rcx.pbforth
|
Date:
|
Tue, 9 Nov 1999 06:34:56 GMT
|
Reply-To:
|
NOSPAM-DCCHEN@spamcakePACBELL.NET-NOSPAM
|
Viewed:
|
1467 times
|
| |
| |
> I don't have this word defined yet. If you like and REALLY need it, I can
> roll it into the next release which will use the ROM math routines for
> speed.
Just scanned through Kekoka's excellent dissection of the ROM routines.
Seems like system variable/register at address $ff7b contains the
relevant
Long range/Short range bit flag, ie. bit 0 toggles the IR range 0 =
Long,
1 = Short.
Could I define a word like this using C@ and C!?
: Set_Range_Long ( -- )
HEX
ffb7 C@ fffe AND ffb7 C! ;
Would this correctly toggle that bit?
> I could (time permitting) roll a special release out for you in the next few
> days with just the IR range item added...
That'd be really cool. I'm playing with Forth for the first time since
I found it in High School and messed w/ it a bit. A really cool Low
(yet somehow High...) level nitty gritty language.
Great work BTW, keep it up!
Puzzling out the multitasking stuff,
Dave
|
|
Message has 1 Reply: | | RE: Long range IR mode.
|
| <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)
|
Message is in Reply To:
| | RE: Long range IR mode.
|
| (...) I don't have this word defined yet. If you like and REALLY need it, I can roll it into the next release which will use the ROM math routines for speed. I could (time permitting) roll a special release out for you in the next few days with just (...) (25 years ago, 6-Nov-99, to lugnet.robotics.rcx.pbforth)
|
6 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|