1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-23 15:58:05 +11:00

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.
This commit is contained in:
Virgil Dupras 2020-10-28 16:34:49 -04:00
parent 038c25957b
commit 8f3891f7d3
5 changed files with 5 additions and 6 deletions

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 ;

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

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 ;

View File

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

Binary file not shown.