Skip to content

Commit 8c3a93c

Browse files
committed
fixes
1. Fixed stack bug in CallCSharp opcode 1.2. Fixed offset bug in CallCSharp opcode 2. Removed debug info
1 parent 57b0188 commit 8c3a93c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VM/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ static void Main(string[] args)
2424
Console.WriteLine(s.ToString());
2525
}
2626
Console.WriteLine("---STACK END---");
27-
Console.WriteLine(typeof(String).AssemblyQualifiedName);
2827
Console.ReadLine();
2928

3029
}
@@ -139,11 +138,12 @@ public void Run(int Offset)
139138
var method = Type.GetType(type).GetMethod(voidname, types);
140139

141140
var rez = method.Invoke(null, arguments);
142-
if (rez != typeof(void))
141+
if (rez != null)
143142
{
144143
push(rez);
145144
}
146145

146+
Offset += 20 + argcount * 8;
147147
break;
148148
}
149149
case 0x91: //Pop

0 commit comments

Comments
 (0)