To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.spyboticsOpen lugnet.robotics.spybotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Spybotics / 172
171  |  173
Subject: 
Spybotics to RCX message
Newsgroups: 
lugnet.robotics.spybotics
Date: 
Wed, 15 Jan 2003 04:49:05 GMT
Viewed: 
6399 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) (...) (21 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR