mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-14 14:58:05 +11:00
f6ded7712e
This is the first commit I do entirely in VE. It's a habit I'm planning on taking as it helps a lot to find usability issues.
17 lines
278 B
Plaintext
17 lines
278 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 + ;
|
|
|
|
|
|
|
|
|
|
|
|
|