This commit is contained in:
Kartik K. Agaram 2021-10-26 22:10:04 -07:00
parent 9c952560da
commit 85fe614cd9
2 changed files with 7 additions and 6 deletions

2
mu.md
View File

@ -531,7 +531,7 @@ The result of a `compute-offset` statement can be passed to `index`:
var/reg: (addr T) <- index arr/reg: (addr array T), idx/reg: (offset T) var/reg: (addr T) <- index arr/reg: (addr array T), idx/reg: (offset T)
``` ```
### Stream operations ### Streams
A common use for arrays is as buffers. Save a few items to a scratch space and A common use for arrays is as buffers. Save a few items to a scratch space and
then process them. This pattern is so common (we use it in files) that there's then process them. This pattern is so common (we use it in files) that there's

View File

@ -238,11 +238,12 @@ Mu doesn't currently support interrupt-based mouse events.
#### persistent storage #### persistent storage
`load-sector` synchronously reads a single _sector_ from a _disk_ of persistent `read-ata-disk` synchronously reads a whole number of _sectors_ from a _disk_
storage. The disk must follow the ATA specification with a 28-bit sector of persistent storage. The disk must follow the ATA specification with a
address. Each sector is 512 bytes. Therefore, Mu currently supports ATA hard 28-bit sector address. Each sector is 512 bytes. Therefore, Mu currently
disks of up to 128GB capacity. supports ATA hard disks of up to 128GB capacity.
Similarly, `store-sector` synchronously writes a single sector to disk. Similarly, `write-ata-disk` synchronously writes a whole number of sectors to
disk.
Mu doesn't currently support asynchronous transfers to or from a disk. Mu doesn't currently support asynchronous transfers to or from a disk.