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/

#retrocomputing #z80 #6502assembly #8086assembly #intel8080

Comparing an LZ4 Decompressor on Four Legacy CPUs

A few years ago, I needed to save some cartridge space in a SNES project, and I did so by compressing that data with the LZ4 compression algorithm from 2012. I found that working within the constra…

Bumbershoot Software

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.

#6502assembly #6502_assembly