Quantcast
Channel: C++博客-tiny vm
Viewing all articles
Browse latest Browse all 4

tiny virtual machine design

$
0
0
1.设计
   8个通用寄存器分别编号为0 - 7,用@符号代表寄存器,那么寄存器1就为@1。

2.指令集
   mov 
   mov @1, 1
   mov $var, @1

   add
   add @1, 2
   

NightAway 2015-02-11 09:17 发表评论

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images