Reusable Python C64/SID emulation-core components: 6502 CPU handling, memory banking, CIA and VIC-II helpers, SID chip logic, timing, playback, capture, and analysis primitives. It is a focused library project; use c64-sid-py for end-user inspection, rendering, and export commands.
python3 -m pip install .The package has no runtime dependencies beyond the Python standard library.
from pathlib import Path
from c64sid_core import C64System, SidChip, parse_sid_header
header, program = parse_sid_header(Path("music.sid").read_bytes())
system = C64System()
sid = SidChip(header.clockFreq)The package exposes C64System, Cpu6502, MachineTiming, SidChip, and
parse_sid_header. Lower-level CIA, VIC-II, memory, playback, SID-PRO, and
analysis modules remain available under c64sid_core for advanced users.
PYTHONPATH=src python3 -m unittest discover -s tests -v
ruff check src tests| Path | Purpose |
|---|---|
src/c64sid_core/ |
Maintained standalone package |
tests/ |
Core import, parser, SID, and waveform-resource checks |
reference/sid/ |
Original imported snapshot retained for provenance |
STATUS.md |
Reference snapshot remediation record |
The maintained package is intentionally separated from the original snapshot. The reference tree still documents the incoming source and its historical limitations; it is not imported, packaged, or claimed as supported runtime code.
Copyright © 2026 Ulf Bertilsson. This project is licensed under the GNU General Public License v3.0 or later.