mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 19:38:05 +11:00
a348ee9106
The few extra bytes they save in the core aren't worth the extra complexity. This was initially done in a context where I had troubles keeping the RC2014 binary with SDC inside the 8K limit. At this point, even with the few extra bytes we add here, we're at 7200 bytes, so I'd say we're fine.
15 lines
431 B
Plaintext
15 lines
431 B
Plaintext
: UPPER DUP 'a' 'z' =><= IF 32 - THEN ;
|
|
: handle ( c -- f )
|
|
DUP '0' '9' =><= IF num 0 EXIT THEN
|
|
DUP CMD 2+ C! CMD FIND IF EXECUTE ELSE DROP THEN
|
|
0 ACC ! UPPER 'Q' = ;
|
|
: bufp ( buf -- )
|
|
DUP 64 + SWAP DO I C@ 0x20 MAX EMIT LOOP ;
|
|
: bufs
|
|
1 aty ." I: " IBUF bufp
|
|
2 aty ." F: " FBUF bufp 0 3 gutter ;
|
|
: VE
|
|
clrscr 0 ACC ! 0 PREVPOS ! contents
|
|
BEGIN status bufs setpos KEY handle UNTIL
|
|
19 aty (infl) ;
|