68dd800bd1
This duplicated feature existed because of bootstrapping issues with LIT", but again, with careful threading, we can clean things up. We can now have a proper "Collapse OS" prompt :)
12 lines
454 B
Plaintext
12 lines
454 B
Plaintext
: EMIT
|
|
( 0x53==(emit) override )
|
|
0x53 RAM+ @ ?DUP IF EXECUTE ELSE (emit) THEN ;
|
|
: (print) C@+ ( a len ) 0 DO C@+ EMIT LOOP DROP ;
|
|
: BS 8 EMIT ; : LF 10 EMIT ; : CR 13 EMIT ;
|
|
: CRLF CR LF ; : SPC 32 EMIT ;
|
|
: NL 0x0a RAM+ @ ( NLPTR ) ?DUP IF EXECUTE ELSE CRLF THEN ;
|
|
: (uflw) LIT" stack underflow" ERR ;
|
|
XCURRENT @ _xapply ORG @ 0x06 ( stable ABI uflw ) + !
|
|
: (oflw) LIT" stack overflow" ERR ;
|
|
XCURRENT @ _xapply ORG @ 0x13 ( stable ABI oflw ) + !
|