Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: d0e62974ac
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (8 sloc) 1.277 kb
Mako is a simple stack-based virtual game console, designed to be as simple as possible to implement. Maker is a compiler for a Forth-like language that targets the Mako VM.
Mako has two stacks- a parameter stack and a return stack. Most MakoVM instructions manipulate the top elements of the parameter stack. Instructions are normally a single word (signed 32-bit integer), but some (like JUMP and CALL) are followed by a second word which provides an argument. The Mako memory layout is controlled by a number of memory-mapped registers starting in the lowest address- 0. In addition to the program counter and stack pointers, Mako has registers which control a pixel-scrollable 30x40 grid of 8x8 background tiles, a set of 256 variable-size sprites and a random number generator.
The Maker source files provided in the examples directory can be executed by compiling Maker and then invoking it with a filename and the '--run' flag. Without the flag, Maker will simply print a disassembly of the prepared Mako memory image.
To compile, run `ant` from the top directory.
To run an example, invoke Maker from the command line:
java -jar dist/Maker.jar /examples/Pong/Pong.fs --run
Or use the 'maker' script to save a little typing:
./maker /examples/Pong/Pong.fs --run
Jump to Line
Something went wrong with that request. Please try again.