API
From SpecNext official Wiki
NextZXOS has two APIs which can be used to make ROM calls.
The NextZXOS API directly descends from the +3DOS API present in the Sinclair ZX Spectrum +2A/+2B/+3, and the IDEDOS API additionally provided with the ZX Spectrum +3e ROMs.
The esxDOS API is compatible with esxDOS 0.8.x, but contains several enhancements.
The latest reference documentation for the APIs is on the distro and Next SD card at c:/docs/NextZXOS, and online at gitlab.
The APIs are published and kept up to date for each new NextZXOS and NextBASIC release, and in Next-specific program, all ROM calls should be made through the APIs. Other code inside the ROM is not documented, and may (and does) move around between releases.