2020-05-13 11:08:18 +10:00
|
|
|
: EMIT
|
|
|
|
( 0x53==(emit) override )
|
2020-05-23 03:48:30 +10:00
|
|
|
0x53 RAM+ @ ?DUP IF EXECUTE ELSE (emit) THEN ;
|
2020-05-26 10:34:52 +10:00
|
|
|
: (print) C@+ ( a len ) 0 DO C@+ EMIT LOOP DROP ;
|
2020-05-14 21:58:55 +10:00
|
|
|
: BS 8 EMIT ; : LF 10 EMIT ; : CR 13 EMIT ;
|
|
|
|
: CRLF CR LF ; : SPC 32 EMIT ;
|
2020-05-23 03:48:30 +10:00
|
|
|
: NL 0x0a RAM+ @ ( NLPTR ) ?DUP IF EXECUTE ELSE CRLF THEN ;
|
2020-05-15 01:57:26 +10:00
|
|
|
: (uflw) LIT" stack underflow" ERR ;
|
2020-06-22 01:41:10 +10:00
|
|
|
XCURRENT @ _xapply ORG @ 0x06 ( stable ABI uflw ) + !
|
2020-05-15 01:57:26 +10:00
|
|
|
: (wnf) (print) SPC LIT" word not found" ERR ;
|
2020-06-12 08:12:01 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|