Jump to content
IGNORED

Atari Forth programming.


Allan

Recommended Posts

Question to anybody familiar with Atari Forth programming.  Is there any way to import a text file into a Forth editor? Or do you have to create Forth code in a Forth editor? There are a few Forth listings in early Antic magazine issues and I would like to include them with other language listings on a ATR disk image, but don't want to waste my time typing them in if there is no way to import an atari text file Forth listing into a Forth editor. Any input would be helpful.

Link to comment
Share on other sites

None of the fig-FORTH environments had a way to read DOS files into screens.

 

You could literally cut and paste into the FORTH environment, you would load the fig-forth editor (e.g. 21 LOAD on extended fig-forth), and then you could add screen edit words in front of the text:


 

0 P  ( This is the first line  )
1 P  ( This is the second line )
2 P  ( This is the third line  )

You can then flush the screen to disk.

 

and cut and paste that into the forth environment (e.g. with Altirra)

 

You just need to be aware of the screen size in the forth you are using (e.g. extended fig forth uses screens sized 80 columns by 16 lines)

 

-Thom 

Link to comment
Share on other sites

Thanks, Thom.

I will add a text file of the Forth listings then so people can cut and paste them into an emulator. I am putting a later Antic menu program on each disk which also included a help file to explain file extentions. I will add your comments to the help file on disks that have Forth listings on them.

 

Allan

 

Link to comment
Share on other sites

On 10/11/2019 at 12:33 PM, Allan said:

I will add a text file of the Forth listings then so people can cut and paste them into an emulator. I am putting a later Antic menu program on each disk which also included a help file to explain file extentions. I will add your comments to the help file on disks that have Forth listings on them.

 

Thom is right on the fig-FORTH implementations, but there are a few implementations that can read DOS files:

 

X-FORTH, VolksForth for example. They both have an INCLUDE" word, used like:

INCLUDE" D1:MYFILE.FS"

 

volksforth-include.PNG

Edited by robdaemon
added screenshot from voilksForth
  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
On 10/11/2019 at 10:14 AM, Allan said:

Question to anybody familiar with Atari Forth programming.  Is there any way to import a text file into a Forth editor? Or do you have to create Forth code in a Forth editor? There are a few Forth listings in early Antic magazine issues and I would like to include them with other language listings on a ATR disk image, but don't want to waste my time typing them in if there is no way to import an atari text file Forth listing into a Forth editor. Any input would be helpful.

When I was doing something similar last year with a large OCR of Forth code, I wrote a Perl tool that would punch the data directly into an atr.  You can probably adapt it. 

qfigs1.zip

  • Like 2
Link to comment
Share on other sites

  • 5 months later...
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...