mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 17:40:56 +11:00
bd38d80f9c
and renamed it "Core words". Also, reworded the presentation.
13 lines
274 B
Plaintext
13 lines
274 B
Plaintext
( n -- Fetches block n and write it to BLK( )
|
|
: BLK@* 0x34 RAM+ ;
|
|
( n -- Write back BLK( to storage at block n )
|
|
: BLK!* 0x36 RAM+ ;
|
|
( Current blk pointer in ( )
|
|
: BLK> 0x38 RAM+ ;
|
|
( Whether buffer is dirty )
|
|
: BLKDTY 0x3a RAM+ ;
|
|
: BLK( 0x3c RAM+ @ ;
|
|
: BLK) BLK( 1024 + ;
|
|
|
|
|