# Create a DOS formatted ADF with the executables import struct import os def create_dos_adf(): # Create empty ADF adf = bytearray(880 * 1024) # Write DOS bootblock (non-bootable) # "DOS\0" magic adf[0:4] = b'DOS\x00' # Checksum = 0 (non-bootable) struct.pack_into('>I', adf, 4, 0) # Root block at 880 struct.pack_into('>I', adf, 8, 880) # For simplicity, we'll create a minimal filesystem # This is complex, so let's just note that the user should use # WinUAE's "Add Directory" feature instead print("Note: Creating a proper ADF filesystem is complex.") print("Use WinUAE's 'Add Directory or Archive' feature instead:") print("1. Settings → Hard drives → Add Directory") print("2. Select: c:/Users/capitano/Documents/giochino") print("3. Device Name: DH0") print("4. Volume Name: GIOCHINO") print("5. Start WinUAE") print("6. The folder will appear as a hard drive in Workbench") if __name__ == '__main__': create_dos_adf()