Decoding the Mystery of The Wizard's Castle BASIC Comment

10 REM"_(C2SLFF4

Decoding the Mystery of The Wizard's Castle BASIC Comment

I investigated a strange comment in the 1980s Exidy Sorcerer game The Wizard's Castle that looked like garbage but was actually hidden machine code. With help from Josh and Chris, we discovered this REM statement executes Z80 assembly to seed the random number generator by manipulating screen memory. This clever trick allowed the game to generate unique dungeons without user input.

It is literally calling the text of the REM statement as Z80 machine code!

More from this day

2026-07-22