|
Kekoa Proudfoot wrote:
> If you want a software solution, you might consider coding up something
> which resets the RCX when you do something like press all four buttons at
> once. I don't know the proper LegOS way to reset the RCX, but the code to
> force a reset looks like this:
>
> *(char *)0xffcc = 1;
> (*(void (**)(void))0)();
rom_reset() does the trick, you'll need to #include "rom/system.h". I'm
not sure wheter this is safe when multitasking.
--
Markus L. Noga noga@inrialpes.fr
Check out legOS! http://www.multimania.com/legos/
"Quand on n'a pas de caractere, il faut bien se donner une methode."
-Camus on Software Engineering
|
|
Message has 1 Reply: | | Re: loading s/w
|
| (...) What sort of safety are you referring to? Motors left running? My initial thought was of lost memory or data structures in an indeterminate state, but that would seem to be moot since you are restarting from the ROM, which will have forgotten (...) (26 years ago, 20-Apr-99, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: loading s/w
|
| (...) I belive LegOS breaks firmware deletion, in the sense that the "delete firmware" opcode is not supported by the IR routines, but I could be wrong about that. If you are using an AC adapter and no batteries, the easiest thing to do is to turn (...) (26 years ago, 8-Apr-99, to lugnet.robotics.rcx.legos)
|
11 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
|
|
|
|