Hi all,
I am the author of the KickC optimizing C-compiler. The newest release 0.8.3 adds support for MEGA65.
This includes support for the 45GS02 and 65CE02 CPU's utilizing the Z-register, new instructions and new addressing modes when generating and optimizing the code.
KickC does not currently utilize the virtual 32bit register because the Xemu emulator does not support it - and Xemu is currently the only way I have for testing.
The compiler includes some example mega65 program that demonstrate DMA and a memory-mapped SID being played in an IRQ.
It also includes a complete rewrite of the raster65.asm demo in C. See https://gitlab.com/camelot/kic…xamples/mega65/raster65.c
The compiler includes H-files for most of the chipset of the Mega65, including DMAgic and VIC-III/IV in #include <mega65.h>
.
KickC currently only has a subset of the C standard library. It does support conio.h and I have added support for both 40 column and 80 column modes on the MEGA65.
To test it out download it here https://gitlab.com/camelot/kickc/-/releases and unzip it.
If you have the HMW-version of Xemu installed and available in your PATH you can compile and execute the raster65.c demo using the following command (screenshot of the running demo below)
./kickc_0.8.3/bin/kickc.sh -e kickc_0.8.3/examples/mega65/raster65.c
I would very much appreciate it if someone could test the example programs on a real MEGA65. I have ordered a DevKit, but currently I can only test using Xemu.
Please let me know if it works for you, and also let me know if you run into any problems or miss any particular features.
/Rex of Camelot