This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |