To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 262
261  |  263
Subject: 
Re: more ROM info
Newsgroups: 
lugnet.robotics
Date: 
Thu, 5 Nov 1998 02:01:55 GMT
Original-From: 
Kekoa Proudfoot <kekoa@Graphics.Stanford.EDU>
Viewed: 
2933 times
  
On Oct 26, Allen Martin wrote:
14c0 - Read sensors, takes 2 arguments, arg1 in r6 has 0x10 in high byte and
sensor number (0-2) in low byte.  arg2 on stack has a pointer to the
following data structure:

typedef struct {
  word type;
  word raw;
  word cooked;
} RS_SensorData;

I passed over the 828c handler last night, and did a first pass over 14c0
in the process.  The struct is really like this:

struct {
   byte type;   // sensor type, same as for set sensor type opcode
   byte mode;   // sensor mode, same as for set sensor mode opcode
   word raw;    // raw sensor value, same as source 12
   word value;  // sensor value, same as source 9
   byte active; // sensor active flag, same as source 13
}

The raw and cooked values are written by ROM to the appropriate places in
the structure.  Returns 0 in r6l if successful, or non-zero if there was an
error.

The active flag is also updated by the 14c0 routine.

More info (lots more) at http://graphics.stanford.edu/~kekoa/rcx/#Rom.

I'm at six and a half full days and am 95% done with the firmware and 25%
done with the ROM.  I imagine I only need to sort through around 15% more
of the ROM to document all of the "obvious" entry points.

-Kekoa



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
16 hours ago
Custom Search

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