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 / *377 (-20)
  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)
 
  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 (24 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 (...) (24 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 (...) (24 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 (...) (24 years ago, 23-May-00, to lugnet.robotics.rcx.pbforth)
 
  FW: pbForth Feedback
 
-----Original Message----- From: ian@dolphin.pst.cfmu...control.be [mailto:ian@dolphin....ontrol.be] On Behalf Of Ian Wild Sent: Monday, May 22, 2000 3:18 AM To: Ralph Hempel Subject: Re: pbForth Feedback (...) Indeed it did not. I've patched four (...) (24 years ago, 22-May-00, to lugnet.robotics.rcx.pbforth)
 
  Re: Finally able to add asm forth words (long)
 
(...) Yep. But if I have two choices I will always steal from working code over documentation. I will always write code in C first and see what assembler the compiler creates, especialy on a new machine. Trust what already works. -- (...) (24 years ago, 22-May-00, to lugnet.robotics.rcx.pbforth)
 
  Taking the plunge
 
OK I'm about to nervously take the plunge. My code assembles and I'm about to push it off the cliff and see if it flies. If any one feels bored please feel free to review the following and make comments. Finding bugs by inspection is always easier. (...) (24 years ago, 22-May-00, to lugnet.robotics.rcx.pbforth)
 
  RE: Finally able to add asm forth words (long)
 
(...) Steve, You ARE using Kekoa's Internals document, right? Here's the part that describes the interrupt vector redirection. In fact, that's what I do for grabbing the OC1B interrupt for the servo control words... remember intercepting the (...) (24 years ago, 22-May-00, to lugnet.robotics.rcx.pbforth)
 
  Re: Finally able to add asm forth words.
 
(...) It puzzled me for quite a while until I realized that the output was in pbforth.s. Once I saw the results it was much easier. (...) I agree. I have no interest in supporting a varient. I'll hack until it seems to work and then pass it to you (...) (24 years ago, 22-May-00, to lugnet.robotics.rcx.pbforth)
 
  RE: Finally able to add asm forth words.
 
(...) As they say (with a striaght face in the original C library) "Use the fork, Luke" I hope you didn't find the M4 stuff too much of a brain-bender. I'd be hard pressed to tell you how it works anymore... (...) Ummm, because the original hForth (...) (24 years ago, 22-May-00, to lugnet.robotics.rcx.pbforth)
 
  Finally able to add asm forth words.
 
Yeah!! After lots of reading and study and experimentation and suggestions from Ralph I finally added a new word to the .asm files. It was a simple word. I just cloned DUP under a different name. But it works. Now I am truely turned to the dark (...) (24 years ago, 22-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