kimdos
Commodore serial bus (IEC) disk access for the KIM-1, PAL-1/PAL-II and other replicas: a 6502 library, and a shell built on it, that load and save CBM DOS files on a 1541, an SD2IEC/uIEC or anything else that speaks the bus, with JiffyDOS for devices that have it. Written from the protocol, not from Commodore's code.
The library uses no zero page, preserves the user port's spare bits, and links anywhere with ld65; an llvm-mos C version comes with a KIM-1 platform for that compiler. The shell runs over the monitor's TTY:
KIMDOS
>S PROG,2000,290D
00, OK,00,00
>L PROG,4000
$4000-$490D
>$
1 " " 32 2A
10 "PROG" PRG
65535 BLOCKS FREE.
>S PROG,2000,2001
63,FILE EXISTS,00,00
Install
pip install kimdos
kimtape load --port /dev/ttyUSB0 https://github.com/anarkiwi/kimdos/releases/latest/download/kimdos-2000.ptp --go 2000
Each release has the shell at $0400, $2000 and $C000 (kimdos-<org>.ptp,
.bin, .lbl), also in the package (kimdos.build.packaged); it needs
about 2.5K of RAM there. The package ships the llvm-mos C library:
python -m kimdos.clib prints its directory.
To build, with cc65: make ORG=2000 writes build/kimdos-2000.{bin,ptp,lbl,map}
and build/kimdos.lib; make clib builds build/c/libkimdos.a with llvm-mos
in docker.
Shell
| Command | |
|---|---|
$[pattern] |
directory, e.g. $, $0:A* |
@ |
drive status |
@command |
DOS command, e.g. @S:OLD, @R:NEW=OLD, @CD:GAMES |
L name[,addr] |
load, to the file's own address or to addr |
V name[,addr] |
verify against memory |
S name,start,end |
save start-end inclusive; @0:name replaces |
#[device] |
show or set the device number (decimal, default 8) |
J[0|1] |
show, or turn off or on, JiffyDOS (default on) |
Q |
return to the monitor; G then runs what was loaded |
Names may be quoted. From the keypad, put the KIM tape ID in $17F9 and run
ORG+3 to load the file named by its two hex digits, or set $17F5-$17F8 as
for a tape save and run ORG+6 to save.
Simulator
kimdos sim --dir ./disk # the shell against .prg files in ./disk
kimdos sim --no-jiffy # against a drive without JiffyDOS
kimdos bench # cycles per byte and JiffyDOS margins
kimdos board --port /dev/ttyUSB0 --install '$' '@'
Documentation
- docs/hardware.md — the adapter and its wiring
- docs/library.md — linking the library into a program, the API
- docs/clibrary.md — the llvm-mos C library and KIM-1 platform
- docs/protocol.md — the bus protocol as implemented
- docs/development.md — tests, the simulator, releases
Metadata
Release files for kimdos 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kimdos-0.3.0.tar.gz | 60.2 kB | With provenance | Details for kimdos-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kimdos-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for kimdos-0.3.0-py3-none-any.whl |
Total release size: 117.8 kB
Release files / kimdos-0.3.0.tar.gz
| Download URL | kimdos-0.3.0.tar.gz |
|---|---|
| Size | 60.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ba1d8a0de2a154c4a4644a1f02f17137e911f97fc3b226ecb112f114b0063b4
|
|
BLAKE2b-256 checksum How to use checksums |
dab2499252d78e2e790bae8914cb5bea477c352dad4410895fb0d365cc08a598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / kimdos-0.3.0-py3-none-any.whl
| Download URL | kimdos-0.3.0-py3-none-any.whl |
|---|---|
| Size | 57.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddbf2b35f72503964ef313e3e70e81e4092705c4866b2dbcf9ab0b1a2f6bb24f
|
|
BLAKE2b-256 checksum How to use checksums |
b3c0f9dc8bd33ac6d9132df7592157281ac86e1d28e113583273b773e7efefcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for kimdos 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kimdos-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.