Giter VIP home page Giter VIP logo

machforth's Introduction

MachForth for TI-99

This is a Native code compiler for 9900 modeled on machine Forth by Charles Moore with many liberties taken to accommodate the TMS9900 CPU.

Features

  • Most Forth primitives are inlined due to the bulky sub-routine overhead of the TMS9900. Stacks are emulated with normal registers.
  • Top of stack is cached in Register 4 for a speed improvement on most ords.
  • Tail-call optimization is implemented with -; operator replacing ; This is used manually by the programmer. No error detection for misplacement at this time.

Mar 3 2022

This is the first commit of a work in progress. Documentation is to follow.

Nov 3 2022 V2.6

Fixed NEW. directive bug Added CODE ENDCODE to make ASM words look like regular Forth Assembler Added new syntax to force symbolic addressing mode for fetching and storing. This lets the programmer improve size and speed significantly over pure stack operations.

Oct 1 2023

  • R11 is now the top of return stack cache register
  • R9 is the for next loop index register. 'i' is used to get the loop index in your programs

machforth's People

Contributors

bfox9900 avatar

Stargazers

Starring Forth avatar Backwoods Bob avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.