mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 02:31:01 +11:00
838c88459b
Otherwise, when editing a file with VE, we would constantly write to disk, which is a bit inefficient.
15 lines
206 B
Plaintext
15 lines
206 B
Plaintext
: BLK! ( -- )
|
|
BLK> @ BLK!* @ EXECUTE
|
|
0 BLKDTY !
|
|
;
|
|
: FLUSH BLKDTY @ IF BLK! THEN ;
|
|
: BLK@ ( n -- )
|
|
DUP BLK> @ = IF DROP EXIT THEN
|
|
FLUSH DUP BLK> ! BLK@* @ EXECUTE ;
|
|
|
|
: BLK!! 1 BLKDTY ! ;
|
|
|
|
|
|
|
|
|