6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sun Apr 28, 2024 12:16 pm

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Fig Forth Vocabulary
PostPosted: Tue Jan 31, 2017 4:38 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3346
Location: Ontario, Canada
nyef wrote:
[...] the Ragsdale 6502 assembler, which looks as though it corresponds with the assembler syntax for the fig-FORTH source that I found

Back in the day, FIG-Forth and the Ragsdale assembler were central to an elaborate effort that allowed me to create a new Forth, using FIG-Forth as the "parent." I didn't call it meta-compiling but maybe that definition applies. It was a good thing the Ragsdale assembler was workable because it was all I had available. I guess I had acquired a DOS box by then but certainly I had no 65xx cross-assembler.

My main goal was to reassemble the FIG-Forth source supplied in the FIG Installation Manual, but incorporating optimizations based on my KK computer's new instructions (such as 9-cycle ITC NEXT :mrgreen: )! FIG lives down at $0200, so -- skipping over a lot of ugly detail -- I basically moved the dictionary pointer DP up to $8000 and assembled and compiled the whole deal as a continuation of the original Forth. Then some ugly pokes severed the new name list from the old, and the new Forth at $8000 became independent and self-sufficient.

Did I mention ugly?! The only good thing you could say was that it worked. The new Forth was entirely satisfactory! But the hacks in its heritage were hideous, partly because there weren't any hooks in FIG to support what I was doing.

That became a subsequent goal -- to revise my new Forth so as to include some hooks. Doing so would let me repeat the process but in a more sanitary fashion. And I'd end up with a Forth that lived back down at $0200 again! :) But it never happened -- my attention shifted elsewhere. I'd already implemented the KK optimizations, and that was by far my strongest motivation.

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: Fig Forth Vocabulary
PostPosted: Mon Sep 24, 2018 11:07 pm 
Offline

Joined: Fri May 05, 2017 9:27 pm
Posts: 851
Dr Jefyll wrote:
PS- Thanks for scanning and sharing Mr Rottenkolber's explanation, Garth! And the 2nd-last paragraph is food for thought. I wasn't aware of the alternative approaches used by Forth-79 and Forth-83.

Using a "vocabulary stack" in Forth-83 was an experimental proposal by William F. Ragsdale in Appendix C of the Forth-83 standard.
SEARCH ORDER SPECIFICATION AND CONTROL
Other than that experimental proposal, all the Forth-83 standard had to say about the search order was
Quote:
search order

A specification of the order in which selected vocabularies

in the dictionary are searched. Execution of a vocabulary

makes it the first vocabulary in the search order. The

dictionary is searched whenever a word is to be located by

its name. This order applies to all dictionary searches

unless otherwise noted. The search order begins with the

last vocabulary executed and ends with FORTH , unless

altered in a system dependent manner.


Which seems rather vague. I don't think there were constraints on how to implement a vocabulary structure for a Forth-83 system.

Cheers,
Jim


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: