#CC65

☮ ♥ ♬ 🧑‍💻peterrenshaw@ioc.exchange
2025-09-10

Day 2 Successful compile, .RAS to .PRG

Got done a “hello.ras” compile to #MEGA65 using #TRSE #CLI. It involved a bit of mucking around but once set up works. Key bits:

* Type Hello.ras (hw.ras) #example for MEGA65 <github.com/leuat/TRSE/blob/mas>

* Download, compile #CC65 compiler <github.com/cc65/cc65>

* Find document for TRSE CLI usage <lemonspawn.com/trse-command-li>

* Write a #ShellScript for CLI #build

* Compile and target hw.ras to hw.prg

Next test is to pass the hw.prg using the #JTAG link to the #M65 and watch it run. This also means I can stay on the CLI to build something else. 📺😊

A TRSE dialog showing funky text choice for editor and successful compile.A screen list showing the rascal, assembler and prg files.The Pascal HW example and its VIC4 exposed library methods to print a message to screen.
Olimexolimex
2025-07-23

Retro Computing Nostalgia meet Open Source Software and Hardware with AgonLight and Neo6502, the incredible evolution of modern Retro computer projects olimex.wordpress.com/2025/07/2

neo6502Agonlight
2025-07-06

A little while ago I worked on making the Apple II cc65 runtime less dependant on the target. That work is now in cc65's git and it is possible to use 80 columns, lowercase characters and MouseText characters while building for `apple2` in addition to `apple2enh`.

This allows me to ship a single floppy image for most of my projects, with binaries running on anything from the ][+ to the IIgs, and still benefit from the extended features at runtime.

colino.net/wordpress/en/archiv

#RetroComputing #cc65 #AppleII

2025-05-24

As of today, the #cc65 runtime now contains LZSA (1 and 2) and ZX02 decompressors: github.com/cc65/cc65/commit/33

#RetroComputing #cc65

2025-02-10

Разработка трёхмерного движка для Dendy/NES. Часть 1

В этой статье мы поговорим о разработке простого трёхмерного движка для консоли Dendy ( NES/Famicom ), который позволит выводить полигональные трёхмерные модели и проводить над ними базовые манипуляции (вращение, перемещение, трансформация, заливка полигонов и т. д.). В первом части мы обсудим реализацию вывода двумерных примитивов и организацию памяти в условиях ограничений NES.

habr.com/ru/companies/sberbank

#c #python #разработка_игр #nes #dendy #gamedev #ретроконсоли #3dграфика #движок_игры #cc65

2024-12-13

#vccc2024 I wasted whole day today to rewrite the challenge in #ca65 #apple2 assembly. I feel strange satisfaction of the result 😂 The binary is almost 4 times less the size of what I’ve made in #cc65 C lang.

zirias (on snac)zirias@snac.bsd.cafe
2024-12-05
I always had the idea in mind to one day code something in #C for the #C64. There's #cc65 offering a decent compiler. I always ended up with using #assembler again. That's because on that platform, it is the only way to have "full control": The OS only offers a machine code ABI (jump to routines, pass stuff in registers) and misses lots of things, so you need to program the hardware directly. Of course, I still use an assembler instead of hacking the bytes of the machine code directly.

Any Unix and similar OS comes with a C compiler, and even other systems offer a C API, so for a "modern" environment, that's the natural language to use for that "full control". And remember, C is your "portable assembler". 😏

In a nutshell, if you take "from scratch" literally, it would mean to somehow hack bytes into the machine's memory. That doesn't make much sense. I understand it as "use a simple programming language and avoid these huge frameworks and similar doing deep magical stuff for you".

CC: @modev@snac.bsd.cafe
2024-10-02

Oh my gosh I managed to compile a program for the #appleiie using #CC65!

Sort of took me a while because gosh the documentation is not easy for me to understand.

2024-07-20

Forked the repo and commited my changes to get it to build with #cc65 in case anyone else is interested.

github.com/FozzTexx/reedsolomo

#AppleII #RetroComputing #VintageComputing

2024-06-24

I’m so hooked to this, that I feel I waste my time on project, instead of doing something to earn money. At least I’m learning C as I go along. I wrote the interface part of a simple wifi manager for my serial card for #apple2 in #cc65. It is suppose to talk to zimodem firmware on the esp8266 in a way that seems native to the apple2. #retrocomputing

2024-06-11

I managed to rewrite my custom serial card firmware in #cc65 It’s way easier to work with strings in C compared to assembly. I had a minor hiccup with the pointers but I think finally got the grasp of them. Since I dont have any serial buffer but just one byte register, I found that using printf() with screen scroll actually cant catch up the serial speed. Using cputc() is doing well but no screen scroll. I ended up delaying the speed a bit on the esp8266 side and using printf(). #apple2

Felix Palmen 📯zirias@techhub.social
2024-04-30

@jos1264 Or you could just use any text editor you like (#vim works pretty fine with assembly code), one of the many cross-assemblers available (e.g. ca65 from #cc65 comes with an object-code format and a linker for that, which is awseome for organizing larger projects) and control your build with good old #make.

But hey, if using monsters based on #chromium and #javascript (vs-code) and a #java vm (kickassembler) feels "right" for you targeting this tiny old machine writing lean and efficient code ... 🤷‍♂️😏

#c64 #retroprogramming

Felix Palmen 📯zirias@techhub.social
2024-04-06

@RogerBidon @root42 That makes sense to me. TBH, I didn't even know #GCC *could* target the #mos6502 until reading your toot.

Low-level optimization will always be hard, I mean, it's hard to map C to this architecture at all (e.g. because of the very small and "global" hardware stack and a complete lack of any sp-relative addressing).

I was tempted ever so often to use C for the #C64, but always ended up writing *everything* in assembly (just using #cc65's assembler and linker, having linkable object files is super nice!).

Will take this on my ideas list to try creating a "gcc-mos6502" port for #FreeBSD 😎

Felix Palmen 📯zirias@techhub.social
2024-04-06

@RogerBidon serious question, assuming you have to write mostly "targeted" code anyways (because a #mos6502 just won't reasonably run 98% of today's existing C code), what's the edge of a #GCC targeting this platform over e.g. #cc65?

If there's a real advantage, I might be tempted to bring this to #FreeBSD...

2024-03-08

Another learning breakthrough :ablobcatrave: I’ve managed to write a small ca65 assembly program which prints text on the screen. I burnt it onto an EEPROM and started it from the #apple2 slot 5 with ‘pr#5’. It took me some time to wrap my head around how to make the memory map of the ROM but it worked and I’m so happy #retrocomputing #cc65

2024-02-14

Just fixed my #cc65 boilerplate for #apple2 Now after compiling, the makefile inserts the new #ProDos image into Virtual][ emulator (MacOS) and “brun”s the project file. This speeds up the dev process quite a lot. #retrocomputing In case anyone needs it: github.com/varna9000/cc65-temp

Felix Palmen 📯zirias@techhub.social
2024-01-09

@governa With the #CC65 compiler (#C only) already along for a long time, did anyone compare the results?
cc65.github.io/doc/cc65.html

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst