All Projects → drj11 → sixtyforth

drj11 / sixtyforth

Licence: other
64-bit implementation of Forth

Programming Languages

assembly
5116 projects
shell
77523 projects
forth
179 projects
Makefile
30231 projects

Labels

Projects that are alternatives of or similar to sixtyforth

RamenEngine
A game engine written in SwiftForth.
Stars: ✭ 53 (+20.45%)
Mutual labels:  forth-94
spf
SP-Forth
Stars: ✭ 34 (-22.73%)
Mutual labels:  forth-94
CAMEL99-V2
Indirect threaded code version of CAMEL99 Forth for TI-99 computer
Stars: ✭ 16 (-63.64%)
Mutual labels:  forth-94

SixtyForth

Build Status

Welcome to SixtyForth, 64th for short.

SixtyForth is a 64-bit implementation of FORTH written in 64-bit Intel assembler.

SixtyForth implements the ANSI Forth standard (1994 edition). The CORE word set is present.

In this implementation a cell is 64-bits wide, and signed integers are represented in 2's complement.

As per the ANSI standard, the required words from the standard are required to be in UPPER CASE. Obviously lower case is a bit more comfortable, and SixtyForth may accept that in the future. Note that you can define your own words in any case you like; when using them the case must be exactly as you defined it.

Input is accepted from the keyboard (and interactively ^A ^E ^P ^N ^D ^K work); from the command line (./64th -c 'SOURCE TYPE'); and from files (./64th example/hw.4).

Building SixtyForth and running it

Unpack the distribution from the magnetic tape. Ensure NASM is installed. Then:

cd sixtyforth
make

This creates the executable binary 64th. Run this to start using SixtyForth:

./64th

Testing

The skeptical may want to run the tests first:

make test

The tests are run using urchin which is an npm module. urchin will be installed if npm works.

Bugs, Issues, Fun

Please refer to github.

https://github.com/drj11/sixtyforth/

On ANSI

The CORE word set is implemented.

Other word sets are not implemented completely, but the intention is that where SixtyForth has facilities that overlap with ANSI words, SixtyForth will implement those ANSI words.

For example, SixtyForth has a word that adds two double cell numbers together, it is D+ from the ANSI DOUBLE word set, even though the entire word set is not implemented.

CORE EXT

None of the words marked as obsolescent are implemented: #TIB CONVERT EXPECT QUERY SPAN TIB.

Implemented: .( 0> 2>R 2R> 2R@ <> ?DO FALSE HEX NIP PAD PARSE TO TRUE TUCK U> VALUE WITHIN [COMPILE] \

Not implemented: .R 0<> :NONAME AGAIN C" CASE COMPILE, ENDCASE ENDOF ERASE MARKER OF PICK REFILL RESTORE-INPUT ROLL SAVE-INPUT SOURCE-ID U.R UNUSED

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].