Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
705B

  1. Disk blocks
  2. Disk blocks are Collapse OS' main access to permanent storage.
  3. The system is exceedingly simple: blocks are contiguous
  4. chunks of 1024 bytes each living on some permanent media such
  5. as floppy disks or SD cards. They are mostly used for text,
  6. either informational or source code, which is organized into
  7. 16 lines of 64 characters each.
  8. Blocks are referred to by number, 0-indexed. They are read
  9. through BLK@ and written through BLK!. When a block is read,
  10. its 1024 bytes content is copied to an in-memory buffer
  11. starting at BLK( and ending at BLK). Those read/write
  12. operations are often implicit. For example, LIST calls BLK@.
  13. (cont.)