ソースを参照

Allow list to stop spitting a line early

If a line has a char below 0x20, we consider the line ended, we
stop the EMIT loop for this line and spit our NL.

This makes LIST stop wasting rows in environments with a tight
screen.
master
Virgil Dupras 3年前
コミット
3171b03335
2個のファイルの変更3行の追加5行の削除
  1. +3
    -5
      blk/382
  2. バイナリ
      cvm/forth.bin

+ 3
- 5
blk/382 ファイルの表示

@@ -1,11 +1,9 @@
: .2 DUP 10 < IF SPC THEN . ;
: LIST
BLK@
16 0 DO
I 1+ .2 SPC
I 1+ DUP 10 < IF SPC THEN . SPC
64 I * BLK( + DUP 64 + SWAP DO
I C@ 0x20 MAX EMIT
I C@ DUP 0x1f > IF EMIT ELSE LEAVE THEN
LOOP
NL
LOOP
;
LOOP ;

バイナリ
cvm/forth.bin ファイルの表示


読み込み中…
キャンセル
保存