先把示例代码写好,到时候实现虚拟机就有目的性了...
MOV [0],1
MOV [1],1
MOV [2],2
MOV [[0]],-1
PRT[0]
PRT[1]
PRT[2]
LOOP [[0]] BEGIN
ADD [1],[2]
MOV [0],[1]
MOV [1],[2]
MOV [2],[0]
PRT [2]
END
输出结果应该是1,1,2,3,5,8,13......
标签:ZVM,sequence,代码,示例,MOV,PRT,虚拟机
来源: https://www.cnblogs.com/lostmatch/p/10462771.html