1
0

Implement local GOSUB expr

This commit is contained in:
otya128
2016-12-07 20:07:05 +09:00
parent 72e375276a
commit 92d5026c72

View File

@@ -897,6 +897,11 @@ class GosubExpr : Code
if(label.isString)
{
vm.pushpc;//vm.push(Value(vm.pc));
if (sc && sc.func)
{
vm.pc = sc.func.label[label.castString] - 1;
return;
}
vm.pc = vm.currentSlot.globalLabel[label.castString] - 1;
}
else