mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 17:18:06 +11:00
fa79e3d8a6
Lines edited with the Block editor end with 0xd and (print) spits spurious CR when printing those lines. Also, properly initialize ACC in BROWSE.
14 lines
254 B
Plaintext
14 lines
254 B
Plaintext
: EMIT
|
|
( 0x53==(emit) override )
|
|
83 RAM+ @ DUP IF EXECUTE ELSE DROP (emit) THEN ;
|
|
|
|
: (print)
|
|
BEGIN
|
|
C@+ ( a+1 c )
|
|
( exit if null or 0xd )
|
|
DUP 13 = OVER NOT OR IF 2DROP EXIT THEN
|
|
EMIT ( a )
|
|
AGAIN
|
|
;
|
|
|