Skip to content

2.2.2 dev. snapshot: EMIT vector, more general Y=TOS

Pre-release
Pre-release
Compare
Choose a tag to compare
@TG9541 TG9541 released this 18 Dec 18:56
· 854 commits to master since this release

The 2.2.2 snapshot provides some important changes:

  • vector for an EMIT word, e.g. for background task, but also for text output via a general Forth word
  • Refactoring of most core words to Y=TOS, which means that assembly and STC code can be mixed more easily
  • Improved NUMBER string conversion: new modifiers % for base 2 and & for base 10. The number strings %-111 and -%111 both result in -7.

Here is an example for valid number strings:

DECIMAL
$10 $-10 -$20 20 -20 %1111 -%1111 .S
 16 -16 -32 20 -20 15 -15 <sp  ok
HEX &16 . 10 ok

Since NUMBER was re-implemented in a mix of STC and assembly the binary size of this snapshot is significantly smaller even if there are more features.