uho / preForth

a minimalistic Forth kernel that can bootstrap
GNU General Public License v3.0
72 stars 9 forks source link

Z80 port (cleaned up version) #12

Open nickd4 opened 2 years ago

nickd4 commented 2 years ago

In this change I have split the /preForth directory into /common and /i386 and I have also split some of the Forth sources into bit-width depedent and/or direct/indirect threaded dependent files. So in the /common directory we now have

and these are prefixed to the similarly named files hi.forth and seedForth.pre to set the minint and maxint values, whereas in the /i386 directory we now have

and these are suffixed to seedForth-i386-rts.pre and seedForthRuntime.seedsource respectively to define some critical words implement the compiler or does> system, allowing us to insert call instructions for direct threaded and so forth.

And then I have added the following new directories:

You can run ./seed and ./seedForth-tokenizer in the /z80 directory and they work pretty much the way they do in /i386.