2020-09-22 04:40:53 +10:00
|
|
|
: UPPER DUP 'a' 'z' =><= IF 32 - THEN ;
|
2020-06-07 21:25:02 +10:00
|
|
|
: handle ( c -- f )
|
|
|
|
DUP '0' '9' =><= IF num 0 EXIT THEN
|
|
|
|
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
|
2020-06-11 06:54:36 +10:00
|
|
|
0 ACC ! UPPER 'Q' = ;
|
2020-06-07 21:25:02 +10:00
|
|
|
: bufp ( buf -- )
|
2020-11-14 07:52:12 +11:00
|
|
|
DUP 3 col- + SWAP DO I C@ 0x20 MAX EMIT LOOP ;
|
2020-06-07 21:25:02 +10:00
|
|
|
: bufs
|
|
|
|
1 aty ." I: " IBUF bufp
|
2020-11-14 07:52:12 +11:00
|
|
|
2 aty ." F: " FBUF bufp
|
|
|
|
large? IF 0 3 gutter THEN ;
|
2020-06-12 10:31:18 +10:00
|
|
|
: VE
|
2020-11-14 07:19:00 +11:00
|
|
|
clrscr 0 ACC ! 0 PREVPOS ! nums contents
|
2020-06-07 21:25:02 +10:00
|
|
|
BEGIN status bufs setpos KEY handle UNTIL
|
2020-06-12 11:52:08 +10:00
|
|
|
19 aty (infl) ;
|