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 / 183
182  |  184
Subject: 
Re: Save image in pbForth (srec version)
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Fri, 12 Nov 1999 11:01:43 GMT
Viewed: 
1402 times
  
In lugnet.robotics.rcx.pbforth, Ralph Hempel writes:
COOL! I guess you could load this in just before you actually
need to do the dumping of the memory.

Also, it is possible to create an alternative SAVE-SYSTEM word that will
generate image without SAVE-SYTEM support included (similar to MARKER word).

This is a great contribution, Sergey. Do you mind if I put
it in script format and package it with the standard distribution?

I might also roll it into the standard so that the user can chose
an image that has this pre-loaded....

It would be great. I would like to have it in a standard distribution.

Only thing, in my original version I'm using alternative wordlists to hide
implementation details. For instance, S-record words enclosed in wordlist
definition like this:

GET-ORDER                                  \ save current destination
WORDLIST WORDLIST-NAME SREC-WORDLIST       \ create new wordlist
SREC-WORDLIST SET-CURRENT                  \ set it as destination list
GET-ORDER SREC-WORDLIST SWAP 1+ SET-ORDER  \ add it to search order

[... srec words ...]

GET-ORDER NIP 1- SET-ORDER                 \ remove new list from search order
SET-ORDER                                  \ restore original destination

As you can see, I'm using two words that are not part of your standard image:
WORDLIST and WORDLIST-NAME. Although they are could be easily defined, I'm
forced to load such definitions early.
You already have words like SET-ORDER, GET-ORDER, MARKER in pbForht image. Is
it possible to add those WORDLIST and WORDLIST-NAME words too?
I like the idea of wordlists a lot. It's an only way how one could hide all
unnecessary implementation details and keep global namespace clean. Including
them in the standard image would greatly support this technique.

Other little thing, I've remarked that MARKER word can't restore task chain.
It correctly removes the task definition, but doing nothing about the chain.
All the multitasker words already in the standard image. I think it would be
also nice if MARKER can take care about the task chain too.
What do you think?

Sergey



Message has 1 Reply:
  RE: Save image in pbForth (srec version)
 
(...) Oh, you mean that you can save the system dictionary up to the point of the SAVE_SYSTEM stuff that is at the end of the dictionary? Great! (...) I think a SAVE_SYSTEM script that is loaded in just before the system is to be saved is right. I (...) (25 years ago, 12-Nov-99, to lugnet.robotics.rcx.pbforth)

Message is in Reply To:
  RE: Save image in pbForth (srec version)
 
(...) <snipped pbForth code> COOL! I guess you could load this in just before you actually need to do the dumping of the memory. This is a great contribution, Sergey. Do you mind if I put it in script format and package it with the standard (...) (25 years ago, 11-Nov-99, to lugnet.robotics.rcx.pbforth)

6 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
    

Custom Search

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