Assembler on CMM2


Author Message
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1751
Posted: 05:10pm 05 May 2026      

Hi Mick,
Thanks for your reply!
I asked because I can't recall any CSubs presented here in recent years that I found unnecessary.
I'm thinking of a short CSub by Epsilon for a CMM2 editor to enable scrolling, or a Mandelbrot program that was very fast, or the brilliant "Bad Apple" program, or even my CMM2 Game of Life, which was 50-100 times faster than the BASIC-only version.
For me, CSubs are an option; nobody is forced to use them. It's also more laborious and time-consuming than writing pure MMBasic code. Additionally, the support could be improved. I greatly appreciate the freedom to use an appropriate tool when needed.
And of course, I expect the C source code to be included when someone presents their code here. That's good practice.
I doubt that PIO assembler is a better solution in the examples mentioned above. I also doubt that the code would be easier to read than C code.

And indeed, I have written assembler code for both the ZX81 and the C64, but that was a long time ago... Incidentally, I recently finished an input routine (multi-line, up to 254 characters allowed, full cursor control), and I wondered how that's even possible in BASIC.
Regards
Michael