<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:webfeeds="http://webfeeds.org/rss/1.0">
  <channel>
    <title>Eye of the Beholder, Decompiled</title>
    <link>https://anonymousformula.com/eob/</link>
    <description>A matching decompilation of Westwood's 1991 DOS game Eye of the Beholder into C, built with the original Turbo C++ 1.00, and what the game turns out to be inside.</description>
    <language>en</language>
    <lastBuildDate>Thu, 03 Dec 2026 17:00:00 GMT</lastBuildDate>
    <atom:link href="https://anonymousformula.com/eob/feed.xml" rel="self" type="application/rss+xml"/>
    <image>
      <url>https://anonymousformula.com/apple-touch-icon.png</url>
      <title>Eye of the Beholder, Decompiled</title>
      <link>https://anonymousformula.com/eob/</link>
      <width>144</width>
      <height>144</height>
    </image>
    <webfeeds:icon>https://anonymousformula.com/assets/img/icon-512.png</webfeeds:icon>
    <webfeeds:accentColor>3C0B0F</webfeeds:accentColor>
    <item>
      <title>Eye of the Beholder, decompiled: how it works</title>
      <link>https://anonymousformula.com/eob/articles/eye-of-the-beholder-decompiled-how-it-works/</link>
      <guid isPermaLink="true">https://anonymousformula.com/eob/articles/eye-of-the-beholder-decompiled-how-it-works/</guid>
      <pubDate>Thu, 03 Dec 2026 17:00:00 GMT</pubDate>
      <description>Eye of the Beholder won't start unless it is handed the word homie. What the 1991 game was, why CRPG fans still talk about it, and how the whole program works, read from its decompiled C.</description>
      <category>Eye of the Beholder</category>
      <category>game engines</category>
      <category>Westwood</category>
      <content:encoded><![CDATA[<p><img src="https://anonymousformula.com/eob/articles/eye-of-the-beholder-decompiled-how-it-works/images/cover.jpg" alt="The title menu of Eye of the Beholder in VGA, as EOB.EXE draws it when it is started with the word: LOAD GAME IN PROGRESS, START A NEW PARTY, EXIT TO DOS. Captured in DOSBox-X after typing EOB 3 4 0 homie 3 (the title menu from a second take)"></p><p>Go to the directory of Eye of the Beholder, the 1991 DOS game, and type its name, EOB. Nothing happens. No error, no title screen: you're straight back at DOS.</p>
<p>Now type it with a few things after it: <code>EOB 3 4 0 homie 3</code>. A three, a four, a zero, then the word homie, then a three. This time the title menu comes up.</p>
<p>That word is checked in the game's own code. Here is the start of <code>Main</code> in <code>EOB.EXE</code>, as our matched source has it. The fourth argument is compared with homie, and if it doesn't match, the program returns before it sets anything up: no video mode, no interrupt handlers.</p>
<pre><code class="language-c"><div class="code"><div class="code-bar"><span>C</span></div><pre><code>    gGraphicsChoice = argv[<span class="hljs-number">1</span>][<span class="hljs-number">0</span>] + <span class="hljs-number">1</span>;
    gSoundCard = argv[<span class="hljs-number">2</span>][<span class="hljs-number">0</span>] - <span class="hljs-string">&#x27;1&#x27;</span>;
    gSoundOn = argv[<span class="hljs-number">2</span>][<span class="hljs-number">0</span>] != <span class="hljs-string">&#x27;4&#x27;</span>;
    mouseChoice = argv[<span class="hljs-number">3</span>][<span class="hljs-number">0</span>] - <span class="hljs-string">&#x27;0&#x27;</span>;
    <span class="hljs-keyword">if</span> (<span class="hljs-built_in">strcmp</span>(argv[<span class="hljs-number">4</span>], <span class="hljs-string">&quot;homie&quot;</span>))
        <span class="hljs-keyword">return</span> <span class="hljs-number">0</span>;
</code></pre></div></code></pre>
<p>We ran it in our emulator both ways. With a wrong word, the program ends at once, still in text mode, having opened only its own file. With the word, it switches to the VGA mode, loads its graphics driver, its fonts and its data, and draws the title menu. And in the version we decompiled, the word is in all three of the game's programs, once in each:</p>
<pre><code class="language-text"><div class="code"><div class="code-bar"><span>Output</span></div><pre><code>$ for f in eob/START1.EXE eob/INTRO.EXE eob/EOB.EXE; do strings -a -t x $f | grep homie; done
   1fae homie
  11280 homie
  26bca homie
</code></pre></div></code></pre>
<p>So who is supposed to say it? The answer is further down, in the part about the three programs.</p>
<p><a href="https://www.youtube.com/watch?v=A0Sv0vGhNrk">Watch the video of this piece on YouTube.</a></p>
<p><a href="https://anonymousformula.com/eob/articles/eye-of-the-beholder-decompiled-how-it-works/">Continue reading on Anonymous Formula</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>
