The SYS calls are automatically generated by scripts. In general they call the SDK functions with the same name.The RPi Pico incorporates a couple of useful hardware specialties that Basic needs SYS commands for. Unfortunately only (USB)serial and GPIO are somewhat documented, but no I2C and SPI examples are given. These are machine specific tools. The appropriate SYS files are probably included in the UF2. Checking the console file I counted 1080 SYS commands, but how are these to be used?
https://www.raspberrypi.com/documentation/pico-sdk/
In particular, the arguments and so forth are all the same. It's just a matter of figuring out how the BBC Basic and C data types match up.
As far as I know, no systematic test of the SDK functions has been made to determine which ones are useful and how. Thus, there are likely functions in the automatically generated symbol table that aren't much use, at least directly from a Basic program.
Note it's been some time since I've worked with the codebase so things may have changed. If anything I've said is wrong or can be improved on I'm happy for a follow-up to this post.
Statistics: Posted by ejolson — Sat Jan 27, 2024 1:11 am