Confusion: A Muddle interpreter

Matthew Russotto 1d36baf1a1 Fix compiler warnings and missing headers 2 years ago
..
COPYING 01c39b7dc9 Add boilerplate 10 years ago
ChangeLog 01c39b7dc9 Add boilerplate 10 years ago
Makefile df77bcf131 Fix some read issues 5 years ago
README 35f6461b23 Adding missing license info to mdl_strbuf.h and README - Confusion is supposed to be GPLv3+ 5 years ago
find_builtins.pl 8ab938f57d Implementing the 'any later version' so that Confusion is no longer GPLv3-only. 5 years ago
macros.cpp 1d36baf1a1 Fix compiler warnings and missing headers 2 years ago
macros.hpp 8ab938f57d Implementing the 'any later version' so that Confusion is no longer GPLv3-only. 5 years ago
make_types.pl 8ab938f57d Implementing the 'any later version' so that Confusion is no longer GPLv3-only. 5 years ago
mdl_assoc.cpp 8ab938f57d Implementing the 'any later version' so that Confusion is no longer GPLv3-only. 5 years ago
mdl_assoc.hpp 8ab938f57d Implementing the 'any later version' so that Confusion is no longer GPLv3-only. 5 years ago
mdl_binary_io.cpp 91c2a4bdc3 Cruft removed 5 years ago
mdl_builtin_macro.hpp 8ab938f57d Implementing the 'any later version' so that Confusion is no longer GPLv3-only. 5 years ago
mdl_decl.cpp 8ab938f57d Implementing the 'any later version' so that Confusion is no longer GPLv3-only. 5 years ago
mdl_internal_defs.h 91c2a4bdc3 Cruft removed 5 years ago
mdl_interp.h 8fc707f4f3 Compile no run new save 5 years ago
mdl_output.cpp 1d36baf1a1 Fix compiler warnings and missing headers 2 years ago
mdl_read.cpp 1d36baf1a1 Fix compiler warnings and missing headers 2 years ago
mdl_strbuf.c 8ab938f57d Implementing the 'any later version' so that Confusion is no longer GPLv3-only. 5 years ago
mdl_strbuf.h 35f6461b23 Adding missing license info to mdl_strbuf.h and README - Confusion is supposed to be GPLv3+ 5 years ago
mdli.cpp 1d36baf1a1 Fix compiler warnings and missing headers 2 years ago

README

Confusion: A MDL interpreter
(or, "How to Fit a Small Program into a Large Machine")

For those poor souls still stuck in dawn of IF history, I present
"Confusion" -- a MDL interpreter which works just well enough to play
the original Zork all the way through. The original Zork isn't for the
faint of heart, and neither is Confusion; it is only available in
source form, with minimal instruction (which follows).

Confusion is written in C++, though about 99% is pure C. To build it, you
will need the Boehm-Demers-Weiser conservative garbage collector for
C.
Some Linux distros have this as a package, called "gc-dev" or
similar. For the Mac, you'll need what is at this writing the very latest
version (7.2alpha2), for Linux, 6.8 appears to work. For Windows... I
recommend running Linux in a virtual machine. It might build under
cygwin, but I wouldn't bet on it.

Once you have the GC, a simple "make" will build the interpreter.
The Zork sources, somewhat modified for the limitations of this
interpreter, are available at


To play Zork, unpack this directory, change directory to the new
"mdlzork" directory", run the interpreter with the parameter "-r
MDL/MADADV.SAVE" e.g. "../confusion-src/mdli -r MDL/MADADV.SAVE".
You should be at the white house:
$ ../confusion-src/mdli -r MDL/MADADV.SAVE
This Zork created July 6, 2009.
West of House
This is an open field west of a white house, with a boarded front
door.
There is a small mailbox here.
A rubber mat saying 'Welcome to Zork!' lies by the door.

The HELP, DOC and INFO commands do not work, as I do not have those files.
I have played Zork all the way through, however, I have made some
changes to the intepreter since then, so I cannot guarantee success. If the
interpreter crashes, let me know. (note that there are bugs in the
game; if you get dumped to a MDL LISTEN prompt, this might not be an
interpreter bug)
If you modify the MDL sources, you can re-build the game by running
the interpreter with no parameters in the mdlzork directory, and
typing

This will rebuild the MDL/MADADV.SAVE file and start the game.

Confusion probably won't be developed further.

Notable features not supported: proper SAVE/RESTORE (an incompatible but
useful version is provided), GC-DUMP/GC-READ, interrupts, processes,
overflow, compiled code.

--
Copyright 2009 Matthew T. Russotto

You can redistribute and/or modify this file under the terms of the
GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or your option) any later
version.

This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see .