mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-28 08:58:07 +11:00
f023f9bcb4
With all this recent movements, we had a bit of a fragmentation issue.
14 lines
298 B
Plaintext
14 lines
298 B
Plaintext
: BLKMEM+ 0x59 RAM+ @ + ;
|
|
( n -- Fetches block n and write it to BLK( )
|
|
: BLK@* 0 BLKMEM+ ;
|
|
( n -- Write back BLK( to storage at block n )
|
|
: BLK!* 2 BLKMEM+ ;
|
|
( Current blk pointer in ( )
|
|
: BLK> 4 BLKMEM+ ;
|
|
( Whether buffer is dirty )
|
|
: BLKDTY 6 BLKMEM+ ;
|
|
: BLK( 8 BLKMEM+ ;
|
|
: BLK) BLK( 1024 + ;
|
|
|
|
|