TinyVM

A tiny register based virtual machine in C.

Examples

li $1 0x00000000
li $2 0x0000FFFF
li $3 loop

loop:
  sw $1 $1
  inc $1
  bne $1 $2 $3

halt

Source

TinyVM is on GitHub.