CX16 Programming and Coding in C Guide/Tutorial

All aspects of programming on the Commander X16.
mobluse
Posts: 175
Joined: Tue Aug 04, 2020 2:16 pm
Location: Lund, Sweden
Contact:

Re: CX16 Programming and Coding in C Guide/Tutorial

Post by mobluse »

It says
Latest Emulator Download (r42)
Download the r42 or r41 version of the emulator.
But we are on R43 since May 17. How does the examples work in R43?
X16&C64 Quiz: Try It Now! Huge Char Demo: Try It Now! DECPS: Try It Now! Aritm: Try It Now!
mwiedmann
Posts: 70
Joined: Fri Jan 20, 2023 2:21 am
Location: New York City

Re: CX16 Programming and Coding in C Guide/Tutorial

Post by mwiedmann »

Seems to be fine with r43. I haven't run them all but there were no breaking changes that would (should?) effect anything in the repo.
10?CHR$(147)
Posts: 3
Joined: Mon Jun 26, 2023 3:12 am

Re: CX16 Programming and Coding in C Guide/Tutorial

Post by 10?CHR$(147) »

Hi, I'm running the score code sample in Chapter 19 and it appears to be reading HIGH.BIN properly but not saving. Any thoughts?
2023-08-05.png
2023-08-05.png (26.14 KiB) Viewed 4690 times
The only change I made to the code was to add the following line after the cbm_k_save call to see if there was an error code.

Code: Select all

printf("cbm_k_readst() = %c\n", cbm_k_readst());
mwiedmann
Posts: 70
Joined: Fri Jan 20, 2023 2:21 am
Location: New York City

Re: CX16 Programming and Coding in C Guide/Tutorial

Post by mwiedmann »

Sorry...been away. Interesting. I just tried it again and its _seems_ to work. I tried it with r42 and r43 of the emulator. I'm on a MAC. It could be something with the "@" filename prefix needed to overwrite the file? I had to learn that from someone as it doesn't seem to be documented. Maybe there is a caveat to that?
Attachments
highscore.jpg
highscore.jpg (70.31 KiB) Viewed 2528 times
Post Reply