1 Glulxe: the Glulx VM interpreter
4 Designed by Andrew Plotkin <erkyrath@eblong.com>
5 http://eblong.com/zarf/glulx/index.html
9 Since this is a Glk program, it must be built with a Glk library. See
12 http://eblong.com/zarf/glk/index.html
14 The Unix Makefile that comes with this package is designed to link any
15 of the Unix libraries (GlkTerm and CheapGlk.) You'll have to go into
16 the Makefile and set three variables to find the library. There are
17 instructions at the top of the Makefile. Then just type
21 That should suffice. When the program is built, type
25 where "filename.ulx" is a Glulx game file to execute.
27 To build this program with a Mac or Window interface, you'll need the
28 appropriate Glk library.
30 This program supports floating-point operations, which are implemented
31 using the standard C99 math functions. The Makefile uses "-lm" to link
32 these in. If your platform does not support these functions, you can
33 comment out the "#define FLOAT_SUPPORT" line in glulxe.h.
38 Abstracted powf() to an osdepend wrapper. (Needed for Windows.)
39 Fixed a @ceil bug, for some C math libraries.
42 Added floating-point math feature.
43 Updated winstart.c. (Thanks David Kinder.)
44 Fixed @random even more, on Windows.
45 @verify works right on game files with extended memory.
46 @getiosys works right when the two store operands are different
47 variable types. (E.g., one local and one global.)
50 VERIFY_MEMORY_ACCESS now detects writes to the ROM section of memory.
51 Fixed off-by-eight bug in @astorebit and @aloadbit with negative bit
53 Fixed an obscure bug with division and modulo of $80000000. (Thanks
55 Fixed an extremely obscure problem with changing I/O mode in the middle
57 Glk array/string operations are now checked for memory overflows
58 (though not for ROM writing). This generates a warning at present;
59 in the future, it will be a fatal error.
60 Better fix for the @random bug.
63 Added profiling code, which is turned off by default. To compile it
64 in, define VM_PROFILING in Makefile or in glulxe.h.
65 Added function-accleration feature.
66 Fixed bug where @random 0 was returning only positive numbers.
69 Verify the presence of Unicode calls in the Glk library at runtime.
70 (Thanks Simon Baldwin.)
71 Added a compile-time option to check for invalid memory accesses.
72 (This is slower, but safer. Define VERIFY_MEMORY_ACCESS in Makefile
73 or in glulxe.h. Thanks Evin Robertson.)
74 Fixed a memory leak of undo states. (Thanks Matthew Wightman.)
75 Fixed a linked-list handling error for Glk unicode arrays. (Thanks
79 Fixed a bug that preventing compiling with old (pre-Unicode) Glk
83 Added array copy and heap allocation functionality. (Glulx spec
87 Added Unicode functionality. (Glulx spec 3.0.0.)
90 Fixed El-Stupido bug in the modulo opcode.
93 Finally supports string arguments to Glk calls.
96 Added setiosys, getiosys opcodes.
97 Fixed bug in binarysearch.
100 Added search, jumpabs, callf, and gestalt opcodes.
103 Startup code now handles Blorb files correctly.
106 Added support for compressed strings.
109 Another pre-release version.
112 A pre-release version.
116 The source code in this package is copyright 1999-2010 by Andrew Plotkin.
117 You may copy and distribute it freely, by any means and under any conditions,
118 as long as the code and documentation is not changed. You may also
119 incorporate this code into your own program and distribute that, or modify
120 this code and use and distribute the modified version, as long as you retain
121 a notice in your program or documentation which mentions my name and the