Search found 490 matches

by svenvandevelde
Wed Oct 25, 2023 4:08 pm
Forum: Official Software
Topic: X16 VERA, SMC and ROM update program!
Replies: 2
Views: 5216

Re: X16 VERA, SMC and ROM update program!

Hello, Please find attached a VERA card rescue kit, created for those who accidentally brick their CX16 by uploading a wrong VERA.BIN file, or who have had issues with the Commander X16 flasher tool, bricking their VERA. It works with the Arduino Nano ESP32 , the model that contains headers! The Ard...
by svenvandevelde
Tue Oct 24, 2023 6:07 am
Forum: Official Software
Topic: X16 VERA, SMC and ROM update program!
Replies: 2
Views: 5216

X16 VERA, SMC and ROM update program!

Hello, This program updates the VERA, SMC and ROMs firmware on your Commander X16. https://github.com/FlightControl-User/x16-flash/releases The CX16 update program has been well tested. Attached on the release page, you will find the artefacts of .BIN file versions for the ROM releases the R43, R44 ...
by svenvandevelde
Thu Jun 01, 2023 12:19 pm
Forum: Programming
Topic: KICK C and the 65C02 CPU - A double linked list without pointers.
Replies: 15
Views: 8291

Re: KICK C and the 65C02 CPU - A double linked list without pointers.

I use the trick of "segmentation". So when there are more data elements than that can fit into a 255 element list, i define multiple of such lists identifiable by a segment id. In such way, absolute indexed addressing is used but this only works if you can clearly segregate the element typ...
by svenvandevelde
Wed May 31, 2023 6:48 pm
Forum: Programming
Topic: KICK C and the 65C02 CPU - A double linked list without pointers.
Replies: 15
Views: 8291

Re: KICK C and the 65C02 CPU - A double linked list without pointers.

I would be genuinely curious to know what KickC generates. Granted, this is before enabling optimization flags, but even with optimizations enabled I think cc65 is way too eager to fall into 16-bit "pointer arithmetic" even though we just have a bunch of global arrays. I'll admit that I t...
by svenvandevelde
Wed May 31, 2023 6:17 am
Forum: Programming
Topic: KICK C and the 65C02 CPU - A double linked list without pointers.
Replies: 15
Views: 8291

Re: KICK C and the 65C02 CPU - A double linked list without pointers.

Thank you very much! This is a very interesting technique to solve the problem and I will test this myself! Will also try this using kickc which for sure will compile this properly!

Amazing contribution to this thread! My hat off to you! It is such replies that really bring value to us all!

Sven
by svenvandevelde
Tue May 30, 2023 7:29 pm
Forum: Programming
Topic: KICK C and the 65C02 CPU - A double linked list without pointers.
Replies: 15
Views: 8291

Re: KICK C and the 65C02 CPU - A double linked list without pointers.

Very interesting. Would you mind to elaborate a bit further on the technique u used? Maybe with an example?
by svenvandevelde
Sun May 28, 2023 9:10 am
Forum: Official Announcements
Topic: Release 43: Stockholm
Replies: 3
Views: 6595

Re: Release 43: Stockholm

I don't understand the context of the self programmer and Arduino.
by svenvandevelde
Thu May 11, 2023 6:10 am
Forum: Programming
Topic: KICK C and the 65C02 CPU - A double linked list without pointers.
Replies: 15
Views: 8291

KICK C and the 65C02 CPU - A double linked list without pointers.

So as you've seen in the previous articles, developing in C using pointers have the risk to produce code that is not well tuned for the 65C02 processor. The 65C02 is an 8 bit processor. Where possible, try to write code that produces code using absolute indexed addressing. To achieve this, use struc...
by svenvandevelde
Mon May 08, 2023 4:48 am
Forum: Programming
Topic: KICK C and the 65C02 CPU - Applying pointers
Replies: 6
Views: 3067

Re: KICK C and the 65C02 CPU - Applying pointers

ah :-) ... I hope the topics highlighted are of use (to you). Just remind that there are other ways to avoid pointers, just scratching the surface. Actually, the compiler could use those techniques in the optimizer to avoid indirect indexed addressing, but it doesn't at the moment. There is tons of ...