WALL-E / miniVM

A mini virtual machine written by lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

miniVM

A mini virtual machine written by lua

Instructions

op   val    usage               function
---------------------------------------------------------------------
HLT  0      hlt                 halts program
PSH  1      psh val             pushes <val> to stack
POP  2      pop                 pops value from stack
ADD  3      add                 adds top two vals on stack

Visual

Use Love2D for the visual.

The sceenshot:

BLOG 用 Lua 实现一个微型虚拟机-基本篇

Reference

From this project MAC

About

A mini virtual machine written by lua


Languages

Language:Lua 100.0%