 | | RE: How do I delete firmware from firmware?
|
|
(...) Here's a copy of what Kekoa replied with... This sounds correct. In C, this is how I do it: /* Delete the firmware */ *(char *)0xffcc = 1; (*(void (**)(void))0)(); Indeed, *(void (**)(void))0) is the reset vector, whose value is 0x03ae. 0xffcc (...) (26 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: How do I delete firmware from firmware?
|
|
(...) Looking at forth code it looks like "HEX 3ae EXECUTE" might end up doing what we are talking about. I tried this with out getting what I expected. I will fiddle more but does the approach seems right? M_CODE(7,``"EXECUTE"...TE,_FLINK) MOV.W (...) (26 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: Help with Terminal Emulator
|
|
(...) Ralph, The firmware and script uploads work great. I've gotten a good download each time. Thanks. I haven't yet tried the xmodem/save-system yet, but I'm just getting started. --Jerry (26 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: Bug in HEX handling?
|
|
(...) Thanks. That helps. Case sensitivity is good but requiring upper case for hex is annoying. I suppose this is forth standard. That is one thing that I find annoying about forth, that most builtin words are upper case. It reveals the age of (...) (26 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | RE: Bug in HEX handling?
|
|
(...) If you use U. (unsigned dot) you will get FFFF. The "." is for signed numbers. (...) Yes it is, but pbForth is case sensitive. Cheers, Ralph Hempel - P.Eng ---...--- Check out pbFORTH for LEGO Mindstorms at: (URL) ---...--- Reply to: rhempel (...) (26 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Bug in HEX handling?
|
|
HEX is not working the way I think it should in 1.1.1. Is this wrong or do I not understand something. This is 1.1.1 pbmax.srec. ok DECIMAL ok 65536 DUP . -1 ok HEX . -1 Why isn't this ffff? ok 300b 300b ? undefined word Isn't 300b a legal hex (...) (26 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: random
|
|
What version are you using? I believe random/srandom are broken in all non-CVS versions of legOS. To get the CVS version, head to (URL) and follow the instructions on that page. Should work fine- I just tested the new random() two hours ago and it (...) (26 years ago, 22-May-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: NCQ and LegOS
|
|
(...) LegOS, yes. NQC, not as you'd probably like -- although you do get access to 32 register variables, and of course you can use the datalog. (...) With LegOS yes. With NQC and the original firmware, no. With the upcoming release of the new (...) (26 years ago, 22-May-00, to lugnet.robotics.rcx)
|
| |
 | | random
|
|
Hi! Back again with more problems. I want to use random() in my programs and looking in stdlib.h it looks like it is implemented. It says: extern long int random(void); extern void srandom(unsigned int seed); When I didn't have stdlib.h included, I (...) (26 years ago, 22-May-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: NQC and rcx2
|
|
All the things I've tried work fine. The only thing I find confusing is the events and control of global objects. Could you try to explain how to set-up and use these features? James Dave Baum <dbaum@spambgoneenteract.com> wrote in message (...) (26 years ago, 22-May-00, to lugnet.robotics.rcx.nqc)
|