Skip to content

C implementation of the Tzo Virtual Machine, as well as a QuestMark runtime interpreter

Notifications You must be signed in to change notification settings

jorisvddonk/tzo-c

Repository files navigation

Tzo-C 💎

This is an implementation of the Tzo Virtual Stack Machine in C.

Additionally, there's a Questmark interpreter (questmark.c), too, with fancy rendering via dos-like!

There's also a TextureVM implementation as well (in anim.c):

...I should probably spend some time on refactoring these out into separate projects... 😂

Here be dragons!

There's absolutely guaranteed to be memory leaks in here as at the moment no variables on the Tzo stack are free()'d after use (I have to find a good working strategy for this still), so please don't use this for anything important!

compiling

Linux:

mkdir build
cd build
cmake ..
make

Windows, mingw32:

mkdir build
cd build
cmake .. -G "MinGW Makefiles"
mingw32-make

Windows, Visual Studio 17 (2022):

# note: need to run this in a VS Developer Command Prompt!
mkdir build
cd build
cmake .. -G "Visual Studio 17 2022"
msbuild ./tzo.sln

compiling the other samples

To compile the other samples, use -DBUILD_CONVO or -DBUILD_RCONVO when generating te project files via cmake.

About

C implementation of the Tzo Virtual Machine, as well as a QuestMark runtime interpreter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published