Z-machine
Encyclopedia : Z : ZM : ZMA : Z-machine
Zork games
Zork Anthology
Enchanter trilogy
Other games
Wishbringer Return to Zork[[Zork: Nemesis]] Zork Grand Inquisitor
[[Zork: The Undiscovered Underground|Zork: The Undiscovered Underground]]
Topics in Zork
Companies
Miscellaneous
- This article is about the Infocom virtual machine. For the x-ray generator, see Z machine.
The "Z" of Z-machine stands for Zork, Infocom's first adventure game. Z-code files usually have names ending in .z1, .z2, .z3, .z4, .z5, .z6, .z7 or .z8 (and occasionally .dat), where the number is the version number of the Z-machine on which the file is intended to be run, as given by the first byte of the story file. Previously it was common for the filenames to end with .zip (ZIP = Z-machine Interpreter Program), but this clashes with the present widespread use of .zip for PKZIP-compatible archive files. Infocom produced six versions of the Z-machine. Files using versions 1 and 2 are very rare. Only two version 1 files are known to have been released by Infocom, and only two of version 2. The later versions had more capabilities, culminating in some graphic support in version 6.
The compiler (called Zilch) which Infocom used to produce its story files has never been released, although documentation of the language used (called ZIL, for Zork Implementation Language) is still in existence. But in May 1993, Graham Nelson released the first version of his Inform compiler, which generates Z-machine story files as its output. Most files produced by Inform are version 5.
Inform has since become very popular in the interactive fiction community and, as a consequence, a large proportion of the interactive fiction now produced is in the form of Z-machine story files. Demand for the ability to create larger game files led Graham Nelson to specify versions 7 and 8 of the Z-machine, though version 7 is very rarely used. Because of the way addresses are handled, a version 3 story file can be up to 128K in length, a version 5 story can be up to 256K in length, and a version 8 story can be up to 512k in length. Though these sizes may seem small by today's computing standards, for text-only adventures, these are large enough for very elaborate games.
Interpreters for Z-code files are available on a wide variety of platforms. In fact, since interpreters are available for a wide range of platforms - for example, on various old machines (such as the Apple II, TRS-80 and Sinclair), portable machines (such as Palm OS devices and the Nintendo Game Boy) and most modern platforms - it can be claimed that Z-code is one of the most portable computer languages ever invented.
During the 1990s, Graham Nelson drew up a [Z-machine standard], based on detailed studies of the existing Infocom files.
See also
- Frotz - a popular implementation
- Glulx - a similar virtual-machine to Z-machine
- SCUMM - Script Creation Utility for Maniac Mansion by LucasArts, a graphical system similar to Z-machine
External links
- [The Z-Machine standards document]
- [ZIL manual]
- [Interpreters for numerous platforms]
- [The website of the compiler Inform]
- [A VBCC compiler backend targeting the Z-machine]
- [Putting the Z-machine on a small machine]
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
