sonic2-w.68k introduces a priority-slicing system. The code is only 68k assembly, but it uses a trick with the MOVEM instruction to save the entire register state in just 14 clock cycles.
The "W" might actually stand for
The file is labeled simply: .