OZMOO check - KVonGit/zil-stuff GitHub Wiki

Is the game being played in the Ozmoo interpreter?

I agree that you probably don't need to do this. but, for completeness, this is the straightforward translation of that code:

  • vaporware (responding to a Discord post with my first attempt at this, where I had code from Gemini)
<CONSTANT OZMOO-MAGIC-ADDRESS 58>  ;"hex 3A = dec 58 = oct 72"
<CONSTANT OZMOO-MAGIC-VALUE 20314> ;"hex 4F5A = dec 20314 = oct 47532"

<ROUTINE IS-OZMOO? ()
  <==? <GET ,OZMOO-MAGIC-ADDRESS 0> ,OZMOO-MAGIC-VALUE>
>