fix vm bug; "if" works now!
This commit is contained in:
parent
15f4b500c2
commit
e9d1909987
2
vm.py
2
vm.py
|
@ -70,7 +70,7 @@ class Vm(TPrs):
|
||||||
elif callable(instr):
|
elif callable(instr):
|
||||||
synt = instr(self)
|
synt = instr(self)
|
||||||
if synt != None:
|
if synt != None:
|
||||||
(r, ip) = self.CallI(instr, r, ip)
|
(r, ip) = self.CallI(synt, r, ip)
|
||||||
else:
|
else:
|
||||||
assert False, "invalid instr " + str(instr)
|
assert False, "invalid instr " + str(instr)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue