To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / *2060 (-10)
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) My hangups are gone too! Danke! Jürgen (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.legos)
 
  Re: asm in NQC.
 
(...) You don't really need asm to do this. Due to a side-effect of how the bytecodes are implemented, you can set the slope value simply by adding it to the 'mode' parameter... // use a slope of 10 for light sensor on port 1 SetSensorType(SENSOR_1, (...) (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.nqc)
 
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) Great! (...) This has always been a problem- it was an issue with firmdl before dll. Nothing serious, so it was never fixed. (...) You've actually had programs that large? Wow. -Luis (trying to make this more than a one-sided conversation...) (...) (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.legos)
 
  Re: malloc() bug found -- BAD MEMORY REGION :-(
 
(...) made some tests, and - Yep, it works ! I'd strongly encourage everybody experiencing strange hangups to apply the little fix to mm_init() i suggested. For me, it makes malloc() and dll work perfectly. BTW, there are some minor flaws in dll[x], (...) (25 years ago, 2-Mar-00, to lugnet.robotics.rcx.legos)
 
  Re: Robolab 2.0 aliases
 
(...) to (...) Ben Erwin kindly explained these to me. This feature is part of Robolab 2.0 extras. When the extras are installed (using Project/Install Extras), in Functions/Modifiers the control is called Container.CTL. Once this is dragged to the (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.robolab)
 
  malloc() bug found -- BAD MEMORY REGION :-(
 
It looks like it's not a bug in legOS, but in the RCX hardware: Memory from 0xfb80 to 0xfd7f is simply NOT WRITEABLE, or more exactly, always read as 0xff, at least on my RCX ! Try the following little test: // // memory test // #include <conio.h> (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.legos)
 
  asm in NQC.
 
All, I have tried various ways to put asembly in my NQC programs. I have copied stuff from the header files but it does not work. I would like to use the slope parameter of the SetSensorMode opcode, but NCQ does not support this. That is why I need (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC troubles
 
Rob, You could set up a seperate task to watch the switch and turn off the moter. This task will run seperatly from the main task. John C. Quillan (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.nqc)
 
  Re: NQC troubles
 
Thanks for your help. I was also wondering if there is a way to have the motor turn off at any time in the program when the touch sensor is pushed, rather than having to re type the until statements a bunch of times. would I have to use a task for (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.nqc)
 
  malloc() bug haunt: getting closer..
 
Yesterday evening i found something, that might be the reason for some of the crashes reported lately: The chain of memory blocks used by malloc() has a broken entry, say: the reserved block at 0xfd7c has a length word of 0xfffe. This will cause (...) (25 years ago, 1-Mar-00, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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