2020-05-02 21:47:32 -04:00
|
|
|
: BLK! ( -- )
|
|
|
|
BLK> @ BLK!* @ EXECUTE
|
2020-09-21 14:40:53 -04:00
|
|
|
0 BLKDTY ! ;
|
2020-05-02 21:47:32 -04:00
|
|
|
: FLUSH BLKDTY @ IF BLK! THEN ;
|
|
|
|
: BLK@ ( n -- )
|
|
|
|
DUP BLK> @ = IF DROP EXIT THEN
|
2020-06-11 21:42:52 -04:00
|
|
|
FLUSH DUP BLK> ! BLK@* @ EXECUTE ;
|
2020-05-02 21:47:32 -04:00
|
|
|
: BLK!! 1 BLKDTY ! ;
|
2020-09-21 14:40:53 -04:00
|
|
|
: WIPE BLK( 1024 0 FILL BLK!! ;
|
|
|
|
: WIPED? ( -- f )
|
|
|
|
1 ( f ) BLK) BLK( DO
|
|
|
|
I C@ IF DROP 0 ( f ) LEAVE THEN LOOP ;
|
|
|
|
: COPY ( src dst -- )
|
|
|
|
FLUSH SWAP BLK@ BLK> ! BLK! ;
|