Skip to content

Instantly share code, notes, and snippets.

@infval
infval / qd2fds.py
Last active December 4, 2023 01:09 — forked from einstein95/qd2fds.py
Converts between QD and FDS disk images (Family Computer Disk System / Famicom)
#!/usr/bin/env python3
"""
Converts between QD and FDS disk images
"""
import struct
def create_fds_header(side_count):
return b"FDS\x1A" + bytes([side_count & 0xFF]) + bytes(11)