XEMAG 2.0
XEMAG 2.0
This analysis is based on the state of the wiki from 23 Nov 2026.
XEMAG 2.0 is a disk protection by Xemag, used from 1983 to 1988 by Electronic Arts, Activision, Epyx, SSI, Lucasfilm Games, MicroProse and others. The disk is a normal CBM DOS disk with one fat track: the same track is written on three neighbouring head positions, so that it can also be read between the tracks.
In short: track 35 is written on the positions 35, 35.5 and 36 (on the oldest disks track 34 on 34, 34.5 and 35, on a few disks track 6 on 6, 6.5 and 7). The check moves the head in half tracks while it reads and needs clean data at every position.
The fat track
position 35 track 35, 17 sectors position 35.5 the same 17 sectors position 36 the same 17 sectors
- On the three positions the sectors have the same headers (track 35), the same data and the same place on the track.
- On a normal disk the position between two tracks holds no readable data: the head sees a mix of both tracks.
- CBM DOS reads the track as usual. Most of its sectors are empty.
| Fat track | Titles on this wiki |
|---|---|
| Track 34 on 34, 34.5 and 35 (Electronic Arts) | Adventure Construction Set, Archon II: Adept, Archon: The Light and the Dark, Axis Assassin, Cut & Paste, Hard Hat Mack, M.U.L.E., Mail Order Monsters, Movie Maker, Murder on the Zinderneuf, Music Construction Set, One-on-One, Pinball Construction Set, Racing Destruction Set, Realm of Impossibility, Skyfox, The Archon Collection, The Last Gladiator, The Seven Cities of Gold, Worms? |
| Track 6 on 6, 6.5 and 7 | F-15 Strike Eagle, Gemstone Warrior, Injured Engine, On-Field Football |
| Track 35 on 35, 35.5 and 36 | Accolade's Comics featuring Steve Keene Thrillseeker, Action Classics, Alcazar: The Forgotten Fortress, Aliens: The Computer Game (Activision), Alter Ego, Apache Strike, Back To The Future, Ballblazer, Borrowed Time, Bug Blitz, Camelot Warriors, Chop N' Drop, Countdown to Shutdown, F-14 Tomcat, F-15 Strike Eagle, GBA Championship Basketball: Two-on-Two, Gamma Force in Pit of a Thousand Screams, Garry Kitchen's GameMaker, Gee Bee Air Rally, Gemstone Healer, Hacker, Hacker II: The Doomsday Papers, Howard the Duck, Kennedy Approach, Koronis Rift, Labyrinth, Last Ninja 2: Back with a Vengeance, Little Computer People, Maniac Mansion, Master of the Lamps, Murder off Miami, Murder on the Mississippi, Phantasie III: The Wrath of Nikademus, Pitfall! / Demon Attack, Portal, Predator, Rampage, Scarabaeus, Shanghai, Sigma 7, Spindizzy, Star Rank Boxing II, Summer Games II, Sword of Kadash, Tass Times in Tonetown, The Christmas Kit: Paper Models, The Complete Computer Fireworks Celebration Kit, The Eidolon, The Eternal Dagger, The Great American Cross-Country Road Race, The Last Ninja, The Music Studio, The Rocky Horror Show, The Transformers: Battle to Save the Earth, Trio, Warship, Web Dimension, Wild West, Wizard, Wizard's Crown, Xyphus, Zoids: The Battle Begins |
The check
The check was read on Summer Games II (Source 12), where it is in the drive code of track 18 sector 5 and runs before the loader starts:
$073E 78 SEI $073F A9 C5 LDA #$C5 ; start value of the key $0741 8D F2 05 STA $05F2 $0744 A2 04 LDX #$04 ; five steps $0746 86 14 STX $14 $0748 BD 5E 07 LDA $075E,X ; head movement of this step: 0, +1, +1, -1, -1 half tracks $074B 20 63 07 JSR $0763 ; move and count $074E 8A TXA ; add the count to the key in the loader $074F A6 14 LDX $14 $0751 18 CLC $0752 6D F2 05 ADC $05F2 $0755 8D F2 05 STA $05F2 $0758 CA DEX $0759 10 EB BPL $0746 $075B 4C 04 04 JMP $0404 ; start the loader $0763 48 PHA $0764 AD 00 1C LDA $1C00 ; bit rate of zone 0 $0767 29 9F AND #$9F $0769 8D 00 1C STA $1C00 $076C AD 0C 1C LDA $1C0C $076F 09 0E ORA #$0E $0771 8D 0C 1C STA $1C0C $0774 68 PLA $0775 20 AD 07 JSR $07AD ; wait for a sector header, then move the head $0778 A0 00 LDY #$00 $077A A2 00 LDX #$00 $077C 50 FE BVC $077C ; wait for the first byte of the group ($4B) $077E B8 CLV $077F AD 01 1C LDA $1C01 $0782 D9 A8 07 CMP $07A8,Y $0785 D0 F5 BNE $077C $0787 C8 INY $0788 D0 03 BNE $078D $078A A0 00 LDY #$00 ; one more complete group $078C E8 INX $078D 50 FE BVC $078D $078F B8 CLV $0790 AD 01 1C LDA $1C01 $0793 D9 A8 07 CMP $07A8,Y ; next byte of the group 4B 52 D4 B5 2D $0796 D0 07 BNE $079F ; other byte: end of the count $0798 C8 INY $0799 C0 05 CPY #$05 $079B D0 F0 BNE $078D $079D F0 EB BEQ $078A $079F AD 0C 1C LDA $1C0C $07A2 29 FD AND #$FD $07A4 8D 0C 1C STA $1C0C $07A7 60 RTS $07AD 48 PHA $07AE 20 CB 07 JSR $07CB ; wait for a sync mark $07B1 50 FE BVC $07B1 $07B3 B8 CLV $07B4 AD 01 1C LDA $1C01 $07B7 C9 52 CMP #$52 ; header block? $07B9 D0 F3 BNE $07AE $07BB 68 PLA ; move the head by A half tracks $07BC 18 CLC $07BD 6D 00 1C ADC $1C00 $07C0 4D 00 1C EOR $1C00 $07C3 29 03 AND #$03 $07C5 4D 00 1C EOR $1C00 $07C8 8D 00 1C STA $1C00 $07CB 2C 00 1C BIT $1C00 ; wait for the next sync mark $07CE 30 FB BMI $07CB $07D0 AD 01 1C LDA $1C01 $07D3 B8 CLV $07D4 A0 00 LDY #$00 $07D6 60 RTS
- The code waits for a sector header and then moves the head by one half track or not at all. Behind the next sync mark it counts how often the byte group
4B 52 D4 B5 2Dfollows without a break. The group is the GCR code of the filler byte$01of an empty sector; one data block gives 63 groups. - This is done on the positions 35, 35.5, 36, 35.5 and 35. The sum of the five counts is added to a value in the loader, so there is no comparison that could be removed: with a wrong sum the loader does not work.
- On a copy without the fat track the head finds no sync mark or no clean data at position 35.5.
The other titles were not disassembled. Their loaders differ (most of them use normal CBM DOS files).
Copying
- A sector copy gives a working track 35 but nothing readable at 35.5 and 36.
- A copy must write the same track on all three positions, with the sectors at the same place on each of them.
Verification on this wiki
- All G64 images on the wiki were searched for positions that carry the sector headers of another track. The pattern 35/35.5/36 or 34/34.5/35 is on the sources with the tag XEMAG 2.0 listed above.
- Titles with the tag where no local image shows a fat track: Time to Die and Uchi Mata (the images hold no half tracks and no track 36), and Battle of Antietam, Garry Kitchen's GameMaker - Science Fiction and - Sports, Rings of Zilfin and Tau Ceti (images not checked here).
- Sources with a fat track but without the tag were tested with a copy that has no fat track. F-14 Tomcat (Sources 3 and 4), Murder on the Zinderneuf (Source 1) and The Last Gladiator stop after the publisher logo on such a copy and load when the fat track is added; they were tagged.
- No difference between original and copy was seen up to the first menu or prompt on On-Track Racing, Portal (Source 2), President Elect: 1988 Edition, Roadwar 2000 (Source 1), Shiloh: Grant's Trial in the West (Source 1), Kaiser, Aliants and Blue Max (Source 4, side 1). These were left as they are.
- Roadwar 2000 and Shiloh carry a test program in sectors that belong to no file (track 17 sectors 0, 7 and 11, with the texts
SIGNATURE FOUND!andSIGNATURE NOT FOUND YOU PIRATE!). Its drive part reads all 17 sectors of track 35 at the positions 35, 35.5 and 36 and reports whether all reads were good. The game files do not refer to it. - A copy of Summer Games II (Source 12) built from the headers and data blocks hangs in the check. With the original track 36 added it still hangs; with the original positions 35, 35.5 and 36 it loads.

Pages that refer to this protection
- Rings of Zilfin (← links)
- Descriptions of old disk copy protections (← links)
- Battle of Antietam (← links)
- F-14 Tomcat (← links)
- Vorpal (← links)
- Uchi Mata (← links)
- Tau Ceti (← links)
- Mail Order Monsters (← links)
- R. M. S. Titanic (← links)
- Wild West (← links)
- Hacker (← links)
- Bug Blitz (← links)
- Ballblazer (← links)
- Apache Strike (← links)
- Summer Games II (← links)
- Maniac Mansion (← links)
- Wizard's Crown (← links)
- The Archon Collection (← links)
- Gemstone Warrior (← links)
- Gemstone Healer (← links)
- Skyfox (← links)
- Murder off Miami (← links)
- The Last Gladiator (← links)
- Murder on the Zinderneuf (← links)
- The Complete Computer Fireworks Celebration Kit (← links)
- Garry Kitchen's GameMaker (← links)
- Garry Kitchen's GameMaker - Science Fiction (← links)
- Garry Kitchen's GameMaker - Sports (← links)
- Warship (← links)
- F-15 Strike Eagle (← links)
- Chop N' Drop (← links)
- Adventure Construction Set (← links)
- Axis Assassin (← links)
- Camelot Warriors (← links)
- Gamma Force in Pit of a Thousand Screams (← links)
- Hacker II: The Doomsday Papers (← links)
- Hard Hat Mack (← links)
- Howard the Duck (← links)
- Last Ninja 2: Back with a Vengeance (← links)
- Little Computer People (← links)
- Pinball Construction Set (← links)
- Racing Destruction Set (← links)
- Realm of Impossibility (← links)
- Sigma 7 (← links)
- The Great American Cross-Country Road Race (← links)
- Worms? (← links)
- Zoids: The Battle Begins (← links)
- Spindizzy (← links)
- Koronis Rift (← links)
- Alter Ego (← links)