Subject:
|
Spybotics to RCX message
|
Newsgroups:
|
lugnet.robotics.spybotics
|
Date:
|
Wed, 15 Jan 2003 04:49:05 GMT
|
Viewed:
|
6719 times
|
| |
| |
The following NQC code will define a routine to send a message to the
RCX or Scout:
// Sends an RCX PBMessage to RCX or Scout
// nMessage = 1 - 255
__nolist void SendRCXMessage (const int nMessage)
{
asm { 0xe3, &nMessage };
asm { 0x17, 37 };
}
I'm busy making API .nqh files to get access to the ROM subroutines.
So far I have them divided into utility functions (such as the one
above) that do not need any of the ROM defined variables and engine
functions, which do . The engine functions implement the game engine
that the Spybots progam uses. Lots of useful stuff there. I have a
lot more calls already defined, I just have to test them more before
posting them. I thought I'd just jump in and post this one because I
remember the statement being made at one point that it might not be
possible to send a standard RCX message out from a Spybot.
I must give credit to Jean-François Soucaille and Dave Baum for
steering me toward the information I needed.
|
|
Message has 1 Reply: | | Re: Spybotics to RCX message
|
| Hey cool, Mark, this is really going to be useful! I've noticed that when MindScript generates a call to the SendRCXMessage subroutine, it always pops the calling parameters off the stack. For example, this MindScript code: SendRCXMessage(5) (...) (22 years ago, 15-Jan-03, to lugnet.robotics.spybotics)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|