I'm still struggling to write to files or read from files in C using the LLVM-SDK.
I wrote my own library with implementations of the kernal functions open, close, setnam, ckout, bsout , etc. with the hope, that I can use those kernal functions from C. Most of the code works fine, at least is the returned error code of the 'open' call 0. But then calling 'ckout' gives always the return code 7, what means 'bad device'. I checked the code again and again without finding the quirk.
ChatGPT gave just bullshit answers (first use kernal functions, then kernal is mapped out and it is not possible to use kernal functions, you have to map it in first, etc.) and the delivered code never worked and was obviously bullshit. It took me a couple days to visit all this rabbit holes. Then I asked for the sources for the proposals and it turned out none of them, mostly just the mega65 handbooks at GitHub, included anything of the proposed. It was just 'dreamed' by chatGPT. Strange!
Now I'm really exhausted. I went into all rabbit holes I know. There seems to be a fundamental lack of knowledge on my side. Is there some speciality I have to be beware of I don't know? Or is it just not possible to use the kernal functions using the LLVM-MOS-SDK?