A library for creating retro computing platforms
melon is like a virtual 16bit CPU. When building a retro computing platform e.g. a gaming
console or old computer architecture,
melon takes care of handling basic parts like stack
management, calls, memory management and exception handling. Its most common interface, the
System trait makes it possible to not only implement the CPU into any platform but
makes it also really easy to extend its functionality.
The Program struct takes care of loading and saving programs written for an
implementation of the
melon roms are gzipped msgpack files.
A couple of useful type aliases
The container for a program
The state of the VM
The size of a memory page in bytes
An interface to communicate with the VM