isotherm / betawise

Tools to create applets for the AlphaSmart NEO / NEO2.
MIT License
39 stars 4 forks source link

Research, document, and implement file management functions #5

Open isotherm opened 3 years ago

isotherm commented 3 years ago

Each applet is able to store its own files of dynamic size, though most applets' files are hidden from the UI. The ability to create, find, open, read, write, and resize files is essential to many use cases.

As one example, EhBASIC is currently using 64kB of statically allocated RAM for both interpreter and program storage, and it cannot LOAD or SAVE programs. The ability to deal with files would greatly reduce the static memory requirement as well as provide an easy way to run a variety of software.

The two subtasks for this issue are:

  1. Document the filesystem structures sufficiently to permit debugging
  2. Locate and document the system calls dealing with files

Depends on #6 in order for file operations to be reliable.