To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / *378 (-10)
  RE: Forth question
 
(...) 1 CONSTANT ONE Recall that CONSTANT is a *defining* word, just like the ":" It makes a name in the dictionary, in this case "ONE" and then links to a special bit of code that is executed every time ONE is interpreted. It grabs the value out of (...) (24 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
 
  Forth question
 
I'm trying to define a constant in a compiled word. : zzz 1 CONSTANT ONE ; I know its not right. It tries to compile "ONE" which is not what is wanted. What is the right way to say this? (24 years ago, 24-May-00, to lugnet.robotics.rcx.pbforth)
 
  Re: RTC
 
(...) Yes. The IR just becomes a dumb serial port whith an annoying builtin echo, almost like you had a serial port cable attached to the RCX. Open the port on the host system using whatever language you want and proceed to send commands to it. Of (...) (24 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
 
  RE: RTC
 
(...) You can use RCX.pm, but that's really for sending native byte streams to the RCX. You can just use standard IO calls to write to the serial port on your Linux Box. Cheers, Ralph Hempel - P.Eng ---...--- Check out pbFORTH for LEGO Mindstorms (...) (24 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
 
  Re: RTC
 
NOTE: This is a continuation of a conversation with Mr. Hempel via email. >> Can I send this text to the robot from a pc at an arbritrary time? How long >> will it take each instruction to download? >Yes you can. I've written a Tcl (...) (24 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
 
  Re: How do I delete firmware from firmware?
 
(...) M_CODE(3,``"BYE"'',BYE,_FLINK) MOV.B #1:8, rAl MOV.B rAl,@0xCC:8 MOV.W @0:16,rA ; Reset vector JSR @rA M_NEXT() (24 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
 
  RE: How do I delete firmware from firmware?
 
(...) Actually, BYE is in the h8hforth.asm source now, but it's a no-op. Could you email it to me, Ernst, and then I'll put it into the basic distribution... Cheers, Ralph Hempel - P.Eng ---...--- Check out pbFORTH for LEGO Mindstorms at: (URL) (...) (24 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
 
  Re: How do I delete firmware from firmware?
 
(...) [...snip...] (...) I defined the BYE word in h8hforth.asm according to Kekoa's comments and it works like a charm. The RCX is reset but doesn't turn off, so new firmware can be uploaded immediately. Ernst (24 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
 
  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 (...) (24 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 (...) (24 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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