#C64DevMachine #Commodore64 #C64 #RetroComputing #6502Assembly #VICEEmulator #MacOS
https://theoasisbbs.com/mac-release-of-c64-dev-machine-brings-polytricitys-tool-to-macos/?fsp_sid=7129
This week on the blog: ...mostly showing my work for what fed into last week's post, actually. A line-by-line comparison of four implementations of the same function on four variously related retro architectures.
This is gonna be one of the crunchy ones that most folks will want to skip but that the folks who like it will *really* like, in my experience.
https://bumbershootsoft.wordpress.com/2026/05/09/comparing-an-lz4-decompressor-on-four-legacy-cpus/
I came up with some 6502 assembly tricks:
- make N and Z flags reflect A (no side effects): AND #$FF (used in Excitebike; alternatives: ORA #0 or EOR #0)
- make N and Z flags reflect X (no side effects*): INX & DEX (or for Y: INY & DEY)
*If your interrupt routines don't access the value of X besides preserving it.