Browse Source

Move EMIT to low core

This allows us to remove one layer of indirection in (wnf). This is
possible now that EMIT is a switch word.
master
Virgil Dupras 3 years ago
parent
commit
8f3891f7d3
5 changed files with 5 additions and 6 deletions
  1. +1
    -0
      blk/356
  2. +0
    -2
      blk/363
  3. +4
    -0
      blk/364
  4. +0
    -4
      blk/382
  5. BIN
      cvm/forth.bin

blk/381 → blk/356 View File

@@ -7,3 +7,4 @@ SYSVARS 0x0a + :** NL
XCURRENT @ _xapply ORG @ 0x06 ( stable ABI uflw ) + !
: (oflw) LIT" stack overflow" ERR ;
XCURRENT @ _xapply ORG @ 0x13 ( stable ABI oflw ) + !
: (wnf) (print) LIT" word not found" ERR ;

+ 0
- 2
blk/363 View File

@@ -1,5 +1,3 @@
: (wnf) LIT" (print)" FIND DROP EXECUTE
LIT" word not found" ERR ;
: (parse) ( a -- n )
_pc IF EXIT THEN
_ph IF EXIT THEN


+ 4
- 0
blk/364 View File

@@ -5,3 +5,7 @@ SYSVARS 0x0c + :** C<*
?DUP NOT IF C<* ELSE EXECUTE THEN ;
: , H@ ! H@ 2+ HERE ! ;
: C, H@ C! H@ 1+ HERE ! ;
: ,"
BEGIN
C< DUP 34 ( ASCII " ) = IF DROP EXIT THEN C,
AGAIN ;

+ 0
- 4
blk/382 View File

@@ -1,4 +0,0 @@
: ,"
BEGIN
C< DUP 34 ( ASCII " ) = IF DROP EXIT THEN C,
AGAIN ;

BIN
cvm/forth.bin View File


Loading…
Cancel
Save