Creating a Human68k utility to split and join files across disks
The Sharp X68000 was built around the Motorola 68000 and Human68k, the operating environment behind thousands of Japanese games, demos and utilities. Its floppy workflow still matters to collectors who exchange disks, preserve abandonware and keep original hardware usable rather than hiding it behind emulation alone.
Creating a Human68k utility to split and join large files across multiple disks turns an inconvenient limitation into a repeatable archive process. The splitter breaks a source into ordered volumes; the joiner validates those volumes and reconstructs the original with a checksum. Both operations need more care than a simple copy because old media, FAT limitations and Human68k memory constraints shape every design decision.
Before writing code, define what success means: every byte must be recoverable, a damaged disk must be identifiable, and an interrupted session must not destroy completed work. The format should also open cleanly on a modern machine, allowing a PC, Mac or Unix host to inspect the same archives years later.
X68K.NET already records practical X68000 maintenance and preservation work. Its X68000 preservation notes provide a suitable home for the utility’s source, release notes and media templates, giving community members one stable place to find the tool and report results from real disks.
Why disk spanning remains useful
Disk geometry sets the first boundary. A 2DD disk provides 737,280 bytes when formatted, while a 2HD disk provides 1,474,560 bytes before the Human68k filesystem takes its own space. Large software images, tape rips and data archives can exceed either capacity, so the archive tool must calculate payload room from the actual free space instead of assuming a round number.
The hardware adds uncertainty. Drives from the late 1980s may need cleaning, lubrication and repeated calibration, and a marginal sector can fail only after a long read. Retrying is useful, but the utility should report repeated errors rather than hide them behind a generic copy failure. Checksums then distinguish a valid retry from silent corruption.
Australian collectors face a particular supply issue. Sydney and Melbourne retro-computing groups regularly trade X68000 parts, yet local 5.25-inch media is scarce because 3.5-inch disks became dominant here long ago. Most usable 2HD stock now arrives through specialist importers or overseas sellers, making durable packaging and accurate disk labelling unusually important.
Designing a durable chunk format
Choose simple naming and a self-describing header. Outputs such as PART.001, PART.002 and PART.003 obey the usual 8.3 Human68k filename convention. If a source base name is too long, shorten it deterministically and retain the full name in the header. Every chunk should carry a fixed-size header containing a magic value, format version, part number, total part count, original file size, payload length and checksum fields.
Store integers in a documented byte order and encode them field by field; never cast a disk header directly onto a native C structure. That avoids alignment surprises and keeps the format comprehensible to a modern reader. The original filename is metadata, not a path, so restoring a file cannot accidentally overwrite an unrelated directory tree.
A CRC-32 value for each payload catches routine read and write damage, while a whole-file CRC provides a final equality check after reassembly. CRC-32 is not an authenticity signature, so an optional SHA-256 value can be added for archives that need stronger tamper evidence. Reject illegal sequence numbers, oversized headers and impossible part counts before any output file is created.
Building a compact Human68k executable
The program should be a small C executable built with an original Human68k compiler or a maintained cross-compiler, depending on what is available to the project. Keep the release free of runtime libraries that are difficult to install on a period machine. A command-line tool suits the Human68k shell and can be reproduced on emulators before it reaches scarce floppy media.
Keep the syntax plain enough to remember at a command prompt:
H68SPLT split GAME.DAT PART 1400000
H68SPLT join PART.001 RESTORED.DAT
H68SPLT verify PART.001
The size argument represents payload bytes, and the utility should print the actual number of volumes required before writing.
Implementation details matter because the 68000 is not a modern workstation. Stream the source in small blocks, avoid loading a whole image into RAM, and use fixed-width integer types where the compiler provides them. Check every addition and multiplication for overflow. Separate command parsing from file handling so the same core can serve split, join and verify operations, and return distinct exit codes for missing files, bad media and checksum mismatches.
Preparing disks and handling media changes
Prepare each disk in a known state: format it, copy one chunk, flush the file, then read it back and verify the stored checksum. Label both sides with the archive base name, part number and total count. Manual copying is often safer than letting a fading drive perform formatting, writing and immediate verification in one uninterrupted session.
For a multi-disk archive, write and verify one volume before moving to the next. The utility should refuse to overwrite an existing output unless explicitly told to do so, and it should keep completed parts untouched after a disk error. When only one floppy drive is fitted, the source can live on an upgraded memory card or hard-disk image while the drive changes media.
Storage conditions matter in Australia. Brisbane’s summer heat and humidity can encourage mould, warped jackets and sticky surfaces, so archival disks belong in a dry cupboard rather than a garage or car. When collectors post media, rigid packaging inside a tracked courier parcel or an Australia Post Registered Post item is a common habit; bent or crushed disks can otherwise damage the archive before anyone receives it.
Joining chunks into the original file
The join operation should begin with PART.001, read its header and derive the base name, then request each subsequent part in order. Check the magic value, version, part number and payload length before appending data. If PART.003 is missing, the tool must stop and identify that exact gap instead of producing a plausible but incomplete file.
Write the restored data to a temporary file and only rename it after the calculated size and whole-file CRC match the values stored in the headers. This prevents a failed join from masquerading as a valid result. A verifier subcommand should also let a collector confirm disks without rebuilding the file, which is valuable when several people share one archive.
After validation, the recovered file can be copied to protected storage, mounted as an image or compared with an external SHA-256 digest. Keep the original disk set until that independent check is complete. The tool should never rename or erase members of the source set, since a future reader may need it as the only surviving witness to the transfer.
Testing the splitter and joiner
Test the format with a matrix rather than a single large file: zero-length input, a file smaller than one chunk, exact boundary cases, many chunks, maximum 8.3 names and deliberately damaged headers. Run the same corpus through the original compiler, a cross-compiled build and a modern reference implementation. Byte-for-byte comparison is the final test, not a successful exit message alone.
Real-machine testing adds facts an emulator cannot. Exercise both 2DD and 2HD media if available, swap disks repeatedly, fill the source volume near capacity and simulate a write error or forced reboot. Clean the drive only with suitable materials, and record which drive, controller and disk revision produced each result. Those details make later failures reproducible.
CRC-32 should be described accurately as an integrity check against accidental corruption, not as protection against a determined editor. If authenticity matters, calculate a SHA-256 digest on a trusted modern system and publish it through a separate, trusted channel. The X68000 can still perform the checksum work, but slow cryptographic hashing may justify doing that final step off-platform.
Sharing the tool with the community
Release the utility as source plus a tested Human68k executable, a plain-text manual, sample command transcripts and a checksum for each download. Include the format specification, compiler version and known drive quirks. A permissive licence lets hobbyists inspect, repair and port the code while still protecting the author’s name and release history.
If a paid source package or support bundle is offered, Australian Consumer Law applies to the transaction. State compatibility, delivery method and refund terms clearly, and display Australian-dollar prices consistently with Australian GST rules. Commercial X68000 software must not be bundled without permission: the archive utility is neutral infrastructure, while the copyright owner or archivist controls access to protected titles.
Preservation works best when several copies exist in different cities and formats. A source archive, binary release and specification can live on X68K.NET while mirrors carry identical files, and each release can carry a dated identifier rather than overwriting H68SPLT.EXE. Community testing on original silicon, modified drives and emulators turns a private script into a maintained piece of X68000 tooling.
Start with a small implementation that splits, verifies and rejoins one test archive on a filesystem-backed emulator. Then repeat it with real 2HD media, deliberately swap disks and publish the first format version with complete documentation. A working, dependable tool that archivists trust is more valuable than a clever interface that obscures damaged bytes.
Use the published specification and command examples, compare checksums after every transfer and report failures with the exact part number and error type. Those reports will guide better drive handling, error recovery and format revisions. Sharing tested media, source changes and field observations keeps the X68000 community’s practical knowledge alive for the next generation of collectors.
Nereid-X Expansion Board
A personally-produced LAN+USB+Memory expansion board for Sharp X68000 series computers. Multiple production runs were offered, including a final batch and a later revival reproduction run.
Power Supply Repair
X68 power supply repair and modification services were offered by the site owner, with documentation shared through diary entries spanning 2001–2006.
Server & Networking
Notes on FreeBSD administration, ISP changes, server migration, and networking topics. The site itself ran on FreeBSD with the hns diary system and Namazu search integration.
Get in touch
X68K.NET connects Sharp X68000 enthusiasts through community links and shared projects. Reach out with questions about the Nereid project or X68 resources.