1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-26 17:18:05 +11:00
collapseos/blk/381

12 lines
454 B
Plaintext
Raw Normal View History

: EMIT
( 0x53==(emit) override )
2020-05-23 03:48:30 +10:00
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 ;
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 ;
XCURRENT @ _xapply ORG @ 0x06 ( stable ABI uflw ) + !
: (oflw) LIT" stack overflow" ERR ;
XCURRENT @ _xapply ORG @ 0x13 ( stable ABI oflw ) + !