larsbrinkhoff / lbForth

Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
GNU General Public License v3.0
418 stars 112 forks source link

Emacs bytecode target #24

Open larsbrinkhoff opened 7 years ago

larsbrinkhoff commented 7 years ago

The assembler is done.

larsbrinkhoff commented 7 years ago

Emacs 26 will introduce a new opcode called switch. It's a jump through a table, which can be used to simulate an indirect jump.

larsbrinkhoff commented 7 years ago

I have started writing a proof-of-concept Forth using the new opcode:
http://github.com/larsbrinkhoff/el-cuarto