@mos_8502 When I was setting up to see what the 6502 compiler output looked like, I created a simple factorial function, and set up compiler toolchains for llvm-mos and calypsi. After comparing the generated assembly for both, I wanted something larger to work with, so I used claude with this prompt:
create a c program for the commodore 64 that bounces a sprite around the screen.
It initially generated code that used cc65 and included the c64.h file, but when it updated the Makefile, it "realized" I was using llvm-mos, so it removed the header and defined macros for all of the registers it accessed.
The code was decent, it was a single main function, kind of long, but not horrible. The sprite data it generated was a little more diamond-ish than I wanted, but when I compiled it and ran it in vice it worked.
One thing I did change in the code was that it had repeated the code to cycle the color of the sprite when it bounced, I moved that to a new function instead.