mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-31 06:38:06 +11:00
dfe474ca0e
This allows us to move words like ABORT" to xcomp-core, which is I think the last roadblock before being able to unify all drivers into a single xcomp layer.
15 lines
258 B
Plaintext
15 lines
258 B
Plaintext
: EMIT
|
|
( 0x53==(emit) override )
|
|
0x53 RAM+ @ DUP IF EXECUTE ELSE DROP (emit) THEN ;
|
|
|
|
: (print)
|
|
BEGIN
|
|
C@+ ( a+1 c )
|
|
( exit if null or 0xd )
|
|
DUP 0xd = OVER NOT OR IF 2DROP EXIT THEN
|
|
EMIT ( a )
|
|
AGAIN
|
|
;
|
|
|
|
|