XEMAG 1.0

From Software Archive
Revision as of 13:13, 24 November 2026 by Enigma (talk | contribs) (Tracks 2 and 34: more titles confirmed)
Jump to navigation Jump to search

XEMAG 1.0

This analysis is based on the state of the wiki from 24 Nov 2026.

XEMAG 1.0 is the name used on this wiki for the first protection of the duplicator Xemag, on US releases of Penguin Software, Hayden, Strategic Simulations and Brøderbund from 1983 to 1985. The disks do not carry a version number: the duplicator text on them reads XEMAG GENERIC - CBM 64 PRT (DUP) or names the tracks (PRT TK 2-3, PRT TK 2-34). The later protection of the same duplicator is XEMAG 2.0.

The disk is a normal CBM DOS disk on which two tracks give read errors on purpose.

In short: every data block of track 2 has a wrong checksum and every header of track 3 (Brøderbund: track 34) has a wrong checksum. The program reads one sector of each track with a DOS command and needs the error codes 23 and 27.

The disk

Track Content Error of CBM DOS
2 21 sectors with good headers; the checksum of every data block is wrong 23 (read error, also shown as error 5)
3, on Brøderbund releases 34 All sectors with a wrong header checksum; the data blocks are good 27 (read error, also shown as error 9)
  • All other tracks are normal. The two tracks hold no data of the program.
  • The duplicator text of the disks, where it is on the wiki page, names the scheme:
Duplicator text Titles
XEMAG GENERIC - CBM 64 PRT (DUP) - 48/35 1S GCR Expedition Amazon, Final Conflict, The Cosmic Balance
C-64 XEMAG PRT.(DUP) 5" 48/35 1S GCR SS TK.2-3 Sargon III
C-64 V3 PROT DUP 5"-48/35 1S GCR VS (PRT TK 2-3) Minit Man, The Cosmic Balance, Stellar 7 (similar text)
C-64 V-3 XEMAG PRT(DUP) 5" 48/35 1S GCR TK.2,34 Raid on Bungeling Bay, Stealth, The Mask of the Sun
BRODERBUND SPL. C-64 (DUP) PRT TK 2-34 48/35 1S Choplifter!, Drol, Gumball, Lode Runner, Matchboxes, Operation Whirlwind, Spare Change, Spelunker

The check

The check runs on the C64 and uses only commands of CBM DOS. Final Conflict (Hayden, 1983), BASIC:

200 OPEN 15,8,15
210 OPEN 5,8,5,"#"
220 PRINT#15,"B-R:5,0,2,15"
230 INPUT#15,E,EN$,T,S
240 IF E<>23 THEN O$="X"
250 PRINT#15,"B-R:5,0,3,16"
260 INPUT#15,E,EN$,T,S
270 IF E<>27 THEN O$="X"
280 CLOSE 5:CLOSE 15
  • Sector 15 of track 2 must give error 23 and sector 16 of track 3 must give error 27. On a copy without the errors the answer is 0 and the program does not go on.
  • The same two commands B-R:5,0,2,15 and B-R:5,0,3,16 are in every title of the tracks 2 and 3 form, in BASIC or in machine code. The BASIC lines of Final Conflict, Sargon II and The Cosmic Balance are the same down to the names of the variables, so the routine was probably handed out with the protection.
  • What happens after a failed check differs: Fortress prints "THIS DISK IS NOT ORIGINAL", The Cosmic Balance "THIS DISK IS A COPY"; other titles reset the computer, stay at the title or return to BASIC. NATO Commander goes on and lets the player lose. Sargon II fills the BASIC memory with zeros first.
  • The Brøderbund releases read track 2 and track 34 with commands of their own (for example U1: 5 0 02 2 on Choplifter!). Some of them do not stop after a failed check but run with garbled levels or graphics.

Related form

Donald Duck's Playground and Winnie the Pooh in the Hundred Acre Wood (Sierra) send the same two commands, but the check is not the same: only the two sectors that are read have a fault, sector 15 of track 2 and sector 16 of track 3, both with a wrong data checksum, and the program needs error 23 for both. Ghostbusters (Activision) has the same two faulty sectors, but a check of its own: it reads sector 15 of track 2 with U1:2,0,2,15, needs an error code that starts with 2, and then takes three bytes of the sector from the buffer. No duplicator text of Xemag is known for these disks; they are not counted as XEMAG 1.0 here.

Adventures in Colorland - Space Sagas (Hayden) also sends the two commands, in machine code. There tracks 2 and 3 are unformatted, and the check only looks at the first character of the answer: any error passes, only the answer 00, OK fails. It is not counted as XEMAG 1.0 either.

Copying

  • A sector copy stops at the two tracks; a copy that skips them or writes them without errors fails the check.
  • A copy needs the two tracks with the same kind of error: wrong data checksums on track 2, wrong header checksums on track 3 or 34. A copy of the raw tracks works.

Titles on this wiki

Tracks 2 and 3: Arcade Album 1 (for The Spy Strikes Back! and Thunderbombs), Expedition Amazon, Final Conflict, Fortress, King Cribbage, Minit Man, NATO Commander, Sargon II, Sargon III (also on Hit Quartett), The Cosmic Balance, The Quest, The Spy Strikes Back!, Thunderbombs, Transylvania.

Tracks 2 and 34: Championship Lode Runner, Choplifter!, Drol, Gumball, Lode Runner, Matchboxes, Spare Change, Spelunker, Stealth, The Mask of the Sun, Whistler's Brother.

Verification on this wiki

  • The sector images of all G64 on the wiki were searched for the two commands. They are on the titles of the tracks 2 and 3 form listed above, on the two Sierra titles of the related form, and on Adventures in Colorland - Space Sagas and Stellar 7. NATO Commander (MicroProse) has the same two tracks and reads sector 15 of track 2 and sector 15 of track 3.
  • Each title of the list was run against a copy in which the two tracks are written again without errors (same data, correct checksums). The copy fails on every title of the list; the original starts.
  • Arcade Album 1: Spy's Demise starts on the copy too; only the other two games are checked.
  • Not confirmed: Stellar 7 (the copy shows another screen than the original).
  • NATO Commander: the copy starts, but in the game the units of the player surrender without a fight (three runs each: on the copy cities are overrun and the report shows no casualties; on the original the report shows normal fighting).
  • Tracks 2 and 34: the copy with both tracks written without errors fails on every title of the list (garbled levels, a black screen, a stop at the title or corrupted graphics). Choplifter! reads sector 2 of the tracks 2, 1, 34 and 35 and needs the codes 23, 00, 27, 00.
  • Not confirmed for tracks 2 and 34: David's Midnight Magic (a copy reaches the demo mode), Operation Whirlwind, Raid on Bungeling Bay and The Serpent's Star (no difference found in the tested part).

Pages that refer to this protection