SYS calls

Here you can talk about anything related to BBC BASIC, not covered in another category
Ric
Posts: 200
Joined: Tue 17 Apr 2018, 21:03

SYS calls

Post by Ric »

Morning All

I would like to port one of my programs from BB4W to BBCSDL, however it is littered with SYS calls and has failed at the first one!
Assuming that this is the case for the rest of the program the porting is going to be very difficult. As a start, is there a list of equivalent SYS calls for BBCSDL opposed to BB4W?

Thanks for the help
Kind Regards Ric.

6502 back in the day, BB4W 2017 onwards, BBCSDL from 2023
Richard Russell
Posts: 272
Joined: Tue 18 Jun 2024, 09:32

Re: SYS calls

Post by Richard Russell »

Ric wrote: Mon 08 Apr 2024, 10:01Assuming that this is the case for the rest of the program the porting is going to be very difficult.
If you do not mind your program still being Windows-specific, even though it is running in BBCSDL, many Win32 SYS calls can still be used successfully. I don't recommend this approach, because it means you miss out on one of the main benefits of BBCSDL - the ability for programs to run on multiple platforms without modification - but it remains an option and can be a useful stepping-stone.
is there a list of equivalent SYS calls for BBCSDL opposed to BB4W?
The Accessing the SDL 2.0 API section of the BBCSDL Help documentation lists some of the common replacements for the calls used in the similar Accessing the Windows API section of the BB4W Help Documentation. Otherwise, it's a case of browsing the SDL2 documentation in the same way as you presumably browsed the Windows documentation originally to discover the SYS calls you used then.