AgonConsole8 / agon-mos

Official AGON QUARK Firmware for Console8: eZ80 MOS
MIT License
31 stars 10 forks source link

Implement missing ffs API calls #92

Open stevesims opened 1 month ago

stevesims commented 1 month ago

We have blocked out in MOS a bunch of API calls to expose fatfs functionality. The jump table for fatfs API calls can be found in mos_api.asm at the label mos_api_block2_start:. Many of these API calls however currently return a "not implemented" result.

The following API calls are defined in our API, but not yet implemented:

NB is may not be appropriate to implement all of these calls. Some such as ffs_api_fputc essentially replicate functionality of existing mos_ APIs, and therefore would be low priority to implement. Some refer to fatfs functionality that our configuration on the Agon does not use, and therefore are already correctly returning "not implemented". Additionally some calls may require more arguments than we can readily accept with the eZ80's limited register set. We may/probably need to define a standard ABI for such calls requiring extra arguments.