Open
Conversation
…to bss rather than text section which avoids the need to call mprotect(), rename things
… be wrapped with PROGRAM / END, also removes automatic bye token that was generated by END
…time.seedsource, so that we can run textual forth code without the tests or the banner
… writes to stderr, fix self-hosted tokenizer termination issue (was debugged with eemit)
…ng the nonstandard words on top of gForth's standard words, produces redefinition warnings
…seedForth-i386.pre containing some compiler words so we can do special handling for DTC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this change I have split the
/preForthdirectory into/commonand/i386and I have also split some of the Forth sources into bit-width depedent and/or direct/indirect threaded dependent files. So in the/commondirectory we now havehi16bit.forthhi32bit.forthseedForth16bit.preseedForth32bit.preand these are prefixed to the similarly named files
hi.forthandseedForth.preto set theminintandmaxintvalues, whereas in the/i386directory we now haveseedForth-i386.preseedForthRuntimei386.seedsourceand these are suffixed to
seedForth-i386-rts.preandseedForthRuntime.seedsourcerespectively to define some critical words implement the compiler ordoes>system, allowing us to insertcallinstructions for direct threaded and so forth.And then I have added the following new directories:
/asxv5pxxcontains a local copy of the GPLv3-licensed ASxxxx assemblers, (as a submodule that references my nick4 account on github), for bootstrapping. See https://shop-pdp.net/ashtml/asxxxx.php for the original source of these files./emu_z80contains a local copy of the MIT-licensed Z80 emulator at https://github.com/superzazu/z80 (as a submodule that references my nickd4 account on github), and a wrapper that t I developed to provide preForth-compatible I/O facilities./z80contains a copy of the/i386directory with appropriate changes:fasmi386 source changed toasz80source,Makefilechanged to buildbinfiles and run via the emulator, 32-bit changed to 16-bit, indirect threaded changed to direct.You can run
./seedand./seedForth-tokenizerin the/z80directory and they work pretty much the way they do in/i386.