mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 12:58:09 +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:
parent
038c25957b
commit
8f3891f7d3
@ -7,3 +7,4 @@ SYSVARS 0x0a + :** NL
|
|||||||
XCURRENT @ _xapply ORG @ 0x06 ( stable ABI uflw ) + !
|
XCURRENT @ _xapply ORG @ 0x06 ( stable ABI uflw ) + !
|
||||||
: (oflw) LIT" stack overflow" ERR ;
|
: (oflw) LIT" stack overflow" ERR ;
|
||||||
XCURRENT @ _xapply ORG @ 0x13 ( stable ABI oflw ) + !
|
XCURRENT @ _xapply ORG @ 0x13 ( stable ABI oflw ) + !
|
||||||
|
: (wnf) (print) LIT" word not found" ERR ;
|
2
blk/363
2
blk/363
@ -1,5 +1,3 @@
|
|||||||
: (wnf) LIT" (print)" FIND DROP EXECUTE
|
|
||||||
LIT" word not found" ERR ;
|
|
||||||
: (parse) ( a -- n )
|
: (parse) ( a -- n )
|
||||||
_pc IF EXIT THEN
|
_pc IF EXIT THEN
|
||||||
_ph IF EXIT THEN
|
_ph IF EXIT THEN
|
||||||
|
4
blk/364
4
blk/364
@ -5,3 +5,7 @@ SYSVARS 0x0c + :** C<*
|
|||||||
?DUP NOT IF C<* ELSE EXECUTE THEN ;
|
?DUP NOT IF C<* ELSE EXECUTE THEN ;
|
||||||
: , H@ ! H@ 2+ HERE ! ;
|
: , H@ ! H@ 2+ HERE ! ;
|
||||||
: C, H@ C! H@ 1+ HERE ! ;
|
: C, H@ C! H@ 1+ HERE ! ;
|
||||||
|
: ,"
|
||||||
|
BEGIN
|
||||||
|
C< DUP 34 ( ASCII " ) = IF DROP EXIT THEN C,
|
||||||
|
AGAIN ;
|
||||||
|
BIN
cvm/forth.bin
BIN
cvm/forth.bin
Binary file not shown.
Loading…
Reference in New Issue
Block a user