Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 822 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 822 Bytes

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