1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-05 23:30:54 +11:00
collapseos/blk/126

13 lines
407 B
Plaintext
Raw Normal View History

2020-06-05 00:39:59 +10:00
CREATE CMD 2 C, '$' C, 0 C,
VARIABLE PREVPOS
: acc@ ACC @ 1 MAX ;
2020-06-05 00:39:59 +10:00
: num ACC @ SWAP _pdacc IF DROP ELSE ACC ! THEN ;
: nspcs ( n -- , spit n space ) 0 DO SPC LOOP ;
: aty 0 SWAP AT-XY ;
: clrscr LINES 0 DO i aty COLS nspcs LOOP ;
: status 0 aty ." BLK" SPC BLK> ? SPC ACC ?
SPC EDPOS @ 64 /MOD . ',' EMIT . 10 nspcs ;
: contents 3 aty BLK> @ LIST ;
2020-06-05 02:04:13 +10:00
: selblk BLK@ contents ;
: mode! ( c -- ) 63 0 AT-XY ;