32

Tali Forth 2 for the 6502

 5 years ago
source link: https://www.tuicool.com/articles/hit/NJ3AVrF
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Tali Forth 2 for the 65c02

Scot W. Stevenson [email protected]

First version: 19. Jan 2014 (original Tali Forth)

This version: 04. Jul 2018

This is a BETA version of Tali Forth. This means that everything here should work, but probably doesn't.

Dude, I am the very model of a Salarian scientist, just let me start!

Run py65mon -m 65c02 -r taliforth-py65mon.bin from this directory.

Introduction

Tali Forth 2 is a subroutine threaded code (STC) implementation of an ANS-based Forth for the 65c02 8-bit MPU. The aim is to provide a modern Forth that is easy to get started with and can be ported to individial hardware projects, especially Single Board Computers (SBC), with little effort. It is free -- released in the public domain -- but with absolutely no warranty of any kind. Use at your own risk! (See COPYING.txt for details.) Tali Forth 2 is hosted at GitHub. You can find the most current version at https://github.com/scotws/TaliForth2 .

A little more detail

Tali Forth 2 aims to be, roughly in order of priority:

  • Easy to try.Download the source -- or even just the binary taliforth-py65mon.bin -- and run the emulator with py65mon -m 65c02 -r taliforth-py65mon.bin to get it running. This lets you experiment with a working 8-bit Forth for the 65c02 without any special configuration.

  • Simple. The simple subroutine-threaded (STC) design and excessively commented source code give hobbyists the chance to study a working Forth at the lowest level. Separate documentation in the docs folder discusses specific topics. The aim is to make it easy to port Tali Forth 2 to various 65c02 hardware projects.

  • Specific. Many Forths available are "general" implementations with a small core adapted to the target processor. Tali Forth 2 was written as a "bare metal Forth" for the 65c02 8-bit MPU and that MPU only, with its strengths and limitations in mind.

  • Standardized. Most Forths available for the 65c02 are based on ancient, outdated templates such as FIG Forth. Learning Forth with them is like trying to learn modern English by reading Chaucer. Tali Forth (mostly) follows the current ANS Standard.

The functional reference for Tali is GNU Forth (Gforth, https://www.gnu.org/software/gforth/ ). Programs written for Tali should run on Gforth or have a very good reason not to. Also, may Gforth words were adapted for Tali, especially when they make the code simpler (like FIND-NAME or BOUNDS ).

The first Tali Forth was my first Forth ever. It is hosted at https://github.com/scotws/TaliForth and is superceded by this version. The second version was strongly influence by what I learned writing Liara Forth for the 65816. Liara and Tali 2 share large parts of their internal logic.

Seriously super lots more detail

See docs\manual.pdf for the Tali Forth manual, which covers the installation, setup and internal structure. The central discussion forum is http://forum.6502.org/viewtopic.php?f=9&t=2926 at 6502.org.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK