Created Hardware: Floppy Drive (markdown)

Simon Fortier 2017-11-14 19:58:13 -05:00
parent 954cc4338e
commit 430eec7633

22
Hardware:-Floppy-Drive.md Normal file

@ -0,0 +1,22 @@
Apachicorp's floppy drive offers a simple long-term storage solution for your data and greatly facilitates software sharing!
### Specifications
Manufacturer: Apachicorp
Version: 1.0B
Default address: `0x000B`
Hardware ID: `0x000B`
The players can upload their own binary data to a floppy disk or download to a file using the floppy buttons in the editor.
Floppies contains 80 tracks with 18 sectors per track. That's 1440 sectors of 512 words. (total 1,474,560 bytes / 737,280 words / 1.44MB)
### Interrupt Behavior
| Value of A | Action | Energy cost | Result |
| --- | --- | --- | --- |
| `1` | `POLL` | `0 kJ` | Get the status of the drive (`READY` = `0`, `NO_MEDIA`=`1`) |
| `2` | `READ_SECTOR` | `1 kJ` | Reads sector X to CPU ram starting at address Y |
| `3` | `WRITE_SECTOR` | `1 kJ` | Writes sector X from CPU ram starting at Y |
Read and write operations are synchronous. Track seeking time is 2ms.*
_*Seek time is added to the total execution time, which is not yet calculated as of v1.3a_