2020-05-12 21:08:18 -04:00
|
|
|
: EMIT
|
|
|
|
( 0x53==(emit) override )
|
2020-05-22 13:48:30 -04:00
|
|
|
0x53 RAM+ @ ?DUP IF EXECUTE ELSE (emit) THEN ;
|
2020-05-25 20:16:07 -04:00
|
|
|
: (print) C@+ ( a len ) 0 DO C@+ EMIT LOOP DROP ;
|
2020-05-14 07:58:55 -04:00
|
|
|
: BS 8 EMIT ; : LF 10 EMIT ; : CR 13 EMIT ;
|
|
|
|
: CRLF CR LF ; : SPC 32 EMIT ;
|
2020-05-22 13:48:30 -04:00
|
|
|
: NL 0x0a RAM+ @ ( NLPTR ) ?DUP IF EXECUTE ELSE CRLF THEN ;
|
2020-05-14 11:57:26 -04:00
|
|
|
: (uflw) LIT" stack underflow" ERR ;
|
|
|
|
: (wnf) (print) SPC LIT" word not found" ERR ;
|