diff --git a/blk/103 b/blk/103 index 70068f7..7ec00d8 100644 --- a/blk/103 +++ b/blk/103 @@ -1,4 +1,4 @@ -VARIABLE ACC +CREATE ACC 0 , : _LIST ." Block " DUP . NL LIST ; : _NUM ACC @ SWAP _pdacc diff --git a/blk/104 b/blk/104 index 8357dfa..a64046c 100644 --- a/blk/104 +++ b/blk/104 @@ -1,7 +1,7 @@ ( Cursor position in buffer. EDPOS/64 is line number ) -VARIABLE EDPOS -CREATE IBUF 64 ALLOT -CREATE FBUF 64 ALLOT +CREATE EDPOS 0 , +CREATE IBUF 64 ALLOT0 +CREATE FBUF 64 ALLOT0 : _cpos BLK( + ; : _lpos 64 * _cpos ; : _pln ( lineno -- ) diff --git a/blk/131 b/blk/131 index 4cce49b..e67d514 100644 --- a/blk/131 +++ b/blk/131 @@ -3,14 +3,12 @@ DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN UPPER 'Q' = ; : bufp ( buf -- ) - DUP 64 + SWAP DO - i C@ DUP 0x20 < IF DROP 0x20 THEN EMIT - LOOP ; + DUP 64 + SWAP DO i C@ 0x20 MAX EMIT LOOP ; : bufs 1 aty ." I: " IBUF bufp 2 aty ." F: " FBUF bufp ; : c